Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Degrees of Lewdity Plus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Averall
Degrees of Lewdity Plus
Commits
bd589da4
Commit
bd589da4
authored
1 year ago
by
Andrest07
Browse files
Options
Downloads
Patches
Plain Diff
Near complete countering. Just need to edit all related encounters to use it.
parent
0c056a13
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
game/04-Variables/variables-versionUpdate.twee
+3
-0
3 additions, 0 deletions
game/04-Variables/variables-versionUpdate.twee
game/base-combat/widgets.twee
+18
-1
18 additions, 1 deletion
game/base-combat/widgets.twee
with
21 additions
and
1 deletion
game/04-Variables/variables-versionUpdate.twee
+
3
−
0
View file @
bd589da4
...
...
@@ -4953,6 +4953,9 @@
<<if $combatExtended.counteringActive is undefined>>
<<set $combatExtended.counteringActive to 0>>
<</if>>
<<if $combatExtended.counterSuccess is undefined>>
<<set $combatExtended.counterSuccess to 0>>
<</if>>
<<if $combatExtended.blockingActive is undefined>>
<<set $combatExtended.blockingActive to 0>>
<</if>>
...
...
This diff is collapsed.
Click to expand it.
game/base-combat/widgets.twee
+
18
−
1
View file @
bd589da4
...
...
@@ -653,6 +653,7 @@
<<set _dodgeChance to 0>>
<<set _passiveDodgeChance to 0>>
<<set _activeDodgeChance to 0>>
<<set _counterChance to 0>>
<<set _dancedodge to Math.round(currentSkillValue('danceskill') / 40)>>
<<if $bodysize is 3>>
<<set _bodyDodgeChance to -20>>
...
...
@@ -697,7 +698,23 @@
<<set _activeDodgeChance to 0>>
<</if>>
<</if>>
<<if _passiveDodgeChance gt _activeDodgeChance>>
<<if $combatExtended.countering is 1>>
<<set _counterChance to 0>>
<<if $combatExtended.counteringActive gte 1>>
<<set _counterChance to 100 * ((0.35 * (1 * ($skulduggery / 1000))) * $combatExtended.counteringActive)>>
<<if _dodgeChance gte random(100)>>
<<set _counterChance to 2>>
<<elseif _dodgeChance gte random(80)>>
<<set _counterChance to 1>>
<<else>>
<<set _counterChance to 0>>
<</if>>
<<set $combatExtended.counteringActive to 0>>
<</if>>
<</if>>
<<if _counterChance gte 1>>
<<set $combatExtended.counterSuccess to _counterChance>>
<<elseif _passiveDodgeChance gt _activeDodgeChance>>
<<set $combatExtended.dodgeSuccess to _passiveDodgeChance>>
<<else>>
<<set $combatExtended.dodgeSuccess to _activeDodgeChance>>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment