Skip to content
Snippets Groups Projects
Commit 4d17cafe authored by Andrest07's avatar Andrest07
Browse files

Brawling dodge, dodge cap slider, uncapped dodge toggle

parent 331c364b
No related branches found
No related tags found
No related merge requests found
......@@ -4935,6 +4935,12 @@
<<if $combatExtended.brawling is undefined>>
<<set $combatExtended.brawling to 0>>
<</if>>
<<if $combatExtended.uncappedDodgeChance is undefined>>
<<set $combatExtended.uncappedDodgeChance to 0>>
<</if>>
<<if $combatExtended.dodgeChanceCap is undefined>>
<<set $combatExtended.dodgeChanceCap to 90>>
<</if>>
<<if $dodgeStat is undefined>>
<<set $dodgeStat to 0>>
<</if>>
......
......@@ -650,6 +650,10 @@
<</silently>><<print _text_output>><</widget>>
<<widget "combatExtendedDodgeCheck">>
<<set _dodgeChance to 0>>
<<set _passiveDodgeChance to 0>>
<<set _activeDodgeChance to 0>>
<<set _dancedodge to Math.round(currentSkillValue('danceskill') / 40)>>
<<if $bodysize is 3>>
<<set _bodyDodgeChance to -20>>
<<elseif $bodysize is 2>>
......@@ -659,12 +663,16 @@
<<else>>
<<set _bodyDodgeChance to 30>>
<</if>>
<<set _dodgeChance to 0>>
<<set _passiveDodgeChance to 0>>
<<set _activeDodgeChance to 0>>
<<set _danceskill to currentSkillValue('danceskill')>>
<<if $combatExtended.brawlingToggle is 1>>
<<set _brawlingDodgeChance to Math.clamp(($combatExtended.brawling * $enemyno * ($enemyno / 16)) / 100, 0, 20)>>
<<else>>
<<set _brawlingDodgeChance to 0>>
<</if>>
<<if $combatExtended.passiveDodging is 1>>
<<set _dodgeChance = Math.round(_danceskill / 40) + _bodyDodgeChance>>
<<set _dodgeChance = Math.round(_dancedodge + _bodyDodgeChance + _brawlingDodgeChance)>>
<<if $combatExtended.uncappedDodgeChance is 0>>
<<set _dodgeChance to Math.clamp(_dodgeChance, 0, $combatExtended.dodgeChanceCap)>>
<</if>>
<<if $combatExtended.stabilityLost is 1>>
<<set _dodgeChance = Math.round(_dodgeChance / 2)>>
<</if>>
......@@ -677,7 +685,10 @@
<</if>>
<</if>>
<<if $combatExtended.activeDodgingActive is 1>>
<<set _dodgeChance = Math.round(_danceskill / 20) + _bodyDodgeChance>>
<<set _dodgeChance = Math.round((_dancedodge + _bodyDodgeChance + _brawlingDodgeChance) * 2)>>
<<if $combatExtended.uncappedDodgeChance is 0>>
<<set _dodgeChance to Math.clamp(_dodgeChance, 0, $combatExtended.dodgeChanceCap)>>
<</if>>
<<if _dodgeChance gte random(100)>>
<<set _activeDodgeChance to 2>>
<<elseif _dodgeChance gte random(80)>>
......
......@@ -2784,6 +2784,18 @@
<mouse class="tooltip linkBlue">(?)<span>New feet action to dodge. A seperate, better dodge check compared to Passive Dodging but costs a feet action and will cause stability damage on failure.</span></mouse>
</label>
</div>
<div class="settingsToggleItem">
<label>
<<checkbox "$combatExtended.uncappedDodgeChance" 0 1 autocheck>> Enable Uncapped Dodge Chance
<mouse class="tooltip linkBlue">(?)<span>Embrace your inner matrix.</span></mouse>
</label>
</div>
<div class="settingsToggleItem numberslider-inline">
<span class="gold">Dodge Chance Cap
<mouse class="tooltip linkBlue">(?)<span>The cap for dodge chance.</span></mouse>
</span>
<<numberslider "$combatExtended.dodgeChanceCap" $combatExtended.dodgeChanceCap 0 100 1>>
</div>
</div>
<div class="settingsGrid">
<div class="settingsHeader">
......
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