Skip to content

Commit

Permalink
Found a potential leaky source of -aim and -reflexes in Frostworm combat
Browse files Browse the repository at this point in the history
  • Loading branch information
Gedan committed Dec 4, 2016
1 parent 8f84876 commit 0a19465
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ pip-log.txt
/devTools/roomEd/main.spec
includes/NPCTemplates.as
RECOVER_*
devTools/scripts/Packages/User/Package Control.sublime-settings
TiTS.sublime-workspace
TiTS.sublime-project
**.sublime-settings
**.sublime-workspace
**.sublime-project

18 changes: 9 additions & 9 deletions classes/Characters/Frostwyrm.as
Original file line number Diff line number Diff line change
Expand Up @@ -236,17 +236,17 @@ package classes.Characters

//PC fails willpower save
if (target.willpower() + rand(20) + 1 < willpower())
{
output("\nPsychic energy assaults your mind, filling your brain with confused and swirling thoughts, and your vision becomes incredibly hazy. It’s hard to focus on the fight, and <b>your reflexes and aim both seem lowered</b> by the psychic miasma.");
target.createStatusEffect("Psychic Miasma", 0, 0, 0, 0, false, "Icon_OffDown", "You’ve been struck by a psychic miasma, reducing your effective aim and reflexes by 5", true, 0, 0xFF0000);
target.aimMod -= 5
target.reflexesMod -= 5
}
{
output("\nPsychic energy assaults your mind, filling your brain with confused and swirling thoughts, and your vision becomes incredibly hazy. It’s hard to focus on the fight, and <b>your reflexes and aim both seem lowered</b> by the psychic miasma.");
target.createStatusEffect("Psychic Miasma", 0, 0, 0, 0, false, "Icon_OffDown", "You’ve been struck by a psychic miasma, reducing your effective aim and reflexes by 5", true, 0, 0xFF0000);
target.aimMod -= 5
target.reflexesMod -= 5
}
//PC passes willpower save
else
{
output("\n\nYou grab your head, desperately resisting the onslaught of psychic energy assaulting your mind.");
}
{
output("\n\nYou grab your head, desperately resisting the onslaught of psychic energy assaulting your mind.");
}
}

//The shock of my tail, a thunderbolt!
Expand Down
5 changes: 5 additions & 0 deletions classes/Creature.as
Original file line number Diff line number Diff line change
Expand Up @@ -6439,6 +6439,11 @@
{
physiqueMod += statusEffectv1("Bimboleum");
}
if (hasStatusEffect("Psychic Miasma"))
{
aimMod += 5;
reflexesMod += 5;
}
for (var x: int = statusEffects.length-1; x >= 0; x--) {
if (statusEffects[x].combatOnly)
{
Expand Down
1 change: 0 additions & 1 deletion classes/GameData/CombatContainer.as
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,6 @@ package classes.GameData

target.aimMod += 5
target.reflexesMod += 5

}
}
}
Expand Down

0 comments on commit 0a19465

Please sign in to comment.