From 445adc488b76799ac1ea42aceca38fbdd1786abe Mon Sep 17 00:00:00 2001 From: doug1234 Date: Sat, 22 Jul 2023 15:18:07 -0400 Subject: [PATCH 1/2] Fix scout so the skirmish icon does not initially display when the class is first added. --- tpdatasrc/tpgamefiles/scr/tpModifiers/arcane_archer.py | 2 +- tpdatasrc/tpgamefiles/scr/tpModifiers/scout.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tpdatasrc/tpgamefiles/scr/tpModifiers/arcane_archer.py b/tpdatasrc/tpgamefiles/scr/tpModifiers/arcane_archer.py index 89cf600a9..8d4703d73 100644 --- a/tpdatasrc/tpgamefiles/scr/tpModifiers/arcane_archer.py +++ b/tpdatasrc/tpgamefiles/scr/tpModifiers/arcane_archer.py @@ -408,7 +408,7 @@ def HailOfArrowsRadial(attachee, args, evt_obj): def HailOfArrowsReset(attachee, args, evt_obj): args.set_arg(0, 0) - + return 0 hailOfArrowsFeat = PythonModifier("Hail of Arrows Feat", 3) # arg0 - used this day hailOfArrowsFeat.MapToFeat("Hail of Arrows") diff --git a/tpdatasrc/tpgamefiles/scr/tpModifiers/scout.py b/tpdatasrc/tpgamefiles/scr/tpModifiers/scout.py index 279962d43..74162b9a6 100644 --- a/tpdatasrc/tpgamefiles/scr/tpModifiers/scout.py +++ b/tpdatasrc/tpgamefiles/scr/tpModifiers/scout.py @@ -161,6 +161,10 @@ def SkirmishReset(attachee, args, evt_obj): #Zero out the total distance moved from the start position args.set_arg(0, 0) return 0 + +def SkirmishAdd(attachee, args, evt_obj): + args.set_arg(0, 0) #Zero out the total distance moved from the start position + return 0 def SkirmishAcBonus(attachee, args, evt_obj): # not active, do nothing @@ -234,6 +238,7 @@ def SkirmishDamageBonus(attachee, args, evt_obj): scoutSkirmish.AddHook(ET_OnDealingDamage, EK_NONE, SkirmishDamageBonus, ()) scoutSkirmish.AddHook(ET_OnGetAC, EK_NONE, SkirmishAcBonus, ()) scoutSkirmish.AddHook(ET_OnBeginRound, EK_NONE, SkirmishReset, ()) +scoutSkirmish.AddHook(ET_OnConditionAdd, EK_NONE, SkirmishAdd, ()) scoutSkirmish.AddHook(ET_OnD20Signal, EK_S_Combat_Critter_Moved, ScoutMovedDistance, ()) scoutSkirmish.AddHook(ET_OnGetTooltip, EK_NONE, SkirmishTooltip, ()) scoutSkirmish.AddHook(ET_OnGetEffectTooltip, EK_NONE, SkirmishEffectTooltip, ()) From 5a86bd7405b3ba515817b30be87ef99756fd6a99 Mon Sep 17 00:00:00 2001 From: doug1234 Date: Fri, 28 Jul 2023 19:06:51 -0400 Subject: [PATCH 2/2] Fix typo. --- tpdatasrc/tpgamefiles/rules/feats/sudden still.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpdatasrc/tpgamefiles/rules/feats/sudden still.txt b/tpdatasrc/tpgamefiles/rules/feats/sudden still.txt index 4d6418789..cabc994b1 100644 --- a/tpdatasrc/tpgamefiles/rules/feats/sudden still.txt +++ b/tpdatasrc/tpgamefiles/rules/feats/sudden still.txt @@ -1,5 +1,5 @@ name: Sudden Still flags: 4325376 prereqs: -description: nce per day, you can apply the effect of the Still Spell feat to any spell you cast without increasing the level of the spell or specially preparing it ahead of time. You can still use Still Spell normally if you have it. +description: Once per day, you can apply the effect of the Still Spell feat to any spell you cast without increasing the level of the spell or specially preparing it ahead of time. You can still use Still Spell normally if you have it. prereq descr: