Skip to content
Snippets Groups Projects
Commit 63766d62 authored by Andrest07's avatar Andrest07
Browse files

Bodysize matters for dodging now

parent bcaf4eb7
No related branches found
No related tags found
No related merge requests found
...@@ -650,12 +650,21 @@ ...@@ -650,12 +650,21 @@
<</silently>><<print _text_output>><</widget>> <</silently>><<print _text_output>><</widget>>
<<widget "combatExtendedDodgeCheck">> <<widget "combatExtendedDodgeCheck">>
<<if $bodysize is 3>>
<<set _bodyDodgeChance to -20>>
<<elseif $bodysize is 2>>
<<set _bodyDodgeChance to 0>>
<<elseif $bodysize is 1>>
<<set _bodyDodgeChance to 15>>
<<else>>
<<set _bodyDodgeChance to 30>>
<</if>>
<<set _dodgeChance to 0>> <<set _dodgeChance to 0>>
<<set _passiveDodgeChance to 0>> <<set _passiveDodgeChance to 0>>
<<set _activeDodgeChance to 0>> <<set _activeDodgeChance to 0>>
<<set _danceskill to currentSkillValue('danceskill')>> <<set _danceskill to currentSkillValue('danceskill')>>
<<if $combatExtended.passiveDodging is 1>> <<if $combatExtended.passiveDodging is 1>>
<<set _dodgeChance = Math.round(_danceskill / 40)>> <<set _dodgeChance = Math.round(_danceskill / 40) + _bodyDodgeChance>>
<<if $combatExtended.stabilityLost is 1>> <<if $combatExtended.stabilityLost is 1>>
<<set _dodgeChance = Math.round(_dodgeChance / 2)>> <<set _dodgeChance = Math.round(_dodgeChance / 2)>>
<</if>> <</if>>
...@@ -668,7 +677,7 @@ ...@@ -668,7 +677,7 @@
<</if>> <</if>>
<</if>> <</if>>
<<if $combatExtended.activeDodgingActive is 1>> <<if $combatExtended.activeDodgingActive is 1>>
<<set _dodgeChance = Math.round(_danceskill / 20)>> <<set _dodgeChance = Math.round(_danceskill / 20) + _bodyDodgeChance>>
<<if _dodgeChance gte random(100)>> <<if _dodgeChance gte random(100)>>
<<set _activeDodgeChance to 2>> <<set _activeDodgeChance to 2>>
<<elseif _dodgeChance gte random(80)>> <<elseif _dodgeChance gte random(80)>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment