def FatigueEffectTooltip(attachee, args, evt_obj): # Set the tooltip exhausted = args.get_arg(2) if exhausted != 0: if exhausted == -1: evt_obj.append(tpdp.hash("FATIGUE_EXHAUST"), -2, "Exhausted") else: evt_obj.append(tpdp.hash("FATIGUE_EXHAUST"), -2, "Exhausted (" + str(exhausted) + " rounds)") else: fatigued = args.get_arg(1) if fatigued == -1: evt_obj.append(tpdp.hash("FATIGUE_EXHAUST"), -2, "Fatigue") else: evt_obj.append(tpdp.hash("FATIGUE_EXHAUST"), -2, "Fatigue (" + str(fatigued) + " rounds)") return 0
def DivineVigorEffectTooltip(attachee, args, evt_obj): # not active, do nothing if not args.get_arg(0): return 0 tempHP = args.get_arg(2) # Set the tooltip (showing temporary hit points if applicable) if tempHP > 0: evt_obj.append( tpdp.hash("DIVINE_VIGOR"), -2, " (" + str(args.get_arg(1)) + " rounds, Temp HP:" + str(tempHP) + ")") else: evt_obj.append(tpdp.hash("DIVINE_VIGOR"), -2, " (" + str(args.get_arg(1)) + " rounds)") return 0
def Surprised2_OnGetEffectTooltip(attachee, args, evt_obj): assert isinstance(attachee, toee.PyObjHandle) assert isinstance(args, tpdp.EventArgs) assert isinstance(evt_obj, tpdp.EventObjEffectTooltip) #evt_obj.append(65, -1, "Surprised") evt_obj.append(tpdp.hash("SURPRISED2"), -1, "") return 0
def WolverineRageEffectTooltipEffect(attachee, args, evt_obj): # not active, do nothing if not args.get_arg(2): return 0 # Set the tooltip evt_obj.append(tpdp.hash("WOLVERINE_RAGE"), -2, "") return 0
def PainTouchEffectGetEffectTooltip(attachee, args, evt_obj): # not active, do nothing if not args.get_arg(0): return 0 # Set the tooltip evt_obj.append(tpdp.hash("PAIN_TOUCH"), -2, "") return 0
def DivineArmorEffectTooltip(attachee, args, evt_obj): # not active, do nothing if not args.get_arg(0): return 0 # Set the tooltip evt_obj.append(tpdp.hash("DIVINE_ARMOR"), -2, "") return 0
def Lodged_Quills_OnGetEffectTooltip(attachee, args, evt_obj): assert isinstance(attachee, toee.PyObjHandle) assert isinstance(args, tpdp.EventArgs) assert isinstance(evt_obj, tpdp.EventObjEffectTooltip) lodged_quills = args.get_arg(0) if (lodged_quills): evt_obj.append(tpdp.hash("LODGED_QUILLS"), -2, LODGED_QUILLS_TOOLTIP_SUFFIX.format(lodged_quills)) return 0
def StaggeringStrikeEffectGetEffectTooltip(attachee, args, evt_obj): # not active, do nothing if not args.get_arg(0): return 0 # Set the tooltip evt_obj.append(tpdp.hash("STAGGERING_STRIKE"), -2, "") return 0
def DivineShieldEffectTooltip(attachee, args, evt_obj): # not active, do nothing if not args.get_arg(0): return 0 # Set the tooltip evt_obj.append(tpdp.hash("DIVINE_SHIELD"), -2, " (" + str(args.get_arg(1)) + " rounds)") return 0
def DefStanceEffectTooltip(attachee, args, evt_obj): if not IsActive(args): return 0 if IsWinded(args): evt_obj.append(154, -2, "Winded (" + str(args.get_arg(2)) + " rounds)") return 0 evt_obj.append(tpdp.hash("DWARVEN_DEFENDER_STANCE"), -2, " (" + str(args.get_arg(2)) + " rounds)") return 0
def OakenResilienceEffectTooltipEffect(attachee, args, evt_obj): # not active, do nothing if not args.get_arg(0): return 0 # Set the tooltip evt_obj.append(tpdp.hash("OAKEN_RESILIENCE"), -2, " (" + str(args.get_arg(1)) + " rounds)") return 0
def ArcaneBoostEffectTooltipEffect(attachee, args, evt_obj): # Set the tooltip type = args.get_arg(0) bonus = args.get_arg(1) extraString = GetArcaneBoostDescription(type) if type < 5: extraString = extraString + " +" else: extraString = extraString + " DR" extraString = extraString + str(bonus) evt_obj.append(tpdp.hash("ARCANE_BOOST"), -2, extraString) return 0
def DivineSpellPowerEffectTooltip(attachee, args, evt_obj): # not active, do nothing if not args.get_arg(0): return 0 #Once a spell has been cast disable the tooltip if args.get_arg(2): return 0 # Set the tooltip evt_obj.append(tpdp.hash("DIVINE_SPELL_POWER"), -2, " (caster level bonus: " + str(args.get_arg(1)) + ")") return 0
def VersatileUnarmedStrikeEffectTooltipEffect(attachee, args, evt_obj): # 0 is Bludgeoning since this is the default, don't display if not args.get_arg(0): return 0 if args.get_arg(0) == 1: damageType = "Piercing" else: damageType = "Slashing" # Set the tooltip evt_obj.append(tpdp.hash("VERSATILE_UNARMED_STRIKE"), -2, " - " + damageType) return 0
def SkirmishEffectTooltip(attachee, args, evt_obj): # not active, do nothing if not SkirmishEnabled(args.get_arg(0)): return 0 #Scout must not be encumbered if ScoutEncumberedCheck(attachee): return 0 #Generate the tooltip tipString = "(" + GetSkirmishDamageDice(attachee) skirmishACBonus = GetSkirmishACBonus(attachee) if skirmishACBonus > 0: tipString = tipString + ",+" + str(skirmishACBonus) + "AC" tipString = tipString + ")" evt_obj.append(tpdp.hash("SCOUT_SKIRMISH"), -2, tipString) return 0
def UETooltip(attachee, args, evt_obj): key = tpdp.hash('UNSTEADY') evt_obj.append(key, -2, '') return 0
def touchKey(spellId): return tpdp.hash("{}_CHARGE".format(spellKeyName(spellId)))
def PrayerEffectTooltip(attachee, args, evt_obj): evt_obj.append(tpdp.hash("PRAYER_BEADS_KARMA"), -2, "Karmic Prayer (" + str(args.get_arg(2)) + " rounds)") return 0
def MindBlankEffectTooltip(attachee, args, evt_obj): # Set the tooltip evt_obj.append(tpdp.hash("MIND_BLANK"), -2, " (" + str(args.get_arg(1)) + " rounds)") return 0
def MagicCircleOutwardEffEffectTooltip(attachee, args, evt_obj): type = args.get_arg(1) SpellName = GetCircleEffectType(type) evt_obj.append(tpdp.hash("MAGIC_CIRCLE_OUTWARD_FIXED_EFFECT"), -2, SpellName + "") return 0
def spellKey(spellId): return tpdp.hash(spellKeyName(spellId))
def TouchOfFatigueEffectTooltip(attachee, args, evt_obj): # Set the tooltip evt_obj.append(tpdp.hash("TOUCH_OF_FATIGUE"), -2, " (" + str(args.get_arg(1)) + " rounds)") return 0
def MomentOfPrescienceEffectTooltip(attachee, args, evt_obj): # Set the tooltip evt_obj.append(tpdp.hash("MOMENT_OF_PRESCIENCE"), -2, " (" + str(args.get_arg(1)) + " rounds)") return 0
def ForesightEffectTooltip(attachee, args, evt_obj): # Set the tooltip evt_obj.append(tpdp.hash("FORESIGHT"), -2, " (" + str(args.get_arg(1)) + " rounds)") return 0