summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-01-22 12:55:26 +0100
committernsensfel <SpamShield0@noot-noot.org>2018-01-22 12:55:26 +0100
commitbf751b384f9207226fc8b7ec662eac32d8bc81eb (patch)
treeda1c04075029c06d0af6c5f4b8bb3402c2d060ae /src/calc/calc_stats.erl
parentb056dfc549d445b8cc6a16c8076888289a1db9e0 (diff)
Links the fragments of new stats to the old ones.
Diffstat (limited to 'src/calc/calc_stats.erl')
-rw-r--r--src/calc/calc_stats.erl29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/calc/calc_stats.erl b/src/calc/calc_stats.erl
deleted file mode 100644
index 65a3aec..0000000
--- a/src/calc/calc_stats.erl
+++ /dev/null
@@ -1,29 +0,0 @@
--module(calc_stats).
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% EXPORTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
--export
-(
- [
- weapon_min_damage/2,
- weapon_hit_chances/1
- ]
-).
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% LOCAL FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% EXPORTED FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-weapon_min_damage (WeaponProf) ->
-
-weapon_hit_chances (WeaponProf) ->
- HitChance = 50 + trunc(math:ceil(WeaponProf / 2)),
- case HitChance of
- % Not a satisfactory way to handle double hits, as it does not allow
- % the players to specialize their characters for it.
- N when N > 75 -> {HitChance, 75 - HitChance};
- _ -> {HitChance, 0}
- end.