예제 #1
0
raceSpecModule = __import__('race010_hill_giant')
###################################################


#### standard callbacks - BAB and Save values
def OnGetToHitBonusBase(attachee, args, evt_obj):
	classLvl = attachee.stat_level_get(classEnum)
	babvalue = game.get_bab_for_class(classEnum, classLvl)
	evt_obj.bonus_list.add(babvalue, 0, 137) # untyped, description: "Class"
	return 0


def OnGetSpellResistance(attachee, args, evt_obj):
	classLvl = attachee.stat_level_get(stat_level)
	evt_obj.bonus_list.add(11+classLvl, 36, "Racial Bonus (Drow)")
	return 0

def OnGetSpellResistanceTooltip(attachee, args, evt_obj):
	classLvl = attachee.stat_level_get(stat_level)
	evt_obj.append("Spell Resistance [" + str(11 + classLvl) + "]")
	return 0


raceSpecObj = PythonModifier(GetConditionName(), 0)
race_utils.AddAbilityModifierHooks(raceSpecObj, raceSpecModule)
race_utils.AddFavoredClassHook(raceSpecObj, stat_level_barbarian)
race_utils.AddSaveThrowBonusHook(raceSpecObj, D20_Save_Fortitude, 8)
race_utils.AddSaveThrowBonusHook(raceSpecObj, D20_Save_Will, 4)
race_utils.AddSaveThrowBonusHook(raceSpecObj, D20_Save_Reflex, 4)
race_utils.AddBaseMoveSpeed(raceSpecObj, 30)
예제 #2
0
    return 0


##########################################################

raceSpecObj = PythonModifier(GetConditionName(), 0)
race_utils.AddAbilityModifierHooks(raceSpecObj, raceSpecModule)
race_utils.AddSaveThrowBonusHook(raceSpecObj, D20_Save_Will, 2)
race_utils.AddSaveBonusVsEffectType(raceSpecObj, D20STD_F_SPELL_LIKE_EFFECT, 2)
race_utils.AddSkillBonuses(raceSpecObj, {
    skill_listen: 1,
    skill_spot: 1,
    skill_move_silently: 4
})
race_utils.AddBaseMoveSpeed(
    raceSpecObj, 20
)  # note: dwarven move speed with heavy armor or when medium/heavy encumbered is already handled in Encumbered Medium, Encumbered Heavy condition callbacks
race_utils.AddPoisonImmunity(raceSpecObj)
race_utils.AddFavoredClassHook(raceSpecObj, stat_level_fighter)

raceSpecObj.AddHook(ET_OnGetSkillLevel, EK_SKILL_APPRAISE, OnGetAppraiseSkill,
                    ())
raceSpecObj.AddHook(ET_OnGetMoveSpeed, EK_NONE, OnGetMoveSpeedSetLowerLimit,
                    ())
raceSpecObj.AddHook(ET_OnSaveThrowLevel, EK_NONE, ElvenSaveBonusEnchantment,
                    ())
raceSpecObj.AddHook(ET_OnConditionAddPre, EK_NONE, ConditionImmunityOnPreAdd,
                    ())  # paralysis immunity
raceSpecObj.AddHook(ET_OnToHitBonus2, EK_NONE, OnGetToHitBonusVsOrcsAndGoblins,
                    ())
raceSpecObj.AddHook(ET_OnGetAC, EK_NONE, OnGetArmorClassBonusVsGiants, ())