diff --git a/scripts/commands/of_dot_bomb.py b/scripts/commands/of_dot_bomb.py deleted file mode 100644 index 41c7adb4..00000000 --- a/scripts/commands/of_dot_bomb.py +++ /dev/null @@ -1,98 +0,0 @@ -import sys - -def setup(): - return - -def run(core, actor, target, commandString): - - commandSvc = core.commandService - - weapon = core.objectService.getObject(actor.getWeaponId()) - - if not weapon: - return - - if not weapon.getWeaponType() == 12: - return - - elementalType = weapon.getElementalType() - commandName = '' - - if elementalType == '@obj_attr_n:elemental_heat': - if actor.getLevel() >= 58: - commandName = 'co_hw_dot_fire_1' - if actor.getLevel() >= 60: - commandName = 'co_hw_dot_fire_2' - if actor.getLevel() >= 70: - commandName = 'co_hw_dot_fire_3' - if actor.getLevel() >= 80: - commandName = 'co_hw_dot_fire_4' - if actor.getLevel() >= 90: - commandName = 'co_hw_dot_fire_5' - elif elementalType == '@obj_attr_n:elemental_cold': - if actor.getLevel() >= 58: - commandName = 'co_hw_dot_cold_1' - if actor.getLevel() >= 60: - commandName = 'co_hw_dot_cold_2' - if actor.getLevel() >= 70: - commandName = 'co_hw_dot_cold_3' - if actor.getLevel() >= 80: - commandName = 'co_hw_dot_cold_4' - if actor.getLevel() >= 90: - commandName = 'co_hw_dot_cold_5' - elif elementalType == '@obj_attr_n:elemental_acid': - if actor.getLevel() >= 58: - commandName = 'co_hw_dot_acid_1' - if actor.getLevel() >= 60: - commandName = 'co_hw_dot_acid_2' - if actor.getLevel() >= 70: - commandName = 'co_hw_dot_acid_3' - if actor.getLevel() >= 80: - commandName = 'co_hw_dot_acid_4' - if actor.getLevel() >= 90: - commandName = 'co_hw_dot_acid_5' - elif elementalType == '@obj_attr_n:elemental_electricity': - if actor.getLevel() >= 58: - commandName = 'co_hw_dot_electrical_1' - if actor.getLevel() >= 60: - commandName = 'co_hw_dot_electrical_2' - if actor.getLevel() >= 70: - commandName = 'co_hw_dot_electrical_3' - if actor.getLevel() >= 80: - commandName = 'co_hw_dot_electrical_4' - if actor.getLevel() >= 90: - commandName = 'co_hw_dot_electrical_5' - elif elementalType == '@obj_attr_n:elemental_energy': - if actor.getLevel() >= 58: - commandName = 'co_hw_dot_energy_1' - if actor.getLevel() >= 60: - commandName = 'co_hw_dot_energy_2' - if actor.getLevel() >= 70: - commandName = 'co_hw_dot_energy_3' - if actor.getLevel() >= 80: - commandName = 'co_hw_dot_energy_4' - if actor.getLevel() >= 90: - commandName = 'co_hw_dot_energy_5' - elif elementalType =='@obj_attr_n:elemental_kinetic': - if actor.getLevel() >= 58: - commandName = 'co_hw_dot_kinetic_1' - if actor.getLevel() >= 60: - commandName = 'co_hw_dot_kinetic_2' - if actor.getLevel() >= 70: - commandName = 'co_hw_dot_kinetic_3' - if actor.getLevel() >= 80: - commandName = 'co_hw_dot_kinetic_4' - if actor.getLevel() >= 90: - commandName = 'co_hw_dot_kinetic_5' - - if commandName == '': - return - - combatCommand = commandSvc.getCommandByName(commandName).clone() - - if not combatCommand: - return - - commandSvc.processCombatCommand(actor, target, combatCommand, 0, commandString) - - return \ No newline at end of file diff --git a/scripts/skillMods/combat_divide_damage_taken.py b/scripts/skillMods/combat_divide_damage_taken.py index e69de29b..8d3e11e4 100644 --- a/scripts/skillMods/combat_divide_damage_taken.py +++ b/scripts/skillMods/combat_divide_damage_taken.py @@ -0,0 +1,9 @@ +import sys + +def add(core, actor, name, base): + actor.addSkillMod(name, base) + return + +def deduct(core, actor, name, base): + actor.deductSkillMod(name, base) + return