diff --git a/scripts/buffs/bh_power_sprint.py b/scripts/buffs/bh_power_sprint.py new file mode 100644 index 00000000..e7550d0d --- /dev/null +++ b/scripts/buffs/bh_power_sprint.py @@ -0,0 +1,16 @@ +import sys + +def setup(core, actor, buff): + return + +def add(core, actor, buff): + core.skillModService.addSkillMod(actor, 'movement', 6) + core.skillModService.addSkillMod(actor, 'movement_resist_snare', 100) + + return + +def remove(core, actor, buff): + core.skillModService.deductSkillMod(actor, 'movement', 6) + core.skillModService.deductSkillMod(actor, 'movement_resist_snare', 100) + + return \ No newline at end of file diff --git a/scripts/buffs/bh_shields.py b/scripts/buffs/bh_shields.py new file mode 100644 index 00000000..36115d7f --- /dev/null +++ b/scripts/buffs/bh_shields.py @@ -0,0 +1,12 @@ +import sys + +def setup(core, actor, buff): + return + +def add(core, actor, buff): + core.skillModService.addSkillMod(actor, 'combat_divide_damage_taken', 1) + return + +def remove(core, actor, buff): + core.skillModService.deductSkillMod(actor, 'combat_divide_damage_taken', 1) + return \ No newline at end of file diff --git a/scripts/buffs/bh_shields_charged.py b/scripts/buffs/bh_shields_charged.py new file mode 100644 index 00000000..d66644af --- /dev/null +++ b/scripts/buffs/bh_shields_charged.py @@ -0,0 +1,13 @@ +import sys + +def setup(core, actor, buff): + return + +def add(core, actor, buff): + core.skillModService.addSkillMod(actor, 'combat_multiply_damage_given', 1) + return + +def remove(core, actor, buff): + core.skillModService.deductSkillMod(actor, 'combat_multiply_damage_given', 1) + return + \ No newline at end of file diff --git a/scripts/buffs/buildabuff_inspiration.py b/scripts/buffs/buildabuff_inspiration.py index 25ba7355..35a49556 100644 --- a/scripts/buffs/buildabuff_inspiration.py +++ b/scripts/buffs/buildabuff_inspiration.py @@ -21,8 +21,10 @@ def add(core, actor, buff): return def remove(core, actor, buff): - for BuffItem in actor.getAttachment('buffWorkshop'): - core.skillModService.deductSkillMod(actor, BuffItem.getSkillName(), BuffItem.getAffectAmount()) - - actor.setAttachment('buffWorkshop', None) - return \ No newline at end of file + if actor.getAttachment('buffWorkshop') is not None: + + for BuffItem in actor.getAttachment('buffWorkshop'): + core.skillModService.deductSkillMod(actor, BuffItem.getSkillName(), BuffItem.getAffectAmount()) + + actor.setAttachment('buffWorkshop', None) + return \ No newline at end of file diff --git a/scripts/buffs/set_bonus_medic_dps_1.py b/scripts/buffs/set_bonus_medic_dps_1.py new file mode 100644 index 00000000..178d4c76 --- /dev/null +++ b/scripts/buffs/set_bonus_medic_dps_1.py @@ -0,0 +1,16 @@ +import sys + +def setup(core, actor, buff): + return + +def add(core, actor, buff): + core.skillModService.addSkillMod(actor, 'expertise_action_line_me_dm', 5) + core.skillModService.addSkillMod(actor, 'expertise_action_line_me_burst', 5) + core.skillModService.addSkillMod(actor, 'expertise_action_line_me_smash', 5) + return + +def remove(core, actor, buff): + core.skillModService.deductSkillMod(actor, 'expertise_action_line_me_dm', 5) + core.skillModService.deductSkillMod(actor, 'expertise_action_line_me_burst', 5) + core.skillModService.deductSkillMod(actor, 'expertise_action_line_me_smash', 5) + return \ No newline at end of file diff --git a/scripts/buffs/set_bonus_medic_dps_2.py b/scripts/buffs/set_bonus_medic_dps_2.py new file mode 100644 index 00000000..36833f96 --- /dev/null +++ b/scripts/buffs/set_bonus_medic_dps_2.py @@ -0,0 +1,20 @@ +import sys + +def setup(core, actor, buff): + return + +def add(core, actor, buff): + core.skillModService.addSkillMod(actor, 'expertise_action_line_me_dm', 10) + core.skillModService.addSkillMod(actor, 'expertise_action_line_me_burst', 10) + core.skillModService.addSkillMod(actor, 'expertise_action_line_me_smash', 10) + core.skillModService.addSkillMod(actor, 'fast_attack_line_me_dm', 5) + core.skillModService.addSkillMod(actor, 'expertise_buff_duration_line_me_enhance', 900) + return + +def remove(core, actor, buff): + core.skillModService.deductSkillMod(actor, 'expertise_action_line_me_dm', 10) + core.skillModService.deductSkillMod(actor, 'expertise_action_line_me_burst', 10) + core.skillModService.deductSkillMod(actor, 'expertise_action_line_me_smash', 10) + core.skillModService.deductSkillMod(actor, 'fast_attack_line_me_dm', 5) + core.skillModService.deductSkillMod(actor, 'expertise_buff_duration_line_me_enhance', 900) + return \ No newline at end of file diff --git a/scripts/buffs/set_bonus_medic_dps_3.py b/scripts/buffs/set_bonus_medic_dps_3.py new file mode 100644 index 00000000..f9082b73 --- /dev/null +++ b/scripts/buffs/set_bonus_medic_dps_3.py @@ -0,0 +1,20 @@ +import sys + +def setup(core, actor, buff): + return + +def add(core, actor, buff): + core.skillModService.addSkillMod(actor, 'expertise_action_line_me_dm', 15) + core.skillModService.addSkillMod(actor, 'expertise_action_line_me_burst', 20) + core.skillModService.addSkillMod(actor, 'expertise_action_line_me_smash', 20) + core.skillModService.addSkillMod(actor, 'fast_attack_line_me_dm', 15) + core.skillModService.addSkillMod(actor, 'expertise_buff_duration_line_me_enhance', 1800) + return + +def remove(core, actor, buff): + core.skillModService.deductSkillMod(actor, 'expertise_action_line_me_dm', 15) + core.skillModService.deductSkillMod(actor, 'expertise_action_line_me_burst', 20) + core.skillModService.deductSkillMod(actor, 'expertise_action_line_me_smash', 20) + core.skillModService.deductSkillMod(actor, 'fast_attack_line_me_dm', 15) + core.skillModService.deductSkillMod(actor, 'expertise_buff_duration_line_me_enhance', 1800) + return \ No newline at end of file diff --git a/scripts/buffs/set_bonus_medic_utility_a_1.py b/scripts/buffs/set_bonus_medic_utility_a_1.py new file mode 100644 index 00000000..a04d1d33 --- /dev/null +++ b/scripts/buffs/set_bonus_medic_utility_a_1.py @@ -0,0 +1,16 @@ +import sys + +def setup(core, actor, buff): + return + +def add(core, actor, buff): + core.skillModService.addSkillMod(actor, 'expertise_freeshot_me_heal', 5) + core.skillModService.addSkillMod(actor, 'fast_attack_line_me_revive', 5) + core.skillModService.addSkillMod(actor, 'expertise_cooldown_line_me_evasion', 10) + return + +def remove(core, actor, buff): + core.skillModService.deductSkillMod(actor, 'expertise_freeshot_me_heal', 5) + core.skillModService.deductSkillMod(actor, 'fast_attack_line_me_revive', 5) + core.skillModService.deductSkillMod(actor, 'expertise_cooldown_line_me_evasion', 10) + return \ No newline at end of file diff --git a/scripts/buffs/set_bonus_medic_utility_a_2.py b/scripts/buffs/set_bonus_medic_utility_a_2.py new file mode 100644 index 00000000..3fd9f063 --- /dev/null +++ b/scripts/buffs/set_bonus_medic_utility_a_2.py @@ -0,0 +1,18 @@ +import sys + +def setup(core, actor, buff): + return + +def add(core, actor, buff): + core.skillModService.addSkillMod(actor, 'fast_attack_line_me_heal', 5) + core.skillModService.addSkillMod(actor, 'expertise_freeshot_me_heal', 10) + core.skillModService.addSkillMod(actor, 'fast_attack_line_me_revive', 10) + core.skillModService.addSkillMod(actor, 'expertise_cooldown_line_me_evasion', 20) + return + +def remove(core, actor, buff): + core.skillModService.deductSkillMod(actor, 'fast_attack_line_me_heal', 5) + core.skillModService.deductSkillMod(actor, 'expertise_freeshot_me_heal', 10) + core.skillModService.deductSkillMod(actor, 'fast_attack_line_me_revive', 10) + core.skillModService.deductSkillMod(actor, 'expertise_cooldown_line_me_evasion', 20) + return \ No newline at end of file diff --git a/scripts/buffs/set_bonus_medic_utility_a_3.py b/scripts/buffs/set_bonus_medic_utility_a_3.py new file mode 100644 index 00000000..11bad3ba --- /dev/null +++ b/scripts/buffs/set_bonus_medic_utility_a_3.py @@ -0,0 +1,20 @@ +import sys + +def setup(core, actor, buff): + return + +def add(core, actor, buff): + core.skillModService.addSkillMod(actor, 'fast_attack_line_me_heal', 10) + core.skillModService.addSkillMod(actor, 'expertise_freeshot_me_heal', 15) + core.skillModService.addSkillMod(actor, 'fast_attack_line_me_revive', 15) + core.skillModService.addSkillMod(actor, 'expertise_cooldown_line_me_evasion', 30) + core.skillModService.addSkillMod(actor, 'expertise_cooldown_line_me_stasis_self', 2) + return + +def remove(core, actor, buff): + core.skillModService.deductSkillMod(actor, 'fast_attack_line_me_heal', 10) + core.skillModService.deductSkillMod(actor, 'expertise_freeshot_me_heal', 15) + core.skillModService.deductSkillMod(actor, 'fast_attack_line_me_revive', 15) + core.skillModService.deductSkillMod(actor, 'expertise_cooldown_line_me_evasion', 30) + core.skillModService.deductSkillMod(actor, 'expertise_cooldown_line_me_stasis_self', 2) + return \ No newline at end of file diff --git a/scripts/buffs/set_bonus_medic_utility_b_1.py b/scripts/buffs/set_bonus_medic_utility_b_1.py new file mode 100644 index 00000000..1ec0be40 --- /dev/null +++ b/scripts/buffs/set_bonus_medic_utility_b_1.py @@ -0,0 +1,16 @@ +import sys + +def setup(core, actor, buff): + return + +def add(core, actor, buff): + core.skillModService.addSkillMod(actor, 'expertise_cooldown_line_me_dot', 10) + core.skillModService.addSkillMod(actor, 'expertise_buff_duration_line_me_debuff', 1) + core.skillModService.addSkillMod(actor, 'fast_attack_line_me_debuff', 5) + return + +def remove(core, actor, buff): + core.skillModService.deductSkillMod(actor, 'expertise_cooldown_line_me_dot', 10) + core.skillModService.deductSkillMod(actor, 'expertise_buff_duration_line_me_debuff', 1) + core.skillModService.deductSkillMod(actor, 'fast_attack_line_me_debuff', 5) + return \ No newline at end of file diff --git a/scripts/buffs/set_bonus_medic_utility_b_2.py b/scripts/buffs/set_bonus_medic_utility_b_2.py new file mode 100644 index 00000000..b6d95b63 --- /dev/null +++ b/scripts/buffs/set_bonus_medic_utility_b_2.py @@ -0,0 +1,18 @@ +import sys + +def setup(core, actor, buff): + return + +def add(core, actor, buff): + core.skillModService.addSkillMod(actor, 'expertise_cooldown_line_me_dot', 20) + core.skillModService.addSkillMod(actor, 'expertise_buff_duration_line_me_debuff', 3) + core.skillModService.addSkillMod(actor, 'fast_attack_line_me_debuff', 10) + core.skillModService.addSkillMod(actor, 'expertise_freeshot_me_debuff', 10) + return + +def remove(core, actor, buff): + core.skillModService.deductSkillMod(actor, 'expertise_cooldown_line_me_dot', 20) + core.skillModService.deductSkillMod(actor, 'expertise_buff_duration_line_me_debuff', 3) + core.skillModService.deductSkillMod(actor, 'fast_attack_line_me_debuff', 10) + core.skillModService.deductSkillMod(actor, 'expertise_freeshot_me_debuff', 10) + return \ No newline at end of file diff --git a/scripts/buffs/set_bonus_medic_utility_b_3.py b/scripts/buffs/set_bonus_medic_utility_b_3.py new file mode 100644 index 00000000..4a5af114 --- /dev/null +++ b/scripts/buffs/set_bonus_medic_utility_b_3.py @@ -0,0 +1,20 @@ +import sys + +def setup(core, actor, buff): + return + +def add(core, actor, buff): + core.skillModService.addSkillMod(actor, 'expertise_cooldown_line_me_dot', 30) + core.skillModService.addSkillMod(actor, 'expertise_buff_duration_line_me_debuff', 5) + core.skillModService.addSkillMod(actor, 'fast_attack_line_me_debuff', 15) + core.skillModService.addSkillMod(actor, 'expertise_freeshot_me_debuff', 15) + core.skillModService.addSkillMod(actor, 'me_doom_chance', 20) + return + +def remove(core, actor, buff): + core.skillModService.deductSkillMod(actor, 'expertise_cooldown_line_me_dot', 30) + core.skillModService.deductSkillMod(actor, 'expertise_buff_duration_line_me_debuff', 5) + core.skillModService.deductSkillMod(actor, 'fast_attack_line_me_debuff', 15) + core.skillModService.deductSkillMod(actor, 'expertise_freeshot_me_debuff', 15) + core.skillModService.deductSkillMod(actor, 'me_doom_chance', 20) + return \ No newline at end of file diff --git a/scripts/buffs/set_bonus_spy_dps_1.py b/scripts/buffs/set_bonus_spy_dps_1.py new file mode 100644 index 00000000..a375544a --- /dev/null +++ b/scripts/buffs/set_bonus_spy_dps_1.py @@ -0,0 +1,14 @@ +import sys + +def setup(core, actor, buff): + return + +def add(core, actor, buff): + core.skillModService.addSkillMod(actor, 'expertise_action_line_sp_dm', 10) + core.skillModService.addSkillMod(actor, 'fast_attack_line_sp_dm', 5) + return + +def remove(core, actor, buff): + core.skillModService.deductSkillMod(actor, 'expertise_action_line_sp_dm', 10) + core.skillModService.deductSkillMod(actor, 'fast_attack_line_sp_dm', 5) + return \ No newline at end of file diff --git a/scripts/buffs/set_bonus_spy_dps_2.py b/scripts/buffs/set_bonus_spy_dps_2.py new file mode 100644 index 00000000..25132b6d --- /dev/null +++ b/scripts/buffs/set_bonus_spy_dps_2.py @@ -0,0 +1,16 @@ +import sys + +def setup(core, actor, buff): + return + +def add(core, actor, buff): + core.skillModService.addSkillMod(actor, 'expertise_action_line_sp_dm', 15) + core.skillModService.addSkillMod(actor, 'fast_attack_line_sp_dm', 10) + core.skillModService.addSkillMod(actor, 'expertise_action_line_sp_dot', 15) + return + +def remove(core, actor, buff): + core.skillModService.deductSkillMod(actor, 'expertise_action_line_sp_dm', 15) + core.skillModService.deductSkillMod(actor, 'fast_attack_line_sp_dm', 10) + core.skillModService.deductSkillMod(actor, 'expertise_action_line_sp_dot', 15) + return \ No newline at end of file diff --git a/scripts/buffs/set_bonus_spy_dps_3.py b/scripts/buffs/set_bonus_spy_dps_3.py new file mode 100644 index 00000000..9fdedc7e --- /dev/null +++ b/scripts/buffs/set_bonus_spy_dps_3.py @@ -0,0 +1,20 @@ +import sys + +def setup(core, actor, buff): + return + +def add(core, actor, buff): + core.skillModService.addSkillMod(actor, 'expertise_action_line_sp_dm', 20) + core.skillModService.addSkillMod(actor, 'fast_attack_line_sp_dm', 15) + core.skillModService.addSkillMod(actor, 'expertise_freeshot_sp_dm', 20) + core.skillModService.addSkillMod(actor, 'expertise_cooldown_line_sp_dm', 20) + core.skillModService.addSkillMod(actor, 'expertise_action_line_sp_dot', 25) + return + +def remove(core, actor, buff): + core.skillModService.deductSkillMod(actor, 'expertise_action_line_sp_dm', 20) + core.skillModService.deductSkillMod(actor, 'fast_attack_line_sp_dm', 15) + core.skillModService.deductSkillMod(actor, 'expertise_freeshot_sp_dm', 20) + core.skillModService.deductSkillMod(actor, 'expertise_cooldown_line_sp_dm', 20) + core.skillModService.deductSkillMod(actor, 'expertise_action_line_sp_dot', 25) + return \ No newline at end of file diff --git a/scripts/buffs/set_bonus_spy_utility_a_1.py b/scripts/buffs/set_bonus_spy_utility_a_1.py new file mode 100644 index 00000000..dab7ff64 --- /dev/null +++ b/scripts/buffs/set_bonus_spy_utility_a_1.py @@ -0,0 +1,14 @@ +import sys + +def setup(core, actor, buff): + return + +def add(core, actor, buff): + core.skillModService.addSkillMod(actor, 'expertise_cooldown_line_sp_preparation', 20) + core.skillModService.addSkillMod(actor, 'fast_attack_line_sp_smoke', 5) + return + +def remove(core, actor, buff): + core.skillModService.deductSkillMod(actor, 'expertise_cooldown_line_sp_preparation', 20) + core.skillModService.deductSkillMod(actor, 'fast_attack_line_sp_smoke', 5) + return \ No newline at end of file diff --git a/scripts/buffs/set_bonus_spy_utility_a_2.py b/scripts/buffs/set_bonus_spy_utility_a_2.py new file mode 100644 index 00000000..a1892f96 --- /dev/null +++ b/scripts/buffs/set_bonus_spy_utility_a_2.py @@ -0,0 +1,16 @@ +import sys + +def setup(core, actor, buff): + return + +def add(core, actor, buff): + core.skillModService.addSkillMod(actor, 'expertise_cooldown_line_sp_preparation', 40) + core.skillModService.addSkillMod(actor, 'expertise_buff_duration_line_sp_preparation', 5) + core.skillModService.addSkillMod(actor, 'fast_attack_line_sp_smoke', 15) + return + +def remove(core, actor, buff): + core.skillModService.deductSkillMod(actor, 'expertise_cooldown_line_sp_preparation', 40) + core.skillModService.deductSkillMod(actor, 'expertise_buff_duration_line_sp_preparation', 5) + core.skillModService.deductSkillMod(actor, 'fast_attack_line_sp_smoke', 15) + return \ No newline at end of file diff --git a/scripts/buffs/set_bonus_spy_utility_a_3.py b/scripts/buffs/set_bonus_spy_utility_a_3.py new file mode 100644 index 00000000..22e3a920 --- /dev/null +++ b/scripts/buffs/set_bonus_spy_utility_a_3.py @@ -0,0 +1,18 @@ +import sys + +def setup(core, actor, buff): + return + +def add(core, actor, buff): + core.skillModService.addSkillMod(actor, 'expertise_cooldown_line_sp_preparation', 60) + core.skillModService.addSkillMod(actor, 'expertise_buff_duration_line_sp_preparation', 10) + core.skillModService.addSkillMod(actor, 'fast_attack_line_sp_smoke', 20) + core.skillModService.addSkillMod(actor, 'fast_attack_line_sp_perfect', 15) + return + +def remove(core, actor, buff): + core.skillModService.deductSkillMod(actor, 'expertise_cooldown_line_sp_preparation', 60) + core.skillModService.deductSkillMod(actor, 'expertise_buff_duration_line_sp_preparation', 10) + core.skillModService.deductSkillMod(actor, 'fast_attack_line_sp_smoke', 20) + core.skillModService.deductSkillMod(actor, 'fast_attack_line_sp_perfect', 15) + return \ No newline at end of file diff --git a/scripts/buffs/set_bonus_spy_utility_b_1.py b/scripts/buffs/set_bonus_spy_utility_b_1.py new file mode 100644 index 00000000..74851b44 --- /dev/null +++ b/scripts/buffs/set_bonus_spy_utility_b_1.py @@ -0,0 +1,14 @@ +import sys + +def setup(core, actor, buff): + return + +def add(core, actor, buff): + core.skillModService.addSkillMod(actor, 'expertise_strikethrough_chance', 1) + core.skillModService.addSkillMod(actor, 'expertise_action_all', 5) + return + +def remove(core, actor, buff): + core.skillModService.deductSkillMod(actor, 'expertise_strikethrough_chance', 1) + core.skillModService.deductSkillMod(actor, 'expertise_action_all', 5) + return \ No newline at end of file diff --git a/scripts/buffs/set_bonus_spy_utility_b_2.py b/scripts/buffs/set_bonus_spy_utility_b_2.py new file mode 100644 index 00000000..c2f90380 --- /dev/null +++ b/scripts/buffs/set_bonus_spy_utility_b_2.py @@ -0,0 +1,14 @@ +import sys + +def setup(core, actor, buff): + return + +def add(core, actor, buff): + core.skillModService.addSkillMod(actor, 'expertise_strikethrough_chance', 2) + core.skillModService.addSkillMod(actor, 'expertise_action_all', 10) + return + +def remove(core, actor, buff): + core.skillModService.deductSkillMod(actor, 'expertise_strikethrough_chance', 2) + core.skillModService.deductSkillMod(actor, 'expertise_action_all', 10) + return \ No newline at end of file diff --git a/scripts/buffs/set_bonus_spy_utility_b_3.py b/scripts/buffs/set_bonus_spy_utility_b_3.py new file mode 100644 index 00000000..41d58c47 --- /dev/null +++ b/scripts/buffs/set_bonus_spy_utility_b_3.py @@ -0,0 +1,20 @@ +import sys + +def setup(core, actor, buff): + return + +def add(core, actor, buff): + core.skillModService.addSkillMod(actor, 'expertise_strikethrough_chance', 3) + core.skillModService.addSkillMod(actor, 'expertise_action_all', 15) + core.skillModService.addSkillMod(actor, 'expertise_avoidance_overpower', 5) + core.skillModService.addSkillMod(actor, 'movement_resist_snare', 100) + core.skillModService.addSkillMod(actor, 'movement_resist_root', 100) + return + +def remove(core, actor, buff): + core.skillModService.deductSkillMod(actor, 'expertise_strikethrough_chance', 3) + core.skillModService.deductSkillMod(actor, 'expertise_action_all', 15) + core.skillModService.deductSkillMod(actor, 'expertise_avoidance_overpower', 5) + core.skillModService.deductSkillMod(actor, 'movement_resist_snare', 100) + core.skillModService.deductSkillMod(actor, 'movement_resist_root', 100) + return \ No newline at end of file diff --git a/scripts/commands/bh_armor_sprint_1.py b/scripts/commands/bh_armor_sprint_1.py index b7e33772..45376aa9 100644 --- a/scripts/commands/bh_armor_sprint_1.py +++ b/scripts/commands/bh_armor_sprint_1.py @@ -1,7 +1,7 @@ import sys def setup(core, actor, buff): - core.buffService.addBuffToCreature(actor, 'bh_armor_sprint_1') + core.buffService.addBuffToCreature(actor, 'bh_power_sprint_1') return def run(core, actor, target, commandString): diff --git a/scripts/commands/bh_shields_1.py b/scripts/commands/bh_shields_1.py new file mode 100644 index 00000000..41e93a6a --- /dev/null +++ b/scripts/commands/bh_shields_1.py @@ -0,0 +1,10 @@ +import sys + +def setup(core, actor, target, command): + return + +def run(core, actor, target, commandString): + core.buffService.addBuffToCreature(actor, 'bh_shields') + core.buffService.addBuffToCreature(actor, 'bh_shields_charged') + core.buffService.addBuffToCreature(actor, 'bh_shields_handler') + return \ No newline at end of file diff --git a/scripts/commands/combat/fs_drain_1.py b/scripts/commands/combat/fs_drain_1.py new file mode 100644 index 00000000..c7937d1e --- /dev/null +++ b/scripts/commands/combat/fs_drain_1.py @@ -0,0 +1,16 @@ +import sys + +def setup(core, actor, target, command): + + if actor.getSkillMod('expertise_fs_dm_armor_bypass'): + command.setBypassArmor(actor.getSkillModBase("expertise_fs_dm_armor_bypass")) + + return + +def run(core, actor, target, damage): + + if actor.getSkillMod('expertise_fs_imp_drain'): + damage *= (100 + float(actor.getSkillModBase('expertise_fs_imp_drain')))/100 + + core.combatService.doDrainHeal(actor, int(damage)) + return \ No newline at end of file diff --git a/scripts/commands/combat/fs_drain_2.py b/scripts/commands/combat/fs_drain_2.py new file mode 100644 index 00000000..c7937d1e --- /dev/null +++ b/scripts/commands/combat/fs_drain_2.py @@ -0,0 +1,16 @@ +import sys + +def setup(core, actor, target, command): + + if actor.getSkillMod('expertise_fs_dm_armor_bypass'): + command.setBypassArmor(actor.getSkillModBase("expertise_fs_dm_armor_bypass")) + + return + +def run(core, actor, target, damage): + + if actor.getSkillMod('expertise_fs_imp_drain'): + damage *= (100 + float(actor.getSkillModBase('expertise_fs_imp_drain')))/100 + + core.combatService.doDrainHeal(actor, int(damage)) + return \ No newline at end of file diff --git a/scripts/commands/combat/fs_drain_3.py b/scripts/commands/combat/fs_drain_3.py new file mode 100644 index 00000000..c7937d1e --- /dev/null +++ b/scripts/commands/combat/fs_drain_3.py @@ -0,0 +1,16 @@ +import sys + +def setup(core, actor, target, command): + + if actor.getSkillMod('expertise_fs_dm_armor_bypass'): + command.setBypassArmor(actor.getSkillModBase("expertise_fs_dm_armor_bypass")) + + return + +def run(core, actor, target, damage): + + if actor.getSkillMod('expertise_fs_imp_drain'): + damage *= (100 + float(actor.getSkillModBase('expertise_fs_imp_drain')))/100 + + core.combatService.doDrainHeal(actor, int(damage)) + return \ No newline at end of file diff --git a/scripts/commands/combat/fs_drain_4.py b/scripts/commands/combat/fs_drain_4.py new file mode 100644 index 00000000..c7937d1e --- /dev/null +++ b/scripts/commands/combat/fs_drain_4.py @@ -0,0 +1,16 @@ +import sys + +def setup(core, actor, target, command): + + if actor.getSkillMod('expertise_fs_dm_armor_bypass'): + command.setBypassArmor(actor.getSkillModBase("expertise_fs_dm_armor_bypass")) + + return + +def run(core, actor, target, damage): + + if actor.getSkillMod('expertise_fs_imp_drain'): + damage *= (100 + float(actor.getSkillModBase('expertise_fs_imp_drain')))/100 + + core.combatService.doDrainHeal(actor, int(damage)) + return \ No newline at end of file diff --git a/scripts/commands/combat/fs_drain_5.py b/scripts/commands/combat/fs_drain_5.py new file mode 100644 index 00000000..c7937d1e --- /dev/null +++ b/scripts/commands/combat/fs_drain_5.py @@ -0,0 +1,16 @@ +import sys + +def setup(core, actor, target, command): + + if actor.getSkillMod('expertise_fs_dm_armor_bypass'): + command.setBypassArmor(actor.getSkillModBase("expertise_fs_dm_armor_bypass")) + + return + +def run(core, actor, target, damage): + + if actor.getSkillMod('expertise_fs_imp_drain'): + damage *= (100 + float(actor.getSkillModBase('expertise_fs_imp_drain')))/100 + + core.combatService.doDrainHeal(actor, int(damage)) + return \ No newline at end of file diff --git a/scripts/commands/holoemote.py b/scripts/commands/holoemote.py index 37029c45..022e7746 100644 --- a/scripts/commands/holoemote.py +++ b/scripts/commands/holoemote.py @@ -14,6 +14,10 @@ def run(core, actor, target, commandString): installedEmote = '' + if actor.hasCooldown('holoEmote'): + actor.sendSystemMessage('Your Holo-Emote generator is in use or recharging.', 0) # Not sure if this is correct. + return + if player.getHoloEmote() is not None: installedEmote = player.getHoloEmote().replace('holoemote_','') @@ -43,7 +47,9 @@ def run(core, actor, target, commandString): effectObj = 'clienteffect/holoemote_' + commandString + '.cef' actor.playEffectObject(effectObj, 'head') player.setHoloEmoteUses(player.getHoloEmoteUses() - 1) - # TODO: Cooldowns for the holo-emote's + + actor.addCooldown('holoEmote', long(30 * 1000)) + return def holoPrompt(player, emote): diff --git a/scripts/commands/me_buff_health_1.py b/scripts/commands/me_buff_health_1.py index fb9880d2..ad02456d 100644 --- a/scripts/commands/me_buff_health_1.py +++ b/scripts/commands/me_buff_health_1.py @@ -9,11 +9,11 @@ def run(core, actor, target, commandString): if target and target.getSlottedObject("ghost"): if group and target in group.getMemberList(): - core.buffService.addGroupBuff(target, 'me_buff_health', actor) + core.buffService.addGroupBuff(target, 'me_buff_health_0', actor) else: - core.buffService.addBuffToCreature(target, 'me_buff_health', actor) + core.buffService.addBuffToCreature(target, 'me_buff_health_0', actor) else: - core.buffService.addGroupBuff(actor, 'me_buff_health', actor) + core.buffService.addGroupBuff(actor, 'me_buff_health_0', actor) return \ No newline at end of file diff --git a/scripts/commands/me_buff_health_2.py b/scripts/commands/me_buff_health_2.py index dd4c396c..fb9880d2 100644 --- a/scripts/commands/me_buff_health_2.py +++ b/scripts/commands/me_buff_health_2.py @@ -9,11 +9,11 @@ def run(core, actor, target, commandString): if target and target.getSlottedObject("ghost"): if group and target in group.getMemberList(): - core.buffService.addGroupBuff(target, 'me_buff_health_2', actor) + core.buffService.addGroupBuff(target, 'me_buff_health', actor) else: - core.buffService.addBuffToCreature(target, 'me_buff_health_2', actor) + core.buffService.addBuffToCreature(target, 'me_buff_health', actor) else: - core.buffService.addGroupBuff(actor, 'me_buff_health_2', actor) + core.buffService.addGroupBuff(actor, 'me_buff_health', actor) return \ No newline at end of file diff --git a/scripts/commands/me_buff_health_3.py b/scripts/commands/me_buff_health_3.py index 26ec110f..dd4c396c 100644 --- a/scripts/commands/me_buff_health_3.py +++ b/scripts/commands/me_buff_health_3.py @@ -9,11 +9,11 @@ def run(core, actor, target, commandString): if target and target.getSlottedObject("ghost"): if group and target in group.getMemberList(): - core.buffService.addGroupBuff(target, 'me_buff_health_3', actor) + core.buffService.addGroupBuff(target, 'me_buff_health_2', actor) else: - core.buffService.addBuffToCreature(target, 'me_buff_health_3', actor) + core.buffService.addBuffToCreature(target, 'me_buff_health_2', actor) else: - core.buffService.addGroupBuff(actor, 'me_buff_health_3', actor) + core.buffService.addGroupBuff(actor, 'me_buff_health_2', actor) return \ No newline at end of file diff --git a/scripts/commands/npcconversationselect.py b/scripts/commands/npcconversationselect.py new file mode 100644 index 00000000..01d6aa0d --- /dev/null +++ b/scripts/commands/npcconversationselect.py @@ -0,0 +1,10 @@ +import sys + +def setup(): + return + +def run(core, actor, target, commandString): + print int(commandString) + core.conversationService.handleConversationSelection(actor, int(commandString)) + return + \ No newline at end of file diff --git a/scripts/commands/npcconversationstop.py b/scripts/commands/npcconversationstop.py new file mode 100644 index 00000000..f7b6b21b --- /dev/null +++ b/scripts/commands/npcconversationstop.py @@ -0,0 +1,10 @@ +import sys + +def setup(): + return + +def run(core, actor, target, commandString): + if actor.getConversingNpc(): + core.conversationService.handleEndConversation(actor, actor.getConversingNpc()) + return + \ No newline at end of file diff --git a/scripts/commands/of_drillmaster_1.py b/scripts/commands/of_drillmaster_1.py index 3b715ac0..179b494a 100644 --- a/scripts/commands/of_drillmaster_1.py +++ b/scripts/commands/of_drillmaster_1.py @@ -4,8 +4,6 @@ def setup(core, actor, buff): return def run(core, actor, target, commandString): - if target is None: - target = actor - core.buffService.addGroupBuff(target, 'of_drillmaster_1', actor) + core.buffService.addGroupBuff(actor, 'of_drillmaster_1', actor) return \ No newline at end of file diff --git a/scripts/commands/of_medical_sup_1.py b/scripts/commands/of_medical_sup_1.py index b7186ab6..52ae6c13 100644 --- a/scripts/commands/of_medical_sup_1.py +++ b/scripts/commands/of_medical_sup_1.py @@ -39,6 +39,8 @@ def spawnCrate(core, actor, shuttle): for i in range(0, 8): tactical = core.objectService.createObject('object/tangible/loot/generic_usable/shared_stim_syringe_generic.iff', actor.getPlanet()) #FIXME: Use the correct template tactical.setCustomName('Tactical Serum A') + tactical.setStringAttribute('proc_name', '@ui_buff:of_tactical_drop_6') + tactical.setAttachment("tempUseCount", 1) crate.add(tactical) for i in range(0, 8): diff --git a/scripts/commands/removeBuff.py b/scripts/commands/removeBuff.py index 09eaccd6..cd63145f 100644 --- a/scripts/commands/removeBuff.py +++ b/scripts/commands/removeBuff.py @@ -9,6 +9,7 @@ def run(core, actor, target, commandString): if buffObj is None: return - - core.buffService.removeBuffFromCreature(actor, buffObj) + + if buffObj.isRemovableByPlayer() and buffObj.isDebuff() is False: + core.buffService.removeBuffFromCreature(actor, buffObj) return \ No newline at end of file diff --git a/scripts/commands/setgodmode.py b/scripts/commands/setgodmode.py index 35e55686..18c5f4f2 100644 --- a/scripts/commands/setgodmode.py +++ b/scripts/commands/setgodmode.py @@ -23,6 +23,8 @@ def run(core, actor, target, commandString): arg3 = commandArgs[3] if len(commandArgs) > 4: arg4 = commandArgs[4] + if len(commandArgs) > 5: + arg5 = commandArgs[5] if not command: return @@ -41,7 +43,14 @@ def run(core, actor, target, commandString): elif command == 'teleport' and arg2 and arg3 and arg4: position = Point3D(float(arg2), float(arg3), float(arg4)) core.simulationService.transferToPlanet(actor, core.terrainService.getPlanetByName(arg1), position, actor.getOrientation(), None) - + + elif command == 'teleportplayer' and arg1 and arg2 and arg3 and arg4 and arg5: + player = core.chatService.getObjectByFirstName(arg1) + if player: + position = Point3D(float(arg3), float(arg4), float(arg5)) + core.simulationService.transferToPlanet(player, core.terrainService.getPlanetByName(arg2), position, player.getOrientation(), None) + + elif command == 'credits' and arg1: actor.setCashCredits(actor.getCashCredits() + int(arg1)) actor.sendSystemMessage('The Galactic Empire has transferred ' + arg1 + ' credits to you for your service.', 0) @@ -73,6 +82,13 @@ def run(core, actor, target, commandString): elif command == 'id': actor.sendSystemMessage('Your id is: ' + str(actor.getObjectId()), 0) + elif command == 'cust' and arg1 and arg2 and arg3: + obj = core.objectService.getObject(long(arg1)) + obj.setCustomizationVariable(str(arg2), int(arg3)) + + elif command == 'buff' and arg1: + core.buffService.addBuffToCreature(actor, str(arg1), actor) + elif command == 'stealth': if (actor.isInStealth()): actor.setInStealth(False) @@ -82,4 +98,9 @@ def run(core, actor, target, commandString): actor.setInStealth(True) actor.setRadarVisible(False) actor.sendSystemMessage('You are now hidden from players. "Stealth Effect" is not implemented, however players still won\'t be able to see you. Type /setgodmode stealth again to be visible.', 0) + + elif command == 'holoEmote' and arg1: + playerObject.setHoloEmote('holoemote_' + arg1) + playerObject.setHoloEmoteUses(20) + actor.sendSystemMessage('Holo-Emote Generator set to ' + 'holoemote_' + arg1, 0) return diff --git a/scripts/commands/startdance.py b/scripts/commands/startdance.py index 13aba090..ce557827 100644 --- a/scripts/commands/startdance.py +++ b/scripts/commands/startdance.py @@ -46,7 +46,7 @@ def handleStartdance(core, owner, eventType, returnList): if not item: return - + #if eventType == 0: startDance(coreObject, actorObject, '', int(item.getObjectId())) return @@ -90,7 +90,7 @@ def startDance(core, actor, danceName, visual): if not actor.getPerformanceWatchee(): #this also notifies the client with a delta4 actor.setPerformanceWatchee(actor) - actor.addAudience(actor) + actor.addSpectator(actor) #this should send a CREO3 actor.setPosture(0x09); diff --git a/scripts/commands/stopdance.py b/scripts/commands/stopdance.py index e403a179..1427496b 100644 --- a/scripts/commands/stopdance.py +++ b/scripts/commands/stopdance.py @@ -11,10 +11,5 @@ def run(core, actor, target, commandString): actor.sendSystemMessage('@performance:dance_not_performing', 0) return - #since we need to stop performance for any posture change, - # all packets are triggered in setPosture. - # this may not be very consistent, but it prevents - # duplicate code. actor.stopPerformance() - return diff --git a/scripts/commands/stopwatching.py b/scripts/commands/stopwatching.py index 23a36c17..555ee4ab 100644 --- a/scripts/commands/stopwatching.py +++ b/scripts/commands/stopwatching.py @@ -10,7 +10,7 @@ def run(core, actor, target, commandString): if performer is None: return - performer.removeAudience(actor) + performer.removeSpectator(actor) actor.setPerformanceWatchee(None) if not actor.getPerformanceListenee(): actor.setMoodAnimation('') diff --git a/scripts/commands/watch.py b/scripts/commands/watch.py index 07ca268d..98627f98 100644 --- a/scripts/commands/watch.py +++ b/scripts/commands/watch.py @@ -9,11 +9,11 @@ def run(core, actor, target, commandString): if not target and commandString is not None: target = core.chatService.getObjectByFirstName(commandString) - if target is None: + if target is None or actor.getPerformanceWatchee(): return - if target.getPosition().getDistance2D(actor.getWorldPosition()) > float(20): + if target.getWorldPosition().getDistance2D(actor.getWorldPosition()) > float(20): actor.sendSystemMessage(target.getCustomName() + ' is too far away to watch.', 0) return diff --git a/scripts/conversation/respec.py b/scripts/conversation/respec.py new file mode 100644 index 00000000..f929002e --- /dev/null +++ b/scripts/conversation/respec.py @@ -0,0 +1,96 @@ +from resources.common import ConversationOption +from resources.common import OutOfBand +from resources.common import ProsePackage +from java.util import Vector +import sys + +def startConversation(core, actor, npc): + convSvc = core.conversationService + prose = ProsePackage('conversation/respecseller', 's_31') + outOfBand = OutOfBand() + outOfBand.addProsePackage(prose) + convSvc.sendConversationMessage(actor, npc, outOfBand) + prose2 = ProsePackage('conversation/respecseller', 's_32') + outOfBand2 = OutOfBand() + outOfBand2.addProsePackage(prose2) + prose3 = ProsePackage('conversation/respecseller', 's_33') + outOfBand3 = OutOfBand() + outOfBand3.addProsePackage(prose3) + option1 = ConversationOption(outOfBand2, 0) + option2 = ConversationOption(outOfBand3, 1) + options = Vector() + options.add(option1) + options.add(option2) + convSvc.sendConversationOptions(actor, npc, options, handleFirstScreen) + return + +def handleFirstScreen(core, actor, npc, selection): + + if selection == 0: + # respec + # TODO: check for prices + convSvc = core.conversationService + prose = ProsePackage('conversation/respecseller', 's_58') + outOfBand = OutOfBand() + outOfBand.addProsePackage(prose) + convSvc.sendConversationMessage(actor, npc, outOfBand) + prose2 = ProsePackage('conversation/respecseller', 's_60') + outOfBand2 = OutOfBand() + outOfBand2.addProsePackage(prose2) + prose3 = ProsePackage('conversation/respecseller', 's_64') + outOfBand3 = OutOfBand() + outOfBand3.addProsePackage(prose3) + option1 = ConversationOption(outOfBand2, 0) + option2 = ConversationOption(outOfBand3, 1) + options = Vector() + options.add(option1) + options.add(option2) + convSvc.sendConversationOptions(actor, npc, options, handleRespecScreen) + return + if selection == 1: + # expertise reset + # TODO: check for prices + convSvc = core.conversationService + prose = ProsePackage('conversation/respecseller', 's_35') + outOfBand = OutOfBand() + outOfBand.addProsePackage(prose) + convSvc.sendConversationMessage(actor, npc, outOfBand) + prose2 = ProsePackage('conversation/respecseller', 's_71') + outOfBand2 = OutOfBand() + outOfBand2.addProsePackage(prose2) + prose3 = ProsePackage('conversation/respecseller', 's_72') + outOfBand3 = OutOfBand() + outOfBand3.addProsePackage(prose3) + option1 = ConversationOption(outOfBand2, 0) + option2 = ConversationOption(outOfBand3, 1) + options = Vector() + options.add(option1) + options.add(option2) + convSvc.sendConversationOptions(actor, npc, options, handleResetScreen) + + + return + +def handleRespecScreen(core, actor, npc, selection): + + if selection == 0: + core.skillService.sendRespecWindow(actor) + + core.conversationService.handleEndConversation(actor, npc) + + return + + +def handleResetScreen(core, actor, npc, selection): + + if selection == 0: + core.skillService.resetExpertise(actor) + + core.conversationService.handleEndConversation(actor, npc) + + return + +def endConversation(core, actor, npc): + core.conversationService.sendStopConversation(actor, npc, 'conversation/respecseller', 's_38') + return + \ No newline at end of file diff --git a/scripts/demo.py b/scripts/demo.py index 92b340a8..1b5dbf3d 100644 --- a/scripts/demo.py +++ b/scripts/demo.py @@ -2,23 +2,23 @@ import sys def CreateStartingCharacter(core, object): -# testObject = core.objectService.createObject('object/weapon/ranged/rifle/shared_rifle_t21.iff', object.getPlanet()) -# testObject.setCustomName('This is a Jython Rifle') -# testObject.setStringAttribute('crafter', 'Light') -# testObject.setDamageType('@obj_attr_n:armor_eff_energy') -# testObject.setElementalType('@obj_attr_n:elemental_cold') -# testObject.setStringAttribute('cat_wpn_damage.damage', '0-0') -# testObject.setMinDamage(425) -# testObject.setMaxDamage(1150) -# testObject.setElementalDamage(50) -# testObject.setIntAttribute('cat_wpn_damage.weapon_dps', testObject.getDamagePerSecond()) -# testObject.setIntAttribute('cat_skill_mod_bonus.@stat_n:precision_modified', 35) -# object.addSkillMod('kinetic' , 0) -# object.addSkillMod('energy' , 0) -# object.addSkillMod('heat' , 0) -# object.addSkillMod('cold' , 0) -# object.addSkillMod('acid' , 0) -# object.addSkillMod('electricity' , 0) + #testObject = core.objectService.createObject('object/weapon/ranged/rifle/shared_rifle_t21.iff', object.getPlanet()) + #testObject.setCustomName('This is a Jython Rifle') + #testObject.setStringAttribute('crafter', 'Light') + #testObject.setDamageType('@obj_attr_n:armor_eff_energy') + #testObject.setElementalType('@obj_attr_n:elemental_cold') + #testObject.setStringAttribute('cat_wpn_damage.damage', '0-0') + #testObject.setMinDamage(425) + #testObject.setMaxDamage(1150) + #testObject.setElementalDamage(50) + #testObject.setIntAttribute('cat_wpn_damage.weapon_dps', testObject.getDamagePerSecond()) + #testObject.setIntAttribute('cat_skill_mod_bonus.@stat_n:precision_modified', 35) + #object.addSkillMod('kinetic' , 0) + #object.addSkillMod('energy' , 0) + #object.addSkillMod('heat' , 0) + #object.addSkillMod('cold' , 0) + #object.addSkillMod('acid' , 0) + #object.addSkillMod('electricity' , 0) #object.addSkillMod('combat_strikethrough_value' , 50) #object.addSkillMod('display_only_dodge' , 2000) #object.addSkillMod('display_only_parry' , 1000) @@ -29,40 +29,40 @@ def CreateStartingCharacter(core, object): #object.addSkillMod('display_only_block' , 2000) #object.addSkillMod('combat_block_value' , 0) -# inventory = object.getSlottedObject('inventory') -# if not inventory: -# return -# inventory.add(testObject) +# #inventory = object.getSlottedObject('inventory') +# #if not inventory: +# # return +# #inventory.add(testObject) -# testClothing = core.objectService.createObject('object/tangible/wearables/cape/shared_cape_rebel_01.iff', object.getPlanet()) -# testClothing.setCustomName('Test Cape') -# testCloak = core.objectService.createObject('object/tangible/wearables/robe/shared_robe_jedi_dark_s05.iff', object.getPlanet()) -# testCloak.setCustomName('Test Cloak') - -# inventory.add(testClothing) -# inventory.add(testCloak) -# profession = object.getSlottedObject('ghost').getProfession() -# if profession == 'commando_1a': -# object.addSkillMod('expertise_devastation_bonus' , 20) -# testObject2 = core.objectService.createObject('object/weapon/ranged/heavy/shared_heavy_rocket_launcher.iff', object.getPlanet()) -# testObject2.setCustomName('Test Heavy Weapon') -# testObject2.setStringAttribute('crafter', 'Light') -# testObject2.setDamageType('@obj_attr_n:armor_eff_kinetic') -# testObject2.setElementalType('@obj_attr_n:elemental_heat') -# testObject2.setStringAttribute('cat_wpn_damage.damage', '0-0') -# testObject2.setMinDamage(550) -# testObject2.setMaxDamage(1315) -# testObject2.setElementalDamage(216) -# testObject2.setIntAttribute('cat_wpn_damage.weapon_dps', testObject2.getDamagePerSecond()) -# inventory.add(testObject2) +# #testClothing = core.objectService.createObject('object/tangible/wearables/cape/shared_cape_rebel_01.iff', object.getPlanet()) +# #testClothing.setCustomName('Test Cape') +# #testCloak = core.objectService.createObject('object/tangible/wearables/robe/shared_robe_jedi_dark_s05.iff', object.getPlanet()) +# #testCloak.setCustomName('Test Cloak') +# #inventory.add(testClothing) +# #inventory.add(testCloak) +# #profession = object.getSlottedObject('ghost').getProfession() +# #if profession == 'commando_1a': +# # object.addSkillMod('expertise_devastation_bonus' , 20) +# # testObject2 = core.objectService.createObject('object/weapon/ranged/heavy/shared_heavy_rocket_launcher.iff', object.getPlanet()) +# # testObject2.setCustomName('Test Heavy Weapon') +# # testObject2.setStringAttribute('crafter', 'Light') +# # testObject2.setDamageType('@obj_attr_n:armor_eff_kinetic') +# # testObject2.setElementalType('@obj_attr_n:elemental_heat') +# # testObject2.setStringAttribute('cat_wpn_damage.damage', '0-0') +# # testObject2.setMinDamage(550) +# # testObject2.setMaxDamage(1315) +# # testObject2.setElementalDamage(216) +# # testObject2.setIntAttribute('cat_wpn_damage.weapon_dps', testObject2.getDamagePerSecond()) +# # inventory.add(testObject2) +# # addProfessionAbilities(core, object, profession) # heroism1 = core.objectService.createObject('object/tangible/wearables/necklace/shared_necklace_s10.iff', object.getPlanet()) -# heroism1.setStfFilename('static_item_n') -# heroism1.setStfName('item_necklace_set_hero_01_01') -# heroism1.setDetailFilename('static_item_d') -# heroism1.setDetailName('item_necklace_set_hero_01_01') + # heroism1.setStfFilename('static_item_n') + # heroism1.setStfName('item_necklace_set_hero_01_01') + # heroism1.setDetailFilename('static_item_d') + # heroism1.setDetailName('item_necklace_set_hero_01_01') # heroism1.setStringAttribute('@set_bonus:piece_bonus_count_2', '@set_bonus:set_bonus_hero_1') # heroism1.setStringAttribute('@set_bonus:piece_bonus_count_3', '@set_bonus:set_bonus_hero_2') # heroism1.setStringAttribute('@set_bonus:piece_bonus_count_5', '@set_bonus:set_bonus_hero_3') @@ -71,22 +71,22 @@ def CreateStartingCharacter(core, object): # heroism1.setIntAttribute('cat_stat_mod_bonus.food_strength_modified' , 30) -# inventory = object.getSlottedObject('inventory') -# if not inventory: -# return -# inventory.add(heroism1) + # inventory = object.getSlottedObject('inventory') + # if not inventory: + # return + # inventory.add(heroism1) -# heroism2 = core.objectService.createObject('object/tangible/wearables/bracelet/shared_bracelet_s03_r.iff', object.getPlanet()) -# heroism2.setStfFilename('static_item_n') -# heroism2.setStfName('item_bracelet_r_set_hero_01_01') -# heroism2.setDetailFilename('static_item_d') -# heroism2.setDetailName('item_bracelet_r_set_hero_01_01') -# heroism2.setStringAttribute('@set_bonus:piece_bonus_count_2', '@set_bonus:set_bonus_hero_1') -# heroism2.setStringAttribute('@set_bonus:piece_bonus_count_3', '@set_bonus:set_bonus_hero_2') -# heroism2.setStringAttribute('@set_bonus:piece_bonus_count_5', '@set_bonus:set_bonus_hero_3') -# heroism2.setIntAttribute('cat_stat_mod_bonus.food_luck_modified' , 30) -# heroism2.setIntAttribute('cat_stat_mod_bonus.food_precision_modified' , 30) -# heroism2.setIntAttribute('cat_stat_mod_bonus.food_strength_modified' , 30) + # heroism2 = core.objectService.createObject('object/tangible/wearables/bracelet/shared_bracelet_s03_r.iff', object.getPlanet()) + # heroism2.setStfFilename('static_item_n') + # heroism2.setStfName('item_bracelet_r_set_hero_01_01') + # heroism2.setDetailFilename('static_item_d') + # heroism2.setDetailName('item_bracelet_r_set_hero_01_01') + # heroism2.setStringAttribute('@set_bonus:piece_bonus_count_2', '@set_bonus:set_bonus_hero_1') + # heroism2.setStringAttribute('@set_bonus:piece_bonus_count_3', '@set_bonus:set_bonus_hero_2') + # heroism2.setStringAttribute('@set_bonus:piece_bonus_count_5', '@set_bonus:set_bonus_hero_3') + # heroism2.setIntAttribute('cat_stat_mod_bonus.food_luck_modified' , 30) + # heroism2.setIntAttribute('cat_stat_mod_bonus.food_precision_modified' , 30) + # heroism2.setIntAttribute('cat_stat_mod_bonus.food_strength_modified' , 30) # inventory = object.getSlottedObject('inventory') @@ -102,27 +102,27 @@ def CreateStartingCharacter(core, object): # heroism3.setStringAttribute('@set_bonus:piece_bonus_count_2', '@set_bonus:set_bonus_hero_1') # heroism3.setStringAttribute('@set_bonus:piece_bonus_count_3', '@set_bonus:set_bonus_hero_2') # heroism3.setStringAttribute('@set_bonus:piece_bonus_count_5', '@set_bonus:set_bonus_hero_3') -# heroism3.setIntAttribute('cat_stat_mod_bonus.food_luck_modified' , 30) -# heroism3.setIntAttribute('cat_stat_mod_bonus.food_precision_modified' , 30) -# heroism3.setIntAttribute('cat_stat_mod_bonus.food_strength_modified' , 30) + # heroism3.setIntAttribute('cat_stat_mod_bonus.food_luck_modified' , 30) + # heroism3.setIntAttribute('cat_stat_mod_bonus.food_precision_modified' , 30) + # heroism3.setIntAttribute('cat_stat_mod_bonus.food_strength_modified' , 30) -# inventory = object.getSlottedObject('inventory') -# if not inventory: -# return -# inventory.add(heroism3) + # inventory = object.getSlottedObject('inventory') + # if not inventory: + # return + # inventory.add(heroism3) -# heroism4 = core.objectService.createObject('object/tangible/wearables/ring/shared_ring_s04.iff', object.getPlanet()) -# heroism4.setStfFilename('static_item_n') -# heroism4.setStfName('item_ring_set_hero_01_01') -# heroism4.setDetailFilename('static_item_d') -# heroism4.setDetailName('item_ring_set_hero_01_01') -# heroism4.setStringAttribute('@set_bonus:piece_bonus_count_2', '@set_bonus:set_bonus_hero_1') -# heroism4.setStringAttribute('@set_bonus:piece_bonus_count_3', '@set_bonus:set_bonus_hero_2') -# heroism4.setStringAttribute('@set_bonus:piece_bonus_count_5', '@set_bonus:set_bonus_hero_3') -# heroism4.setIntAttribute('cat_stat_mod_bonus.food_luck_modified' , 30) -# heroism4.setIntAttribute('cat_stat_mod_bonus.food_precision_modified' , 30) -# heroism4.setIntAttribute('cat_stat_mod_bonus.food_strength_modified' , 30) + # heroism4 = core.objectService.createObject('object/tangible/wearables/ring/shared_ring_s04.iff', object.getPlanet()) + # heroism4.setStfFilename('static_item_n') + # heroism4.setStfName('item_ring_set_hero_01_01') + # heroism4.setDetailFilename('static_item_d') + # heroism4.setDetailName('item_ring_set_hero_01_01') + # heroism4.setStringAttribute('@set_bonus:piece_bonus_count_2', '@set_bonus:set_bonus_hero_1') + # heroism4.setStringAttribute('@set_bonus:piece_bonus_count_3', '@set_bonus:set_bonus_hero_2') + # heroism4.setStringAttribute('@set_bonus:piece_bonus_count_5', '@set_bonus:set_bonus_hero_3') + # heroism4.setIntAttribute('cat_stat_mod_bonus.food_luck_modified' , 30) + # heroism4.setIntAttribute('cat_stat_mod_bonus.food_precision_modified' , 30) + # heroism4.setIntAttribute('cat_stat_mod_bonus.food_strength_modified' , 30) # inventory = object.getSlottedObject('inventory') @@ -130,39 +130,39 @@ def CreateStartingCharacter(core, object): # return # inventory.add(heroism4) -# heroism5 = core.objectService.createObject('object/tangible/wearables/ring/shared_ring_s02.iff', object.getPlanet()) -# heroism5.setStfFilename('static_item_n') -# heroism5.setStfName('item_ring_a_set_hero') -# heroism5.setDetailFilename('static_item_d') -# heroism5.setDetailName('item_ring_a_set_hero') -# heroism5.setStringAttribute('@set_bonus:piece_bonus_count_2', '@set_bonus:set_bonus_hero_1') -# heroism5.setStringAttribute('@set_bonus:piece_bonus_count_3', '@set_bonus:set_bonus_hero_2') -# heroism5.setStringAttribute('@set_bonus:piece_bonus_count_5', '@set_bonus:set_bonus_hero_3') -# heroism5.setIntAttribute('cat_stat_mod_bonus.food_luck_modified' , 30) -# heroism5.setIntAttribute('cat_stat_mod_bonus.food_precision_modified' , 30) -# heroism5.setIntAttribute('cat_stat_mod_bonus.food_strength_modified' , 30) + # heroism5 = core.objectService.createObject('object/tangible/wearables/ring/shared_ring_s02.iff', object.getPlanet()) + # heroism5.setStfFilename('static_item_n') + # heroism5.setStfName('item_ring_a_set_hero') + # heroism5.setDetailFilename('static_item_d') + # heroism5.setDetailName('item_ring_a_set_hero') + # heroism5.setStringAttribute('@set_bonus:piece_bonus_count_2', '@set_bonus:set_bonus_hero_1') + # heroism5.setStringAttribute('@set_bonus:piece_bonus_count_3', '@set_bonus:set_bonus_hero_2') + # heroism5.setStringAttribute('@set_bonus:piece_bonus_count_5', '@set_bonus:set_bonus_hero_3') + # heroism5.setIntAttribute('cat_stat_mod_bonus.food_luck_modified' , 30) + # heroism5.setIntAttribute('cat_stat_mod_bonus.food_precision_modified' , 30) + # heroism5.setIntAttribute('cat_stat_mod_bonus.food_strength_modified' , 30) -# inventory = object.getSlottedObject('inventory') -# if not inventory: -# return -# inventory.add(heroism5) + # inventory = object.getSlottedObject('inventory') + # if not inventory: + # return + # inventory.add(heroism5) return def addProfessionAbilities(core, object, profession): # if profession == 'force_sensitive_1a': # testObject = core.objectService.createObject('object/weapon/melee/2h_sword/crafted_saber/shared_sword_lightsaber_two_handed_gcw_s01_gen5.iff', object.getPlanet()) -# testObject.setCustomName('Lightsaber') +# testObject.setCustomName('Lightsaber') # testObject.setStringAttribute('crafter', 'Light') # testObject.setDamageType('@obj_attr_n:armor_eff_energy') -# testObject.setElementalType('@obj_attr_n:elemental_cold') +# testObject.setElementalType('@obj_attr_n:elemental_cold') # testObject.setStringAttribute('cat_wpn_damage.damage', '0-0') # testObject.setMinDamage(600) # testObject.setMaxDamage(1190) -# testObject.setElementalDamage(72) +# testObject.setElementalDamage(72) # testObject.setIntAttribute('cat_wpn_damage.weapon_dps', testObject.getDamagePerSecond()) -# inventory = object.getSlottedObject('inventory') +# inventory = object.getSlottedObject('inventory') # inventory.add(testObject) ##Case Sensitive @@ -203,16 +203,16 @@ def addProfessionAbilities(core, object, profession): # object.addAbility('co_hw_dot') # object.addAbility('co_ae_hw_dot') #elif profession == 'bounty_hunter_1a': - # object.addAbility('bh_shields_1') - # object.addAbility('bh_dm_8') - # object.addAbility('bh_sh_3') - # object.addAbility('bh_armor_sprint_1') - # object.addAbility('bh_prescience') - # object.addAbility('bh_dm_crit_8') - # object.addAbility('crippleShot') - # object.addAbility('bh_fumble_6') - # object.addAbility('bh_intimidate_6') - # object.addAbility('bh_flawless_strike') + #object.addAbility('bh_shields_1') + #object.addAbility('bh_dm_8') + #object.addAbility('bh_sh_3') + #object.addAbility('bh_armor_sprint_1') + #object.addAbility('bh_prescience') + #object.addAbility('bh_dm_crit_8') + #object.addAbility('crippleShot') + #object.addAbility('bh_fumble_6') + #object.addAbility('bh_intimidate_6') + #object.addAbility('bh_flawless_strike') # direfate1 = core.objectService.createObject('object/tangible/wearables/necklace/shared_necklace_s03.iff', object.getPlanet()) # direfate1.setStfFilename('static_item_n') @@ -404,71 +404,71 @@ def addProfessionAbilities(core, object, profession): # enforcer2.setStringAttribute('@set_bonus:piece_bonus_count_2', '@set_bonus:set_bonus_bh_dps_1') # enforcer2.setStringAttribute('@set_bonus:piece_bonus_count_3', '@set_bonus:set_bonus_bh_dps_2') # enforcer2.setStringAttribute('@set_bonus:piece_bonus_count_5', '@set_bonus:set_bonus_bh_dps_3') - # enforcer2.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_action_line_dm' , 1) - # enforcer2.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_action_line_dm_crit' , 1) - # enforcer2.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_buff_duration_line_bh_return_fire' , 1) - # enforcer2.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_cooldown_line_dm' , 1) - - # inventory = object.getSlottedObject('inventory') - # if not inventory: - # return - # inventory.add(enforcer2) - - # enforcer3 = core.objectService.createObject('object/tangible/wearables/bracelet/shared_bracelet_s02_l.iff', object.getPlanet()) - # enforcer3.setStfFilename('static_item_n') - # enforcer3.setStfName('item_bracelet_l_set_bh_dps_01_01') - # enforcer3.setDetailFilename('static_item_d') - # enforcer3.setDetailName('item_bracelet_l_set_bh_dps_01_01') - # enforcer3.setStringAttribute('@set_bonus:piece_bonus_count_2', '@set_bonus:set_bonus_bh_dps_1') - # enforcer3.setStringAttribute('@set_bonus:piece_bonus_count_3', '@set_bonus:set_bonus_bh_dps_2') - # enforcer3.setStringAttribute('@set_bonus:piece_bonus_count_5', '@set_bonus:set_bonus_bh_dps_3') - # enforcer3.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_action_line_dm' , 1) - # enforcer3.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_action_line_dm_crit' , 1) - # enforcer3.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_buff_duration_line_bh_return_fire' , 1) - # enforcer3.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_cooldown_line_dm' , 1) - - # inventory = object.getSlottedObject('inventory') - # if not inventory: - # return - # inventory.add(enforcer3) - - # enforcer4 = core.objectService.createObject('object/tangible/wearables/ring/shared_ring_s01.iff', object.getPlanet()) - # enforcer4.setStfFilename('static_item_n') - # enforcer4.setStfName('item_ring_set_bh_dps_01_01') - # enforcer4.setDetailFilename('static_item_d') - # enforcer4.setDetailName('item_ring_set_bh_dps_01_01') - # enforcer4.setStringAttribute('@set_bonus:piece_bonus_count_2', '@set_bonus:set_bonus_bh_dps_1') - # enforcer4.setStringAttribute('@set_bonus:piece_bonus_count_3', '@set_bonus:set_bonus_bh_dps_2') - # enforcer4.setStringAttribute('@set_bonus:piece_bonus_count_5', '@set_bonus:set_bonus_bh_dps_3') - # enforcer4.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_action_line_dm' , 1) - # enforcer4.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_action_line_dm_crit' , 1) - # enforcer4.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_buff_duration_line_bh_return_fire' , 1) - # enforcer4.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_cooldown_line_dm' , 1) - - # inventory = object.getSlottedObject('inventory') - # if not inventory: - # return - # inventory.add(enforcer4) - - # enforcer5 = core.objectService.createObject('object/tangible/wearables/ring/shared_ring_s03.iff', object.getPlanet()) - # enforcer5.setStfFilename('static_item_n') - # enforcer5.setStfName('item_ring_a_set_bh_dps') - # enforcer5.setDetailFilename('static_item_d') - # enforcer5.setDetailName('item_ring_a_set_bh_dps') - # enforcer5.setStringAttribute('@set_bonus:piece_bonus_count_2', '@set_bonus:set_bonus_bh_dps_1') - # enforcer5.setStringAttribute('@set_bonus:piece_bonus_count_3', '@set_bonus:set_bonus_bh_dps_2') - # enforcer5.setStringAttribute('@set_bonus:piece_bonus_count_5', '@set_bonus:set_bonus_bh_dps_3') - # enforcer5.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_action_line_dm' , 1) - # enforcer5.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_action_line_dm_crit' , 1) - # enforcer5.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_buff_duration_line_bh_return_fire' , 1) - # enforcer5.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_cooldown_line_dm' , 1) - - # inventory = object.getSlottedObject('inventory') - # if not inventory: - # return - # inventory.add(enforcer5) - # return - #return + # enforcer2.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_action_line_dm' , 1) + # enforcer2.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_action_line_dm_crit' , 1) + # enforcer2.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_buff_duration_line_bh_return_fire' , 1) + # enforcer2.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_cooldown_line_dm' , 1) + + # inventory = object.getSlottedObject('inventory') + # if not inventory: + # return + # inventory.add(enforcer2) + + # enforcer3 = core.objectService.createObject('object/tangible/wearables/bracelet/shared_bracelet_s02_l.iff', object.getPlanet()) + # enforcer3.setStfFilename('static_item_n') + # enforcer3.setStfName('item_bracelet_l_set_bh_dps_01_01') + #enforcer3.setDetailFilename('static_item_d') + # enforcer3.setDetailName('item_bracelet_l_set_bh_dps_01_01') + # enforcer3.setStringAttribute('@set_bonus:piece_bonus_count_2', '@set_bonus:set_bonus_bh_dps_1') + # enforcer3.setStringAttribute('@set_bonus:piece_bonus_count_3', '@set_bonus:set_bonus_bh_dps_2') + # enforcer3.setStringAttribute('@set_bonus:piece_bonus_count_5', '@set_bonus:set_bonus_bh_dps_3') + #enforcer3.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_action_line_dm' , 1) + # enforcer3.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_action_line_dm_crit' , 1) + # enforcer3.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_buff_duration_line_bh_return_fire' , 1) + # enforcer3.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_cooldown_line_dm' , 1) + + #inventory = object.getSlottedObject('inventory') + #if not inventory: + # return + #inventory.add(enforcer3) + + #enforcer4 = core.objectService.createObject('object/tangible/wearables/ring/shared_ring_s01.iff', object.getPlanet()) + #enforcer4.setStfFilename('static_item_n') + #enforcer4.setStfName('item_ring_set_bh_dps_01_01') + #enforcer4.setDetailFilename('static_item_d') + #enforcer4.setDetailName('item_ring_set_bh_dps_01_01') + #enforcer4.setStringAttribute('@set_bonus:piece_bonus_count_2', '@set_bonus:set_bonus_bh_dps_1') + #enforcer4.setStringAttribute('@set_bonus:piece_bonus_count_3', '@set_bonus:set_bonus_bh_dps_2') + #enforcer4.setStringAttribute('@set_bonus:piece_bonus_count_5', '@set_bonus:set_bonus_bh_dps_3') + #enforcer4.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_action_line_dm' , 1) + #enforcer4.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_action_line_dm_crit' , 1) + #enforcer4.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_buff_duration_line_bh_return_fire' , 1) + #enforcer4.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_cooldown_line_dm' , 1) + + #inventory = object.getSlottedObject('inventory') + #if not inventory: + # return + #inventory.add(enforcer4) + + #enforcer5 = core.objectService.createObject('object/tangible/wearables/ring/shared_ring_s03.iff', object.getPlanet()) + #enforcer5.setStfFilename('static_item_n') + #enforcer5.setStfName('item_ring_a_set_bh_dps') + #enforcer5.setDetailFilename('static_item_d') + #enforcer5.setDetailName('item_ring_a_set_bh_dps') + #enforcer5.setStringAttribute('@set_bonus:piece_bonus_count_2', '@set_bonus:set_bonus_bh_dps_1') + #enforcer5.setStringAttribute('@set_bonus:piece_bonus_count_3', '@set_bonus:set_bonus_bh_dps_2') + #enforcer5.setStringAttribute('@set_bonus:piece_bonus_count_5', '@set_bonus:set_bonus_bh_dps_3') + #enforcer5.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_action_line_dm' , 1) + #enforcer5.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_action_line_dm_crit' , 1) + #enforcer5.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_buff_duration_line_bh_return_fire' , 1) + #enforcer5.setIntAttribute('cat_skill_mod_bonus.@stat_n:expertise_cooldown_line_dm' , 1) + + #inventory = object.getSlottedObject('inventory') + #if not inventory: + # return + #inventory.add(enforcer5) + #return + #return - return \ No newline at end of file + return diff --git a/scripts/equipment/bonus_sets/set_bonus_hero.py b/scripts/equipment/bonus_sets/set_bonus_hero.py new file mode 100644 index 00000000..95fbabe4 --- /dev/null +++ b/scripts/equipment/bonus_sets/set_bonus_hero.py @@ -0,0 +1,28 @@ +import sys +from services.equipment import BonusSetTemplate +from java.util import Vector + +def addBonusSet(core): + bonusSet = BonusSetTemplate("set_bonus_hero") + + bonusSet.addRequiredItem("item_band_set_hero_01_01") + bonusSet.addRequiredItem("item_ring_set_hero_01_01") + bonusSet.addRequiredItem("item_necklace_set_hero_01_01") + bonusSet.addRequiredItem("item_bracelet_r_set_hero_01_01") + bonusSet.addRequiredItem("item_bracelet_l_set_hero_01_01") + + core.equipmentService.addBonusSetTemplate(bonusSet) + +def handleChange(core, creature, set): + wornItems = set.getWornTemplateCount(creature) + + if wornItems == 3: + core.buffService.addBuffToCreature(creature, "set_bonus_hero_1", creature) + elif wornItems == 4: + core.buffService.addBuffToCreature(creature, "set_bonus_hero_2", creature) + elif wornItems == 5: + core.buffService.addBuffToCreature(creature, "set_bonus_hero_3", creature) + else: + core.buffService.removeBuffFromCreatureByName(creature, "set_bonus_hero_1") + core.buffService.removeBuffFromCreatureByName(creature, "set_bonus_hero_2") + core.buffService.removeBuffFromCreatureByName(creature, "set_bonus_hero_3") \ No newline at end of file diff --git a/scripts/equipment/bonus_sets/set_bonus_jedi_robe.py b/scripts/equipment/bonus_sets/set_bonus_jedi_robe.py new file mode 100644 index 00000000..fd45204d --- /dev/null +++ b/scripts/equipment/bonus_sets/set_bonus_jedi_robe.py @@ -0,0 +1,39 @@ +import sys +from services.equipment import BonusSetTemplate +from java.util import Vector + +def addBonusSet(core): + bonusSet = BonusSetTemplate("set_bonus_jedi_robe") + + # Waistpack + bonusSet.addRequiredItem("object/tangible/wearables/backpack/shared_fannypack_s01.iff") + + # Jedi Robes - Light + bonusSet.addRequiredItem("object/tangible/wearables/robe/shared_robe_jedi_light_s01.iff") + bonusSet.addRequiredItem("object/tangible/wearables/robe/shared_robe_jedi_light_s02.iff") + bonusSet.addRequiredItem("object/tangible/wearables/robe/shared_robe_jedi_light_s03.iff") + bonusSet.addRequiredItem("object/tangible/wearables/robe/shared_robe_jedi_light_s04.iff") + bonusSet.addRequiredItem("object/tangible/wearables/robe/shared_robe_jedi_light_s05.iff") + + # Jedi Robes - Dark + bonusSet.addRequiredItem("object/tangible/wearables/robe/shared_robe_jedi_dark_s01.iff") + bonusSet.addRequiredItem("object/tangible/wearables/robe/shared_robe_jedi_dark_s02.iff") + bonusSet.addRequiredItem("object/tangible/wearables/robe/shared_robe_jedi_dark_s03.iff") + bonusSet.addRequiredItem("object/tangible/wearables/robe/shared_robe_jedi_dark_s04.iff") + bonusSet.addRequiredItem("object/tangible/wearables/robe/shared_robe_jedi_dark_s05.iff") + + # Jedi Cloaks + bonusSet.addRequiredItem("object/tangible/wearables/robe/shared_robe_s32.iff") + bonusSet.addRequiredItem("object/tangible/wearables/robe/shared_robe_s32_h1.iff") + bonusSet.addRequiredItem("object/tangible/wearables/robe/shared_robe_s33.iff") + bonusSet.addRequiredItem("object/tangible/wearables/robe/shared_robe_s33_h1.iff") + + core.equipmentService.addBonusSetTemplate(bonusSet) + +def handleChange(core, creature, set): + wornItems = set.getWornTemplateCount(creature) + + if wornItems == 2: + core.buffService.addBuffToCreature(creature, "set_bonus_jedi_robe_1", creature) + else: + core.buffService.removeBuffFromCreatureByName(creature, "set_bonus_jedi_robe_1") \ No newline at end of file diff --git a/scripts/equipment/slot_protection.py b/scripts/equipment/slot_protection.py index 3e16a86c..e6de1f33 100644 --- a/scripts/equipment/slot_protection.py +++ b/scripts/equipment/slot_protection.py @@ -1,7 +1,7 @@ import sys def chest2(): - return "35.71" + return "35.70" def pants1(): return "21.43" diff --git a/scripts/expertise/expertise_bh_absorbtion_1.py b/scripts/expertise/expertise_bh_absorbtion_1.py index 80b8479e..81963132 100644 --- a/scripts/expertise/expertise_bh_absorbtion_1.py +++ b/scripts/expertise/expertise_bh_absorbtion_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_absorbtion_1') - - actor.addSkillMod('expertise_innate_protection_all', 125) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_absorbtion_1') - - actor.removeSkillMod('expertise_innate_protection_all', 125) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_absorption_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_absorption_1") return diff --git a/scripts/expertise/expertise_bh_absorbtion_2.py b/scripts/expertise/expertise_bh_absorbtion_2.py index 96a6ff72..732e9847 100644 --- a/scripts/expertise/expertise_bh_absorbtion_2.py +++ b/scripts/expertise/expertise_bh_absorbtion_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_absorbtion_2') - - actor.addSkillMod('expertise_innate_protection_all', 125) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_absorbtion_2') - - actor.removeSkillMod('expertise_innate_protection_all', 125) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_absorption_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_absorption_2") return diff --git a/scripts/expertise/expertise_bh_absorbtion_3.py b/scripts/expertise/expertise_bh_absorbtion_3.py index e46daa07..b8d44ab2 100644 --- a/scripts/expertise/expertise_bh_absorbtion_3.py +++ b/scripts/expertise/expertise_bh_absorbtion_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_absorbtion_3') - - actor.addSkillMod('expertise_innate_protection_all', 125) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_absorbtion_3') - - actor.removeSkillMod('expertise_innate_protection_all', 125) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_absorption_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_absorption_3") return diff --git a/scripts/expertise/expertise_bh_absorbtion_4.py b/scripts/expertise/expertise_bh_absorbtion_4.py index f62d4493..3210a0b0 100644 --- a/scripts/expertise/expertise_bh_absorbtion_4.py +++ b/scripts/expertise/expertise_bh_absorbtion_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_absorbtion_4') - - actor.addSkillMod('expertise_innate_protection_all', 125) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_absorbtion_4') - - actor.removeSkillMod('expertise_innate_protection_all', 125) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_absorption_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_absorption_4") return diff --git a/scripts/expertise/expertise_bh_agility_1.py b/scripts/expertise/expertise_bh_agility_1.py index aab87823..007b7232 100644 --- a/scripts/expertise/expertise_bh_agility_1.py +++ b/scripts/expertise/expertise_bh_agility_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_agility_1') - - actor.addSkillMod('agility_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_agility_1') - - actor.removeSkillMod('agility_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_agility_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_agility_1") return diff --git a/scripts/expertise/expertise_bh_agility_2.py b/scripts/expertise/expertise_bh_agility_2.py index 2724b112..2d896352 100644 --- a/scripts/expertise/expertise_bh_agility_2.py +++ b/scripts/expertise/expertise_bh_agility_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_agility_2') - - actor.addSkillMod('agility_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_agility_2') - - actor.removeSkillMod('agility_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_agility_1") return def removeAbilities(core, actor, player): - - - return + actor.removeAbility("expertise_bh_agility_1") + return \ No newline at end of file diff --git a/scripts/expertise/expertise_bh_agility_3.py b/scripts/expertise/expertise_bh_agility_3.py index d869fbc4..d55eaa3a 100644 --- a/scripts/expertise/expertise_bh_agility_3.py +++ b/scripts/expertise/expertise_bh_agility_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_agility_3') - - actor.addSkillMod('agility_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_agility_3') - - actor.removeSkillMod('agility_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_agility_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_agility_3") return diff --git a/scripts/expertise/expertise_bh_agility_4.py b/scripts/expertise/expertise_bh_agility_4.py index 6152ee4b..84d67d3f 100644 --- a/scripts/expertise/expertise_bh_agility_4.py +++ b/scripts/expertise/expertise_bh_agility_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_agility_4') - - actor.addSkillMod('agility_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_agility_4') - - actor.removeSkillMod('agility_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_agility_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_agility_4") return diff --git a/scripts/expertise/expertise_bh_amb_act_1.py b/scripts/expertise/expertise_bh_amb_act_1.py index 7a0c4ee0..55a6b1d7 100644 --- a/scripts/expertise/expertise_bh_amb_act_1.py +++ b/scripts/expertise/expertise_bh_amb_act_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_amb_act_1') - - actor.addSkillMod('expertise_action_line_dm_crit', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_amb_act_1') - - actor.removeSkillMod('expertise_action_line_dm_crit', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_amb_act_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_amb_act_1") return diff --git a/scripts/expertise/expertise_bh_amb_act_2.py b/scripts/expertise/expertise_bh_amb_act_2.py index a19f7ba9..e1d3bd74 100644 --- a/scripts/expertise/expertise_bh_amb_act_2.py +++ b/scripts/expertise/expertise_bh_amb_act_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_amb_act_2') - - actor.addSkillMod('expertise_action_line_dm_crit', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_amb_act_2') - - actor.removeSkillMod('expertise_action_line_dm_crit', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_amb_act_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_amb_act_2") return diff --git a/scripts/expertise/expertise_bh_amb_act_3.py b/scripts/expertise/expertise_bh_amb_act_3.py index cb649c64..da81f8ad 100644 --- a/scripts/expertise/expertise_bh_amb_act_3.py +++ b/scripts/expertise/expertise_bh_amb_act_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_amb_act_3') - - actor.addSkillMod('expertise_action_line_dm_crit', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_amb_act_3') - - actor.removeSkillMod('expertise_action_line_dm_crit', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_amb_act_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_amb_act_3") return diff --git a/scripts/expertise/expertise_bh_amb_cool_1.py b/scripts/expertise/expertise_bh_amb_cool_1.py index 8749deaa..6e07401d 100644 --- a/scripts/expertise/expertise_bh_amb_cool_1.py +++ b/scripts/expertise/expertise_bh_amb_cool_1.py @@ -1,48 +1,10 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_amb_cool_1') - - actor.addSkillMod('expertise_cooldown_line_dm_crit', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_amb_cool_1') - - actor.removeSkillMod('expertise_cooldown_line_dm_crit', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_amb_cool_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_amb_cool_1") return + \ No newline at end of file diff --git a/scripts/expertise/expertise_bh_amb_cool_2.py b/scripts/expertise/expertise_bh_amb_cool_2.py index a7a26a52..b1e0427e 100644 --- a/scripts/expertise/expertise_bh_amb_cool_2.py +++ b/scripts/expertise/expertise_bh_amb_cool_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_amb_cool_2') - - actor.addSkillMod('expertise_cooldown_line_dm_crit', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_amb_cool_2') - - actor.removeSkillMod('expertise_cooldown_line_dm_crit', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("bh_amb_cool_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("bh_amb_cool_2") return diff --git a/scripts/expertise/expertise_bh_amb_dam_1.py b/scripts/expertise/expertise_bh_amb_dam_1.py index 7d057532..932bf6e5 100644 --- a/scripts/expertise/expertise_bh_amb_dam_1.py +++ b/scripts/expertise/expertise_bh_amb_dam_1.py @@ -1,48 +1,10 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_amb_dam_1') - - actor.addSkillMod('expertise_damage_line_dm_crit', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_amb_dam_1') - - actor.removeSkillMod('expertise_damage_line_dm_crit', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_amb_dam_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_amb_dam_1") return + \ No newline at end of file diff --git a/scripts/expertise/expertise_bh_amb_dam_2.py b/scripts/expertise/expertise_bh_amb_dam_2.py index df566fbd..53bdcb8a 100644 --- a/scripts/expertise/expertise_bh_amb_dam_2.py +++ b/scripts/expertise/expertise_bh_amb_dam_2.py @@ -1,48 +1,10 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_amb_dam_2') - - actor.addSkillMod('expertise_damage_line_dm_crit', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_amb_dam_2') - - actor.removeSkillMod('expertise_damage_line_dm_crit', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_amb_dam_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_amb_dam_2") return + \ No newline at end of file diff --git a/scripts/expertise/expertise_bh_amb_dam_3.py b/scripts/expertise/expertise_bh_amb_dam_3.py index ba9a05e9..02832491 100644 --- a/scripts/expertise/expertise_bh_amb_dam_3.py +++ b/scripts/expertise/expertise_bh_amb_dam_3.py @@ -1,48 +1,10 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_amb_dam_3') - - actor.addSkillMod('expertise_damage_line_dm_crit', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_amb_dam_3') - - actor.removeSkillMod('expertise_damage_line_dm_crit', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_amb_dam_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_amb_dam_3") return + \ No newline at end of file diff --git a/scripts/expertise/expertise_bh_amb_dam_cool.py b/scripts/expertise/expertise_bh_amb_dam_cool.py index 1f9d3b03..633d3846 100644 --- a/scripts/expertise/expertise_bh_amb_dam_cool.py +++ b/scripts/expertise/expertise_bh_amb_dam_cool.py @@ -1,50 +1,10 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_amb_dam_cool') - - actor.addSkillMod('expertise_dm_crit_advanced', 1) - actor.addSkillMod('expertise_critical_line_dm_crit', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_amb_dam_cool') - - actor.removeSkillMod('expertise_dm_crit_advanced', 1) - actor.removeSkillMod('expertise_critical_line_dm_crit', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_dam_cool") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_amb_dam_cool") return + \ No newline at end of file diff --git a/scripts/expertise/expertise_bh_armor_duelist_1.py b/scripts/expertise/expertise_bh_armor_duelist_1.py index a8955362..c4529a37 100644 --- a/scripts/expertise/expertise_bh_armor_duelist_1.py +++ b/scripts/expertise/expertise_bh_armor_duelist_1.py @@ -1,48 +1,22 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_armor_duelist_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_armor_duelist_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('bh_armor_duelist_1') - + if actor.getLevel() >= 26: + actor.addAbility("bh_armor_duelist_1") + if actor.getLevel() >= 34: + actor.addAbility("bh_armor_duelist_2") + if actor.getLevel() >= 48: + actor.addAbility("bh_armor_duelist_3") + if actor.getLevel() >= 62: + actor.addAbility("bh_armor_duelist_4") + if actor.getLevel() >= 76: + actor.addAbility("bh_armor_duelist_5") return def removeAbilities(core, actor, player): - - actor.removeAbility('bh_armor_duelist_1') - + actor.removeAbility("bh_armor_duelist_1") + actor.removeAbility("bh_armor_duelist_2") + actor.removeAbility("bh_armor_duelist_3") + actor.removeAbility("bh_armor_duelist_4") + actor.removeAbility("bh_armor_duelist_5") return diff --git a/scripts/expertise/expertise_bh_armor_eng_1.py b/scripts/expertise/expertise_bh_armor_eng_1.py index dfcf05f9..a67e6dee 100644 --- a/scripts/expertise/expertise_bh_armor_eng_1.py +++ b/scripts/expertise/expertise_bh_armor_eng_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_armor_eng_1') - - actor.addSkillMod('expertise_innate_protection_energy', 500) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_armor_eng_1') - - actor.removeSkillMod('expertise_innate_protection_energy', 500) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_armor_eng_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_armor_eng_1") return diff --git a/scripts/expertise/expertise_bh_armor_eng_2.py b/scripts/expertise/expertise_bh_armor_eng_2.py index c04179da..86521742 100644 --- a/scripts/expertise/expertise_bh_armor_eng_2.py +++ b/scripts/expertise/expertise_bh_armor_eng_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_armor_eng_2') - - actor.addSkillMod('expertise_innate_protection_energy', 500) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_armor_eng_2') - - actor.removeSkillMod('expertise_innate_protection_energy', 500) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_armor_eng_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_armor_eng_2") return diff --git a/scripts/expertise/expertise_bh_armor_eng_3.py b/scripts/expertise/expertise_bh_armor_eng_3.py index a175c1bc..9674d322 100644 --- a/scripts/expertise/expertise_bh_armor_eng_3.py +++ b/scripts/expertise/expertise_bh_armor_eng_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_armor_eng_3') - - actor.addSkillMod('expertise_innate_protection_energy', 500) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_armor_eng_3') - - actor.removeSkillMod('expertise_innate_protection_energy', 500) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_armor_eng_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_armor_eng_3") return diff --git a/scripts/expertise/expertise_bh_armor_eng_4.py b/scripts/expertise/expertise_bh_armor_eng_4.py index 5157fef5..2282200c 100644 --- a/scripts/expertise/expertise_bh_armor_eng_4.py +++ b/scripts/expertise/expertise_bh_armor_eng_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_armor_eng_4') - - actor.addSkillMod('expertise_innate_protection_energy', 500) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_armor_eng_4') - - actor.removeSkillMod('expertise_innate_protection_energy', 500) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_armor_eng_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_armor_eng_4") return diff --git a/scripts/expertise/expertise_bh_armor_kin_1.py b/scripts/expertise/expertise_bh_armor_kin_1.py index 0f0fb7f5..91acd05a 100644 --- a/scripts/expertise/expertise_bh_armor_kin_1.py +++ b/scripts/expertise/expertise_bh_armor_kin_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_armor_kin_1') - - actor.addSkillMod('expertise_innate_protection_kinetic', 500) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_armor_kin_1') - - actor.removeSkillMod('expertise_innate_protection_kinetic', 500) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_armor_kin_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_armor_kin_1") return diff --git a/scripts/expertise/expertise_bh_armor_kin_2.py b/scripts/expertise/expertise_bh_armor_kin_2.py index c4897930..8e603d50 100644 --- a/scripts/expertise/expertise_bh_armor_kin_2.py +++ b/scripts/expertise/expertise_bh_armor_kin_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_armor_kin_2') - - actor.addSkillMod('expertise_innate_protection_kinetic', 500) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_armor_kin_2') - - actor.removeSkillMod('expertise_innate_protection_kinetic', 500) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_armor_kin_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_armor_kin_2") return diff --git a/scripts/expertise/expertise_bh_armor_kin_3.py b/scripts/expertise/expertise_bh_armor_kin_3.py index 2eacb73d..d54efcba 100644 --- a/scripts/expertise/expertise_bh_armor_kin_3.py +++ b/scripts/expertise/expertise_bh_armor_kin_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_armor_kin_3') - - actor.addSkillMod('expertise_innate_protection_kinetic', 500) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_armor_kin_3') - - actor.removeSkillMod('expertise_innate_protection_kinetic', 500) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_armor_kin_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_armor_kin_3") return diff --git a/scripts/expertise/expertise_bh_armor_kin_4.py b/scripts/expertise/expertise_bh_armor_kin_4.py index 7d0980cc..7351a899 100644 --- a/scripts/expertise/expertise_bh_armor_kin_4.py +++ b/scripts/expertise/expertise_bh_armor_kin_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_armor_kin_4') - - actor.addSkillMod('expertise_innate_protection_kinetic', 500) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_armor_kin_4') - - actor.removeSkillMod('expertise_innate_protection_kinetic', 500) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_armor_kin_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_armor_kin_4") return diff --git a/scripts/expertise/expertise_bh_armor_mgb_1.py b/scripts/expertise/expertise_bh_armor_mgb_1.py index b96d73ae..f6a10221 100644 --- a/scripts/expertise/expertise_bh_armor_mgb_1.py +++ b/scripts/expertise/expertise_bh_armor_mgb_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_armor_mgb_1') - - actor.addSkillMod('expertise_dodge', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_armor_mgb_1') - - actor.removeSkillMod('expertise_dodge', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_armor_mgb_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_armor_mgb_1") return diff --git a/scripts/expertise/expertise_bh_armor_mgb_2.py b/scripts/expertise/expertise_bh_armor_mgb_2.py index 3712b6e1..b71a226c 100644 --- a/scripts/expertise/expertise_bh_armor_mgb_2.py +++ b/scripts/expertise/expertise_bh_armor_mgb_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_armor_mgb_2') - - actor.addSkillMod('expertise_dodge', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_armor_mgb_2') - - actor.removeSkillMod('expertise_dodge', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_armor_mgb_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_armor_mgb_2") return diff --git a/scripts/expertise/expertise_bh_armor_mgb_3.py b/scripts/expertise/expertise_bh_armor_mgb_3.py index 10a05268..957b4b88 100644 --- a/scripts/expertise/expertise_bh_armor_mgb_3.py +++ b/scripts/expertise/expertise_bh_armor_mgb_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_armor_mgb_3') - - actor.addSkillMod('expertise_dodge', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_armor_mgb_3') - - actor.removeSkillMod('expertise_dodge', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_armor_mgb_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_armor_mgb_3") return diff --git a/scripts/expertise/expertise_bh_armor_rgb_1.py b/scripts/expertise/expertise_bh_armor_rgb_1.py index d529151c..c1d48b96 100644 --- a/scripts/expertise/expertise_bh_armor_rgb_1.py +++ b/scripts/expertise/expertise_bh_armor_rgb_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_armor_rgb_1') - - actor.addSkillMod('expertise_critical_hit_reduction', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_armor_rgb_1') - - actor.removeSkillMod('expertise_critical_hit_reduction', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_armor_rgb_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_armor_rgb_1") return diff --git a/scripts/expertise/expertise_bh_armor_rgb_2.py b/scripts/expertise/expertise_bh_armor_rgb_2.py index 54da7d9e..d0757ff7 100644 --- a/scripts/expertise/expertise_bh_armor_rgb_2.py +++ b/scripts/expertise/expertise_bh_armor_rgb_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_armor_rgb_2') - - actor.addSkillMod('expertise_critical_hit_reduction', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_armor_rgb_2') - - actor.removeSkillMod('expertise_critical_hit_reduction', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_armor_rgb_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_armor_rgb_2") return diff --git a/scripts/expertise/expertise_bh_armor_rgb_3.py b/scripts/expertise/expertise_bh_armor_rgb_3.py index c94386c5..7f8e5879 100644 --- a/scripts/expertise/expertise_bh_armor_rgb_3.py +++ b/scripts/expertise/expertise_bh_armor_rgb_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_armor_rgb_3') - - actor.addSkillMod('expertise_critical_hit_reduction', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_armor_rgb_3') - - actor.removeSkillMod('expertise_critical_hit_reduction', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_armor_rgb_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_armor_rgb_3") return diff --git a/scripts/expertise/expertise_bh_armor_sprint_1.py b/scripts/expertise/expertise_bh_armor_sprint_1.py index 247c23e1..ecedc9e6 100644 --- a/scripts/expertise/expertise_bh_armor_sprint_1.py +++ b/scripts/expertise/expertise_bh_armor_sprint_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_armor_sprint_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_armor_sprint_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('bh_armor_sprint_1') - + actor.addAbility("bh_shields_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('bh_armor_sprint_1') - + actor.removeAbility("bh_shields_1") return diff --git a/scripts/expertise/expertise_bh_ass_act_1.py b/scripts/expertise/expertise_bh_ass_act_1.py index 4b60f445..35100c39 100644 --- a/scripts/expertise/expertise_bh_ass_act_1.py +++ b/scripts/expertise/expertise_bh_ass_act_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_ass_act_1') - - actor.addSkillMod('expertise_action_line_dm', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_ass_act_1') - - actor.removeSkillMod('expertise_action_line_dm', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_ass_act_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_ass_act_1") return diff --git a/scripts/expertise/expertise_bh_ass_act_2.py b/scripts/expertise/expertise_bh_ass_act_2.py index 07f25018..e647dfd4 100644 --- a/scripts/expertise/expertise_bh_ass_act_2.py +++ b/scripts/expertise/expertise_bh_ass_act_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_ass_act_2') - - actor.addSkillMod('expertise_action_line_dm', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_ass_act_2') - - actor.removeSkillMod('expertise_action_line_dm', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_ass_act_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_ass_act_2") return diff --git a/scripts/expertise/expertise_bh_ass_act_3.py b/scripts/expertise/expertise_bh_ass_act_3.py index c24cbdd3..7011247d 100644 --- a/scripts/expertise/expertise_bh_ass_act_3.py +++ b/scripts/expertise/expertise_bh_ass_act_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_ass_act_3') - - actor.addSkillMod('expertise_action_line_dm', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_ass_act_3') - - actor.removeSkillMod('expertise_action_line_dm', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_ass_act_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_ass_act_3") return diff --git a/scripts/expertise/expertise_bh_ass_cool_1.py b/scripts/expertise/expertise_bh_ass_cool_1.py index aaff3675..c9d4f6bf 100644 --- a/scripts/expertise/expertise_bh_ass_cool_1.py +++ b/scripts/expertise/expertise_bh_ass_cool_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_ass_cool_1') - - actor.addSkillMod('expertise_cooldown_line_dm', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_ass_cool_1') - - actor.removeSkillMod('expertise_cooldown_line_dm', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_ass_cool_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_ass_cool_1") return diff --git a/scripts/expertise/expertise_bh_ass_cool_2.py b/scripts/expertise/expertise_bh_ass_cool_2.py index af01e9aa..4532702b 100644 --- a/scripts/expertise/expertise_bh_ass_cool_2.py +++ b/scripts/expertise/expertise_bh_ass_cool_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_ass_cool_2') - - actor.addSkillMod('expertise_cooldown_line_dm', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_ass_cool_2') - - actor.removeSkillMod('expertise_cooldown_line_dm', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_ass_cool_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_ass_cool_2") return diff --git a/scripts/expertise/expertise_bh_ass_dam_1.py b/scripts/expertise/expertise_bh_ass_dam_1.py index 04fb74e7..7d52ed2f 100644 --- a/scripts/expertise/expertise_bh_ass_dam_1.py +++ b/scripts/expertise/expertise_bh_ass_dam_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_ass_dam_1') - - actor.addSkillMod('expertise_damage_line_dm', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_ass_dam_1') - - actor.removeSkillMod('expertise_damage_line_dm', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_ass_dam_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_ass_dam_1") return diff --git a/scripts/expertise/expertise_bh_ass_dam_2.py b/scripts/expertise/expertise_bh_ass_dam_2.py index ea7ec873..a6587bd4 100644 --- a/scripts/expertise/expertise_bh_ass_dam_2.py +++ b/scripts/expertise/expertise_bh_ass_dam_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_ass_dam_2') - - actor.addSkillMod('expertise_damage_line_dm', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_ass_dam_2') - - actor.removeSkillMod('expertise_damage_line_dm', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_ass_dam_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_ass_dam_2") return diff --git a/scripts/expertise/expertise_bh_ass_dam_3.py b/scripts/expertise/expertise_bh_ass_dam_3.py index 7fce7d94..57e2d7c4 100644 --- a/scripts/expertise/expertise_bh_ass_dam_3.py +++ b/scripts/expertise/expertise_bh_ass_dam_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_ass_dam_3') - - actor.addSkillMod('expertise_damage_line_dm', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_ass_dam_3') - - actor.removeSkillMod('expertise_damage_line_dm', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_ass_dam_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_ass_dam_3") return diff --git a/scripts/expertise/expertise_bh_carbine_act_1.py b/scripts/expertise/expertise_bh_carbine_act_1.py index ce2dd758..bb7e39f3 100644 --- a/scripts/expertise/expertise_bh_carbine_act_1.py +++ b/scripts/expertise/expertise_bh_carbine_act_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_carbine_act_1') - - actor.addSkillMod('expertise_action_weapon_1', 3) - actor.addSkillMod('expertise_action_weapon_2', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_carbine_act_1') - - actor.removeSkillMod('expertise_action_weapon_1', 3) - actor.removeSkillMod('expertise_action_weapon_2', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_carbine_act_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_carbine_act_1") return diff --git a/scripts/expertise/expertise_bh_carbine_act_2.py b/scripts/expertise/expertise_bh_carbine_act_2.py index bb494e3f..c2024eab 100644 --- a/scripts/expertise/expertise_bh_carbine_act_2.py +++ b/scripts/expertise/expertise_bh_carbine_act_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_carbine_act_2') - - actor.addSkillMod('expertise_action_weapon_1', 3) - actor.addSkillMod('expertise_action_weapon_2', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_carbine_act_2') - - actor.removeSkillMod('expertise_action_weapon_1', 3) - actor.removeSkillMod('expertise_action_weapon_2', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_carbine_act_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_carbine_act_2") return diff --git a/scripts/expertise/expertise_bh_carbine_act_3.py b/scripts/expertise/expertise_bh_carbine_act_3.py index 6f07762a..ddb0ac36 100644 --- a/scripts/expertise/expertise_bh_carbine_act_3.py +++ b/scripts/expertise/expertise_bh_carbine_act_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_carbine_act_3') - - actor.addSkillMod('expertise_action_weapon_1', 4) - actor.addSkillMod('expertise_action_weapon_2', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_carbine_act_3') - - actor.removeSkillMod('expertise_action_weapon_1', 4) - actor.removeSkillMod('expertise_action_weapon_2', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_carbine_act_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_carbine_act_3") return diff --git a/scripts/expertise/expertise_bh_carbine_act_4.py b/scripts/expertise/expertise_bh_carbine_act_4.py index 96142cc2..30d33f95 100644 --- a/scripts/expertise/expertise_bh_carbine_act_4.py +++ b/scripts/expertise/expertise_bh_carbine_act_4.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_carbine_act_4') - - actor.addSkillMod('expertise_action_weapon_1', 5) - actor.addSkillMod('expertise_action_weapon_2', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_carbine_act_4') - - actor.removeSkillMod('expertise_action_weapon_1', 5) - actor.removeSkillMod('expertise_action_weapon_2', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_carbine_act_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_carbine_act_4") return diff --git a/scripts/expertise/expertise_bh_carbine_crit_1.py b/scripts/expertise/expertise_bh_carbine_crit_1.py index 131db4c7..76d07aa9 100644 --- a/scripts/expertise/expertise_bh_carbine_crit_1.py +++ b/scripts/expertise/expertise_bh_carbine_crit_1.py @@ -1,54 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_carbine_crit_1') - - actor.addSkillMod('expertise_range_bonus_carbine', 10) - actor.addSkillMod('expertise_undiminished_critical_carbine', 10) - actor.addSkillMod('expertise_undiminished_critical_pistol', 10) - actor.addSkillMod('expertise_range_bonus_pistol', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_carbine_crit_1') - - actor.removeSkillMod('expertise_range_bonus_carbine', 10) - actor.removeSkillMod('expertise_undiminished_critical_carbine', 10) - actor.removeSkillMod('expertise_undiminished_critical_pistol', 10) - actor.removeSkillMod('expertise_range_bonus_pistol', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_carbine_crit_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_carbine_crit_1") return diff --git a/scripts/expertise/expertise_bh_carbine_dam_1.py b/scripts/expertise/expertise_bh_carbine_dam_1.py index 4681ff5a..101aaaa0 100644 --- a/scripts/expertise/expertise_bh_carbine_dam_1.py +++ b/scripts/expertise/expertise_bh_carbine_dam_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_carbine_dam_1') - - actor.addSkillMod('expertise_damage_weapon_1', 2) - actor.addSkillMod('expertise_damage_weapon_2', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_carbine_dam_1') - - actor.removeSkillMod('expertise_damage_weapon_1', 2) - actor.removeSkillMod('expertise_damage_weapon_2', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_carbine_dam_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_carbine_dam_1") return diff --git a/scripts/expertise/expertise_bh_carbine_dam_2.py b/scripts/expertise/expertise_bh_carbine_dam_2.py index bca390dc..311fdf16 100644 --- a/scripts/expertise/expertise_bh_carbine_dam_2.py +++ b/scripts/expertise/expertise_bh_carbine_dam_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_carbine_dam_2') - - actor.addSkillMod('expertise_damage_weapon_1', 3) - actor.addSkillMod('expertise_damage_weapon_2', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_carbine_dam_2') - - actor.removeSkillMod('expertise_damage_weapon_1', 3) - actor.removeSkillMod('expertise_damage_weapon_2', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_carbine_dam_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_carbine_dam_2") return diff --git a/scripts/expertise/expertise_bh_constitution_1.py b/scripts/expertise/expertise_bh_constitution_1.py index bf9c095e..4311146c 100644 --- a/scripts/expertise/expertise_bh_constitution_1.py +++ b/scripts/expertise/expertise_bh_constitution_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_constitution_1') - - actor.addSkillMod('constitution_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_constitution_1') - - actor.removeSkillMod('constitution_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_constitution_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_constitution_1") return diff --git a/scripts/expertise/expertise_bh_constitution_2.py b/scripts/expertise/expertise_bh_constitution_2.py index a7a36229..b08059f1 100644 --- a/scripts/expertise/expertise_bh_constitution_2.py +++ b/scripts/expertise/expertise_bh_constitution_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_constitution_2') - - actor.addSkillMod('constitution_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_constitution_2') - - actor.removeSkillMod('constitution_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_constitution_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_constitution_2") return diff --git a/scripts/expertise/expertise_bh_constitution_3.py b/scripts/expertise/expertise_bh_constitution_3.py index 4259b57a..3cd7edf6 100644 --- a/scripts/expertise/expertise_bh_constitution_3.py +++ b/scripts/expertise/expertise_bh_constitution_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_constitution_3') - - actor.addSkillMod('constitution_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_constitution_3') - - actor.removeSkillMod('constitution_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_constitution_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_constitution_3") return diff --git a/scripts/expertise/expertise_bh_constitution_4.py b/scripts/expertise/expertise_bh_constitution_4.py index dd89792b..662706cb 100644 --- a/scripts/expertise/expertise_bh_constitution_4.py +++ b/scripts/expertise/expertise_bh_constitution_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_constitution_4') - - actor.addSkillMod('constitution_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_constitution_4') - - actor.removeSkillMod('constitution_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_constitution_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_constitution_4") return diff --git a/scripts/expertise/expertise_bh_cover_1.py b/scripts/expertise/expertise_bh_cover_1.py index 019850cd..b3021ddf 100644 --- a/scripts/expertise/expertise_bh_cover_1.py +++ b/scripts/expertise/expertise_bh_cover_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_cover_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_cover_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('bh_cover_1') - + actor.addAbility("bh_cover_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('bh_cover_1') - + actor.removeAbility("bh_cover_1") return diff --git a/scripts/expertise/expertise_bh_deflection_1.py b/scripts/expertise/expertise_bh_deflection_1.py index ab02e0a6..8ac3bf4c 100644 --- a/scripts/expertise/expertise_bh_deflection_1.py +++ b/scripts/expertise/expertise_bh_deflection_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_deflection_1') - - actor.addSkillMod('expertise_innate_protection_all', 250) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_deflection_1') - - actor.removeSkillMod('expertise_innate_protection_all', 250) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_deflection_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_deflection_1") return diff --git a/scripts/expertise/expertise_bh_deflection_2.py b/scripts/expertise/expertise_bh_deflection_2.py index 33b98bf0..35b2c47e 100644 --- a/scripts/expertise/expertise_bh_deflection_2.py +++ b/scripts/expertise/expertise_bh_deflection_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_deflection_2') - - actor.addSkillMod('expertise_innate_protection_all', 250) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_deflection_2') - - actor.removeSkillMod('expertise_innate_protection_all', 250) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_deflection_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_deflection_2") return diff --git a/scripts/expertise/expertise_bh_deflection_3.py b/scripts/expertise/expertise_bh_deflection_3.py index c408ca42..d1cd6d2d 100644 --- a/scripts/expertise/expertise_bh_deflection_3.py +++ b/scripts/expertise/expertise_bh_deflection_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_deflection_3') - - actor.addSkillMod('expertise_innate_protection_all', 250) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_deflection_3') - - actor.removeSkillMod('expertise_innate_protection_all', 250) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_deflection_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_deflection_3") return diff --git a/scripts/expertise/expertise_bh_deflection_4.py b/scripts/expertise/expertise_bh_deflection_4.py index b5e42e86..fa5ae83f 100644 --- a/scripts/expertise/expertise_bh_deflection_4.py +++ b/scripts/expertise/expertise_bh_deflection_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_deflection_4') - - actor.addSkillMod('expertise_innate_protection_all', 250) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_deflection_4') - - actor.removeSkillMod('expertise_innate_protection_all', 250) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_deflection_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_deflection_4") return diff --git a/scripts/expertise/expertise_bh_dread_strike_1.py b/scripts/expertise/expertise_bh_dread_strike_1.py index f7598134..ae817cd0 100644 --- a/scripts/expertise/expertise_bh_dread_strike_1.py +++ b/scripts/expertise/expertise_bh_dread_strike_1.py @@ -1,48 +1,22 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_dread_strike_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_dread_strike_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('bh_dread_strike_1') - + if actor.getLevel() >= 26: + actor.addAbility("bh_dread_strike_1") + if actor.getLevel() >= 34: + actor.addAbility("bh_dread_strike_2") + if actor.getLevel() >= 48: + actor.addAbility("bh_dread_strike_3") + if actor.getLevel() >= 62: + actor.addAbility("bh_dread_strike_4") + if actor.getLevel() >= 76: + actor.addAbility("bh_dread_strike_5") return def removeAbilities(core, actor, player): - - actor.removeAbility('bh_dread_strike_1') - + actor.removeAbility("bh_dread_strike_1") + actor.removeAbility("bh_dread_strike_2") + actor.removeAbility("bh_dread_strike_3") + actor.removeAbility("bh_dread_strike_4") + actor.removeAbility("bh_dread_strike_5") return diff --git a/scripts/expertise/expertise_bh_fumble_1.py b/scripts/expertise/expertise_bh_fumble_1.py index c3863158..c9f10511 100644 --- a/scripts/expertise/expertise_bh_fumble_1.py +++ b/scripts/expertise/expertise_bh_fumble_1.py @@ -1,48 +1,25 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_fumble_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_fumble_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('bh_fumble_1') - + if actor.getLevel() >= 26: + actor.addAbility("bh_fumble_1") + if actor.getLevel() >= 34: + actor.addAbility("bh_fumble_2") + if actor.getLevel() >= 48: + actor.addAbility("bh_fumble_3") + if actor.getLevel() >= 62: + actor.addAbility("bh_fumble_4") + if actor.getLevel() >= 76: + actor.addAbility("bh_fumble_5") + if actor.getLevel() >= 90: + actor.addAbility("bh_fumble_6") return def removeAbilities(core, actor, player): - - actor.removeAbility('bh_fumble_1') - + actor.removeAbility("bh_fumble_1") + actor.removeAbility("bh_fumble_2") + actor.removeAbility("bh_fumble_3") + actor.removeAbility("bh_fumble_4") + actor.removeAbility("bh_fumble_5") + actor.removeAbility("bh_fumble_6") return diff --git a/scripts/expertise/expertise_bh_innate_1.py b/scripts/expertise/expertise_bh_innate_1.py index 1f013597..be7b9b38 100644 --- a/scripts/expertise/expertise_bh_innate_1.py +++ b/scripts/expertise/expertise_bh_innate_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_innate_1') - - actor.addSkillMod('expertise_assult_action_buff', 40) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_innate_1') - - actor.removeSkillMod('expertise_assult_action_buff', 40) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_innate_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_innate_1") return diff --git a/scripts/expertise/expertise_bh_intimidate_1.py b/scripts/expertise/expertise_bh_intimidate_1.py index fa501d18..ee0e81ce 100644 --- a/scripts/expertise/expertise_bh_intimidate_1.py +++ b/scripts/expertise/expertise_bh_intimidate_1.py @@ -1,48 +1,25 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_intimidate_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_intimidate_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('bh_intimidate_1') - + if actor.getLevel() >= 26: + actor.addAbility("bh_intimidate_1") + if actor.getLevel() >= 34: + actor.addAbility("bh_intimidate_2") + if actor.getLevel() >= 48: + actor.addAbility("bh_intimidate_3") + if actor.getLevel() >= 62: + actor.addAbility("bh_intimidate_4") + if actor.getLevel() >= 76: + actor.addAbility("bh_intimidate_5") + if actor.getLevel() >= 90: + actor.addAbility("bh_intimidate_6") return def removeAbilities(core, actor, player): - - actor.removeAbility('bh_intimidate_1') - + actor.removeAbility("bh_intimidate_1") + actor.removeAbility("bh_intimidate_2") + actor.removeAbility("bh_intimidate_3") + actor.removeAbility("bh_intimidate_4") + actor.removeAbility("bh_intimidate_5") + actor.removeAbility("bh_intimidate_6") return diff --git a/scripts/expertise/expertise_bh_man_crit_1.py b/scripts/expertise/expertise_bh_man_crit_1.py index 834f9dec..39c35cea 100644 --- a/scripts/expertise/expertise_bh_man_crit_1.py +++ b/scripts/expertise/expertise_bh_man_crit_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_man_crit_1') - - actor.addSkillMod('expertise_strikethrough_chance', 2) - actor.addSkillMod('expertise_bh_detect_camo_chance', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_man_crit_1') - - actor.removeSkillMod('expertise_strikethrough_chance', 2) - actor.removeSkillMod('expertise_bh_detect_camo_chance', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_man_crit_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_man_crit_1") return diff --git a/scripts/expertise/expertise_bh_man_crit_2.py b/scripts/expertise/expertise_bh_man_crit_2.py index b9650fe3..f59f750a 100644 --- a/scripts/expertise/expertise_bh_man_crit_2.py +++ b/scripts/expertise/expertise_bh_man_crit_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_man_crit_2') - - actor.addSkillMod('expertise_strikethrough_chance', 2) - actor.addSkillMod('expertise_bh_detect_camo_chance', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_man_crit_2') - - actor.removeSkillMod('expertise_strikethrough_chance', 2) - actor.removeSkillMod('expertise_bh_detect_camo_chance', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_man_crit_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_man_crit_2") return diff --git a/scripts/expertise/expertise_bh_man_crit_3.py b/scripts/expertise/expertise_bh_man_crit_3.py index da3e6f06..cb9d8b76 100644 --- a/scripts/expertise/expertise_bh_man_crit_3.py +++ b/scripts/expertise/expertise_bh_man_crit_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_man_crit_3') - - actor.addSkillMod('expertise_strikethrough_chance', 2) - actor.addSkillMod('expertise_bh_detect_camo_chance', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_man_crit_3') - - actor.removeSkillMod('expertise_strikethrough_chance', 2) - actor.removeSkillMod('expertise_bh_detect_camo_chance', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_man_crit_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_man_crit_3") return diff --git a/scripts/expertise/expertise_bh_precision_1.py b/scripts/expertise/expertise_bh_precision_1.py index 7004f208..f3813dc5 100644 --- a/scripts/expertise/expertise_bh_precision_1.py +++ b/scripts/expertise/expertise_bh_precision_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_precision_1') - - actor.addSkillMod('precision_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_precision_1') - - actor.removeSkillMod('precision_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_precision_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_precision_1") return diff --git a/scripts/expertise/expertise_bh_precision_2.py b/scripts/expertise/expertise_bh_precision_2.py index 58cb5095..6207ca53 100644 --- a/scripts/expertise/expertise_bh_precision_2.py +++ b/scripts/expertise/expertise_bh_precision_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_precision_2') - - actor.addSkillMod('precision_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_precision_2') - - actor.removeSkillMod('precision_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_precision_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_precision_2") return diff --git a/scripts/expertise/expertise_bh_precision_3.py b/scripts/expertise/expertise_bh_precision_3.py index 32fa6e4c..d872a9f0 100644 --- a/scripts/expertise/expertise_bh_precision_3.py +++ b/scripts/expertise/expertise_bh_precision_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_precision_3') - - actor.addSkillMod('precision_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_precision_3') - - actor.removeSkillMod('precision_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_precision_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_precision_3") return diff --git a/scripts/expertise/expertise_bh_precision_4.py b/scripts/expertise/expertise_bh_precision_4.py index 9ff20b56..c23f6372 100644 --- a/scripts/expertise/expertise_bh_precision_4.py +++ b/scripts/expertise/expertise_bh_precision_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_precision_4') - - actor.addSkillMod('precision_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_precision_4') - - actor.removeSkillMod('precision_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_precision_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_precision_4") return diff --git a/scripts/expertise/expertise_bh_prescience.py b/scripts/expertise/expertise_bh_prescience.py index 8211d2f6..a0705af9 100644 --- a/scripts/expertise/expertise_bh_prescience.py +++ b/scripts/expertise/expertise_bh_prescience.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_prescience') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_prescience') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('bh_prescience') - + actor.addAbility("bh_prescience") return def removeAbilities(core, actor, player): - - actor.removeAbility('bh_prescience') - + actor.removeAbility("bh_prescience") return diff --git a/scripts/expertise/expertise_bh_relentless_1.py b/scripts/expertise/expertise_bh_relentless_1.py index 16584560..d8859773 100644 --- a/scripts/expertise/expertise_bh_relentless_1.py +++ b/scripts/expertise/expertise_bh_relentless_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_relentless_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_relentless_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('bh_relentless_1') - + actor.addAbility("bh_relentless_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('bh_relentless_1') - + actor.removeAbility("bh_relentless_1") return diff --git a/scripts/expertise/expertise_bh_return_fire_1.py b/scripts/expertise/expertise_bh_return_fire_1.py index 27d39f22..322ced20 100644 --- a/scripts/expertise/expertise_bh_return_fire_1.py +++ b/scripts/expertise/expertise_bh_return_fire_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_return_fire_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_return_fire_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('bh_return_fire_command_1') - + actor.addAbility("bh_return_fire_command_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('bh_return_fire_command_1') - + actor.removeAbility("bh_return_fire_command_1") return diff --git a/scripts/expertise/expertise_bh_rifle_act_1.py b/scripts/expertise/expertise_bh_rifle_act_1.py index c64ab6fd..5ab3b5b8 100644 --- a/scripts/expertise/expertise_bh_rifle_act_1.py +++ b/scripts/expertise/expertise_bh_rifle_act_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_rifle_act_1') - - actor.addSkillMod('expertise_action_weapon_0', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_rifle_act_1') - - actor.removeSkillMod('expertise_action_weapon_0', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_rifle_act_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_rifle_act_1") return diff --git a/scripts/expertise/expertise_bh_rifle_act_2.py b/scripts/expertise/expertise_bh_rifle_act_2.py index f1488c3f..1f94991c 100644 --- a/scripts/expertise/expertise_bh_rifle_act_2.py +++ b/scripts/expertise/expertise_bh_rifle_act_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_rifle_act_2') - - actor.addSkillMod('expertise_action_weapon_0', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_rifle_act_2') - - actor.removeSkillMod('expertise_action_weapon_0', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_rifle_act_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_rifle_act_2") return diff --git a/scripts/expertise/expertise_bh_rifle_act_3.py b/scripts/expertise/expertise_bh_rifle_act_3.py index 709fdfec..21f5a7b6 100644 --- a/scripts/expertise/expertise_bh_rifle_act_3.py +++ b/scripts/expertise/expertise_bh_rifle_act_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_rifle_act_3') - - actor.addSkillMod('expertise_action_weapon_0', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_rifle_act_3') - - actor.removeSkillMod('expertise_action_weapon_0', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_rifle_act_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_rifle_act_3") return diff --git a/scripts/expertise/expertise_bh_rifle_act_4.py b/scripts/expertise/expertise_bh_rifle_act_4.py index fc0549fa..cb32b474 100644 --- a/scripts/expertise/expertise_bh_rifle_act_4.py +++ b/scripts/expertise/expertise_bh_rifle_act_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_rifle_act_4') - - actor.addSkillMod('expertise_action_weapon_0', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_rifle_act_4') - - actor.removeSkillMod('expertise_action_weapon_0', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_rifle_act_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_rifle_act_4") return diff --git a/scripts/expertise/expertise_bh_rifle_dam_1.py b/scripts/expertise/expertise_bh_rifle_dam_1.py index 9c3114cc..debb9b31 100644 --- a/scripts/expertise/expertise_bh_rifle_dam_1.py +++ b/scripts/expertise/expertise_bh_rifle_dam_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_rifle_dam_1') - - actor.addSkillMod('expertise_damage_weapon_0', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_rifle_dam_1') - - actor.removeSkillMod('expertise_damage_weapon_0', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_rifle_dam_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_rifle_dam_1") return diff --git a/scripts/expertise/expertise_bh_rifle_dam_2.py b/scripts/expertise/expertise_bh_rifle_dam_2.py index 43fa09b4..29f37539 100644 --- a/scripts/expertise/expertise_bh_rifle_dam_2.py +++ b/scripts/expertise/expertise_bh_rifle_dam_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_rifle_dam_2') - - actor.addSkillMod('expertise_damage_weapon_0', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_rifle_dam_2') - - actor.removeSkillMod('expertise_damage_weapon_0', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_rifle_dam_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_rifle_dam_2") return diff --git a/scripts/expertise/expertise_bh_shields_1.py b/scripts/expertise/expertise_bh_shields_1.py index cc0b0b50..ecedc9e6 100644 --- a/scripts/expertise/expertise_bh_shields_1.py +++ b/scripts/expertise/expertise_bh_shields_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_shields_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_shields_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('bh_shields_1') - + actor.addAbility("bh_shields_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('bh_shields_1') - + actor.removeAbility("bh_shields_1") return diff --git a/scripts/expertise/expertise_bh_sniper_1.py b/scripts/expertise/expertise_bh_sniper_1.py index 5d90b6af..b94485a7 100644 --- a/scripts/expertise/expertise_bh_sniper_1.py +++ b/scripts/expertise/expertise_bh_sniper_1.py @@ -1,48 +1,25 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_sniper_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_sniper_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('bh_sniper_1') - + if actor.getLevel() >= 26: + actor.addAbility("bh_sniper_1") + if actor.getLevel() >= 34: + actor.addAbility("bh_sniper_2") + if actor.getLevel() >= 48: + actor.addAbility("bh_sniper_3") + if actor.getLevel() >= 62: + actor.addAbility("bh_sniper_4") + if actor.getLevel() >= 76: + actor.addAbility("bh_sniper_5") + if actor.getLevel() >= 90: + actor.addAbility("bh_sniper_6") return def removeAbilities(core, actor, player): - - actor.removeAbility('bh_sniper_1') - + actor.removeAbility("bh_sniper_1") + actor.removeAbility("bh_sniper_2") + actor.removeAbility("bh_sniper_3") + actor.removeAbility("bh_sniper_4") + actor.removeAbility("bh_sniper_5") + actor.removeAbility("bh_sniper_6") return diff --git a/scripts/expertise/expertise_bh_stamina_1.py b/scripts/expertise/expertise_bh_stamina_1.py index 135dfb5a..77903769 100644 --- a/scripts/expertise/expertise_bh_stamina_1.py +++ b/scripts/expertise/expertise_bh_stamina_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_stamina_1') - - actor.addSkillMod('stamina_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_stamina_1') - - actor.removeSkillMod('stamina_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_stamina_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_stamina_1") return diff --git a/scripts/expertise/expertise_bh_stamina_2.py b/scripts/expertise/expertise_bh_stamina_2.py index 82137a73..0deb8459 100644 --- a/scripts/expertise/expertise_bh_stamina_2.py +++ b/scripts/expertise/expertise_bh_stamina_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_stamina_2') - - actor.addSkillMod('stamina_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_stamina_2') - - actor.removeSkillMod('stamina_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_stamina_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_stamina_2") return diff --git a/scripts/expertise/expertise_bh_stamina_3.py b/scripts/expertise/expertise_bh_stamina_3.py index 4a9d9c79..3ec0af04 100644 --- a/scripts/expertise/expertise_bh_stamina_3.py +++ b/scripts/expertise/expertise_bh_stamina_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_stamina_3') - - actor.addSkillMod('stamina_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_stamina_3') - - actor.removeSkillMod('stamina_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_stamina_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_stamina_3") return diff --git a/scripts/expertise/expertise_bh_stamina_4.py b/scripts/expertise/expertise_bh_stamina_4.py index b4bec72c..fd17d13e 100644 --- a/scripts/expertise/expertise_bh_stamina_4.py +++ b/scripts/expertise/expertise_bh_stamina_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_stamina_4') - - actor.addSkillMod('stamina_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_stamina_4') - - actor.removeSkillMod('stamina_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_stamina_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_stamina_4") return diff --git a/scripts/expertise/expertise_bh_stun_1.py b/scripts/expertise/expertise_bh_stun_1.py index 63fbb815..4e9f3633 100644 --- a/scripts/expertise/expertise_bh_stun_1.py +++ b/scripts/expertise/expertise_bh_stun_1.py @@ -1,48 +1,22 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_stun_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_stun_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('bh_stun_1') - + if actor.getLevel() >= 26: + actor.addAbility("bh_stun_1") + if actor.getLevel() >= 34: + actor.addAbility("bh_stun_2") + if actor.getLevel() >= 48: + actor.addAbility("bh_stun_3") + if actor.getLevel() >= 62: + actor.addAbility("bh_stun_4") + if actor.getLevel() >= 76: + actor.addAbility("bh_stun_5") return def removeAbilities(core, actor, player): - - actor.removeAbility('bh_stun_1') - + actor.removeAbility("bh_stun_1") + actor.removeAbility("bh_stun_2") + actor.removeAbility("bh_stun_3") + actor.removeAbility("bh_stun_4") + actor.removeAbility("bh_stun_5") return diff --git a/scripts/expertise/expertise_bh_surprise_1.py b/scripts/expertise/expertise_bh_surprise_1.py index 362f3be0..2e23c9bf 100644 --- a/scripts/expertise/expertise_bh_surprise_1.py +++ b/scripts/expertise/expertise_bh_surprise_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_surprise_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_surprise_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('bh_dm_crit_3') - + actor.addAbility("bh_dm_crit_3") return def removeAbilities(core, actor, player): - - actor.removeAbility('bh_dm_crit_3') - + actor.removeAbility("bh_dm_crit_3") return diff --git a/scripts/expertise/expertise_bh_survival_instinct_1.py b/scripts/expertise/expertise_bh_survival_instinct_1.py index 720ddfe0..c361bf9b 100644 --- a/scripts/expertise/expertise_bh_survival_instinct_1.py +++ b/scripts/expertise/expertise_bh_survival_instinct_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_survival_instinct_1') - - actor.addSkillMod('expertise_cooldown_line_sh', 20) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_survival_instinct_1') - - actor.removeSkillMod('expertise_cooldown_line_sh', 20) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_survival_instinct_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_survival_instinct_1") return diff --git a/scripts/expertise/expertise_bh_survival_instinct_2.py b/scripts/expertise/expertise_bh_survival_instinct_2.py index 9fbce1d0..6302e5c0 100644 --- a/scripts/expertise/expertise_bh_survival_instinct_2.py +++ b/scripts/expertise/expertise_bh_survival_instinct_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_survival_instinct_2') - - actor.addSkillMod('expertise_cooldown_line_sh', 20) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_survival_instinct_2') - - actor.removeSkillMod('expertise_cooldown_line_sh', 20) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_survival_instinct_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_survival_instinct_2") return diff --git a/scripts/expertise/expertise_bh_taunt_1.py b/scripts/expertise/expertise_bh_taunt_1.py index 9fa48b82..31dc085e 100644 --- a/scripts/expertise/expertise_bh_taunt_1.py +++ b/scripts/expertise/expertise_bh_taunt_1.py @@ -1,48 +1,25 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_taunt_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_taunt_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('bh_taunt_1') - + if actor.getLevel() >= 26: + actor.addAbility("bh_taunt_1") + if actor.getLevel() >= 34: + actor.addAbility("bh_taunt_2") + if actor.getLevel() >= 48: + actor.addAbility("bh_taunt_3") + if actor.getLevel() >= 62: + actor.addAbility("bh_taunt_4") + if actor.getLevel() >= 76: + actor.addAbility("bh_taunt_5") + if actor.getLevel() >= 90: + actor.addAbility("bh_taunt_6") return def removeAbilities(core, actor, player): - - actor.removeAbility('bh_taunt_1') - + actor.removeAbility("bh_taunt_1") + actor.removeAbility("bh_taunt_2") + actor.removeAbility("bh_taunt_3") + actor.removeAbility("bh_taunt_4") + actor.removeAbility("bh_taunt_5") + actor.removeAbility("bh_taunt_6") return diff --git a/scripts/expertise/expertise_bh_trap_dam_1.py b/scripts/expertise/expertise_bh_trap_dam_1.py index debbc5b2..c3ec4563 100644 --- a/scripts/expertise/expertise_bh_trap_dam_1.py +++ b/scripts/expertise/expertise_bh_trap_dam_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_trap_dam_1') - - actor.addSkillMod('expertise_damage_line_dm_cc', 5) - actor.addSkillMod('expertise_action_line_dm_cc', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_trap_dam_1') - - actor.removeSkillMod('expertise_damage_line_dm_cc', 5) - actor.removeSkillMod('expertise_action_line_dm_cc', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_trap_dam_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_trap_dam_1") return diff --git a/scripts/expertise/expertise_bh_trap_dam_2.py b/scripts/expertise/expertise_bh_trap_dam_2.py index 34f1cfa9..7e4066c6 100644 --- a/scripts/expertise/expertise_bh_trap_dam_2.py +++ b/scripts/expertise/expertise_bh_trap_dam_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_trap_dam_2') - - actor.addSkillMod('expertise_damage_line_dm_cc', 5) - actor.addSkillMod('expertise_action_line_dm_cc', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_trap_dam_2') - - actor.removeSkillMod('expertise_damage_line_dm_cc', 5) - actor.removeSkillMod('expertise_action_line_dm_cc', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_trap_dam_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_trap_dam_2") return diff --git a/scripts/expertise/expertise_bh_trap_dam_3.py b/scripts/expertise/expertise_bh_trap_dam_3.py index d8df37c2..27207b90 100644 --- a/scripts/expertise/expertise_bh_trap_dam_3.py +++ b/scripts/expertise/expertise_bh_trap_dam_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_trap_dam_3') - - actor.addSkillMod('expertise_damage_line_dm_cc', 5) - actor.addSkillMod('expertise_action_line_dm_cc', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_trap_dam_3') - - actor.removeSkillMod('expertise_damage_line_dm_cc', 5) - actor.removeSkillMod('expertise_action_line_dm_cc', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_trap_dam_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_trap_dam_3") return diff --git a/scripts/expertise/expertise_bh_trap_dam_4.py b/scripts/expertise/expertise_bh_trap_dam_4.py index 895fa7ed..7caad822 100644 --- a/scripts/expertise/expertise_bh_trap_dam_4.py +++ b/scripts/expertise/expertise_bh_trap_dam_4.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_trap_dam_4') - - actor.addSkillMod('expertise_damage_line_dm_cc', 5) - actor.addSkillMod('expertise_action_line_dm_cc', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_trap_dam_4') - - actor.removeSkillMod('expertise_damage_line_dm_cc', 5) - actor.removeSkillMod('expertise_action_line_dm_cc', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_trap_dam_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_trap_dam_4") return diff --git a/scripts/expertise/expertise_bh_trap_duration_1.py b/scripts/expertise/expertise_bh_trap_duration_1.py index a24b5591..77c4e203 100644 --- a/scripts/expertise/expertise_bh_trap_duration_1.py +++ b/scripts/expertise/expertise_bh_trap_duration_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_trap_duration_1') - - actor.addSkillMod('expertise_buff_duration_group_snare', 1) - actor.addSkillMod('expertise_cooldown_line_dm_cc', 20) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_trap_duration_1') - - actor.removeSkillMod('expertise_buff_duration_group_snare', 1) - actor.removeSkillMod('expertise_cooldown_line_dm_cc', 20) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_trap_duration_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_trap_duration_1") return diff --git a/scripts/expertise/expertise_bh_trap_duration_2.py b/scripts/expertise/expertise_bh_trap_duration_2.py index 4c312043..682f7452 100644 --- a/scripts/expertise/expertise_bh_trap_duration_2.py +++ b/scripts/expertise/expertise_bh_trap_duration_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_trap_duration_2') - - actor.addSkillMod('expertise_buff_duration_group_snare', 1) - actor.addSkillMod('expertise_cooldown_line_dm_cc', 20) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_trap_duration_2') - - actor.removeSkillMod('expertise_buff_duration_group_snare', 1) - actor.removeSkillMod('expertise_cooldown_line_dm_cc', 20) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_trap_duration_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_trap_duration_2") return diff --git a/scripts/expertise/expertise_bh_trap_duration_3.py b/scripts/expertise/expertise_bh_trap_duration_3.py index 409ba235..d08b714c 100644 --- a/scripts/expertise/expertise_bh_trap_duration_3.py +++ b/scripts/expertise/expertise_bh_trap_duration_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_trap_duration_3') - - actor.addSkillMod('expertise_buff_duration_group_snare', 1) - actor.addSkillMod('expertise_cooldown_line_dm_cc', 20) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_trap_duration_3') - - actor.removeSkillMod('expertise_buff_duration_group_snare', 1) - actor.removeSkillMod('expertise_cooldown_line_dm_cc', 20) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_trap_duration_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_trap_duration_3") return diff --git a/scripts/expertise/expertise_bh_trap_rng_1.py b/scripts/expertise/expertise_bh_trap_rng_1.py index 3da9ced9..74ce4e28 100644 --- a/scripts/expertise/expertise_bh_trap_rng_1.py +++ b/scripts/expertise/expertise_bh_trap_rng_1.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_trap_rng_1') - - actor.addSkillMod('expertise_area_size_line_trap', 1) - actor.addSkillMod('expertise_area_size_line_diretrap', 1) - actor.addSkillMod('expertise_action_line_trap', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_trap_rng_1') - - actor.removeSkillMod('expertise_area_size_line_trap', 1) - actor.removeSkillMod('expertise_area_size_line_diretrap', 1) - actor.removeSkillMod('expertise_action_line_trap', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_trap_rng_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_trap_rng_1") return diff --git a/scripts/expertise/expertise_bh_trap_rng_2.py b/scripts/expertise/expertise_bh_trap_rng_2.py index 0d853136..c3508e35 100644 --- a/scripts/expertise/expertise_bh_trap_rng_2.py +++ b/scripts/expertise/expertise_bh_trap_rng_2.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.addSkill('expertise_bh_trap_rng_2') - - actor.addSkillMod('expertise_area_size_line_trap', 1) - actor.addSkillMod('expertise_area_size_line_diretrap', 1) - actor.addSkillMod('expertise_action_line_trap', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'bounty_hunter_1a': - return - - actor.removeSkill('expertise_bh_trap_rng_2') - - actor.removeSkillMod('expertise_area_size_line_trap', 1) - actor.removeSkillMod('expertise_area_size_line_diretrap', 1) - actor.removeSkillMod('expertise_action_line_trap', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bh_trap_rng_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bh_trap_rng_2") return diff --git a/scripts/expertise/expertise_bm_abilility_aquisition_mod_1.py b/scripts/expertise/expertise_bm_abilility_aquisition_mod_1.py index 5a44b9cb..ad3b81a0 100644 --- a/scripts/expertise/expertise_bm_abilility_aquisition_mod_1.py +++ b/scripts/expertise/expertise_bm_abilility_aquisition_mod_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_abilility_aquisition_mod_1') - - actor.addSkillMod('expertise_bm_enhanced_skill_acquisition', 15) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_abilility_aquisition_mod_1') - - actor.removeSkillMod('expertise_bm_enhanced_skill_acquisition', 15) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_abilility_aquisition_mod_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_abilility_aquisition_mod_1") return diff --git a/scripts/expertise/expertise_bm_add_first_pet_bar_1.py b/scripts/expertise/expertise_bm_add_first_pet_bar_1.py index aca29011..e0653096 100644 --- a/scripts/expertise/expertise_bm_add_first_pet_bar_1.py +++ b/scripts/expertise/expertise_bm_add_first_pet_bar_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_add_first_pet_bar_1') - - actor.addSkillMod('expertise_bm_add_pet_bar', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_add_first_pet_bar_1') - - actor.removeSkillMod('expertise_bm_add_pet_bar', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_add_first_pet_bar_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_add_first_pet_bar_1") return diff --git a/scripts/expertise/expertise_bm_add_second_pet_bar_1.py b/scripts/expertise/expertise_bm_add_second_pet_bar_1.py index 385f1057..374dae76 100644 --- a/scripts/expertise/expertise_bm_add_second_pet_bar_1.py +++ b/scripts/expertise/expertise_bm_add_second_pet_bar_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_add_second_pet_bar_1') - - actor.addSkillMod('expertise_bm_add_pet_bar', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_add_second_pet_bar_1') - - actor.removeSkillMod('expertise_bm_add_pet_bar', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_add_second_pet_bar_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_add_second_pet_bar_1") return diff --git a/scripts/expertise/expertise_bm_add_third_pet_bar_1.py b/scripts/expertise/expertise_bm_add_third_pet_bar_1.py index 607cc8c8..600df6ad 100644 --- a/scripts/expertise/expertise_bm_add_third_pet_bar_1.py +++ b/scripts/expertise/expertise_bm_add_third_pet_bar_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_add_third_pet_bar_1') - - actor.addSkillMod('expertise_bm_add_pet_bar', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_add_third_pet_bar_1') - - actor.removeSkillMod('expertise_bm_add_pet_bar', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_add_third_pet_bar_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_add_third_pet_bar_1") return diff --git a/scripts/expertise/expertise_bm_attack_1.py b/scripts/expertise/expertise_bm_attack_1.py index 8b6f795c..798c38cf 100644 --- a/scripts/expertise/expertise_bm_attack_1.py +++ b/scripts/expertise/expertise_bm_attack_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_attack_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_attack_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('bm_pet_attack_1') - + actor.addAbility("bm_pet_attack_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('bm_pet_attack_1') - + actor.removeAbility("bm_pet_attack_1") return diff --git a/scripts/expertise/expertise_bm_beast_mastery_1.py b/scripts/expertise/expertise_bm_beast_mastery_1.py index e467a281..b4720a91 100644 --- a/scripts/expertise/expertise_bm_beast_mastery_1.py +++ b/scripts/expertise/expertise_bm_beast_mastery_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_beast_mastery_1') - - actor.addSkillMod('expertise_bm_self_debuff_reduction', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_beast_mastery_1') - - actor.removeSkillMod('expertise_bm_self_debuff_reduction', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_beast_mastery_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_beast_mastery_1") return diff --git a/scripts/expertise/expertise_bm_creature_knowledge_command_1.py b/scripts/expertise/expertise_bm_creature_knowledge_command_1.py index 3f50c6cd..602905fc 100644 --- a/scripts/expertise/expertise_bm_creature_knowledge_command_1.py +++ b/scripts/expertise/expertise_bm_creature_knowledge_command_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_creature_knowledge_command_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_creature_knowledge_command_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('bm_creature_knowledge_command_1') - + actor.addAbility("bm_creature_knowledge_command_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('bm_creature_knowledge_command_1') - + actor.removeAbility("bm_creature_knowledge_command_1") return diff --git a/scripts/expertise/expertise_bm_dexterity_training_1.py b/scripts/expertise/expertise_bm_dexterity_training_1.py index 4162179d..50a560d4 100644 --- a/scripts/expertise/expertise_bm_dexterity_training_1.py +++ b/scripts/expertise/expertise_bm_dexterity_training_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_dexterity_training_1') - - actor.addSkillMod('expertise_bm_pet_attack_speed', 50) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_dexterity_training_1') - - actor.removeSkillMod('expertise_bm_pet_attack_speed', 50) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_dexterity_training_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_dexterity_training_1") return diff --git a/scripts/expertise/expertise_bm_dexterity_training_2.py b/scripts/expertise/expertise_bm_dexterity_training_2.py index f3c66370..ab2527c4 100644 --- a/scripts/expertise/expertise_bm_dexterity_training_2.py +++ b/scripts/expertise/expertise_bm_dexterity_training_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_dexterity_training_2') - - actor.addSkillMod('expertise_bm_pet_attack_speed', 50) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_dexterity_training_2') - - actor.removeSkillMod('expertise_bm_pet_attack_speed', 50) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_dexterity_training_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_dexterity_training_2") return diff --git a/scripts/expertise/expertise_bm_dna_harvesting_1.py b/scripts/expertise/expertise_bm_dna_harvesting_1.py index ee8aad65..3f9e6c4c 100644 --- a/scripts/expertise/expertise_bm_dna_harvesting_1.py +++ b/scripts/expertise/expertise_bm_dna_harvesting_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_dna_harvesting_1') - - actor.addSkillMod('expertise_bm_dna_harvesting_1', 30) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_dna_harvesting_1') - - actor.removeSkillMod('expertise_bm_dna_harvesting_1', 30) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_dna_harvesting_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_dna_harvesting_1") return diff --git a/scripts/expertise/expertise_bm_dna_harvesting_2.py b/scripts/expertise/expertise_bm_dna_harvesting_2.py index 5c0b2044..0b5cc4fa 100644 --- a/scripts/expertise/expertise_bm_dna_harvesting_2.py +++ b/scripts/expertise/expertise_bm_dna_harvesting_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_dna_harvesting_2') - - actor.addSkillMod('expertise_bm_dna_harvesting_1', 30) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_dna_harvesting_2') - - actor.removeSkillMod('expertise_bm_dna_harvesting_1', 30) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_dna_harvesting_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_dna_harvesting_2") return diff --git a/scripts/expertise/expertise_bm_dna_harvesting_3.py b/scripts/expertise/expertise_bm_dna_harvesting_3.py index 3f287f64..2f6fcdfa 100644 --- a/scripts/expertise/expertise_bm_dna_harvesting_3.py +++ b/scripts/expertise/expertise_bm_dna_harvesting_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_dna_harvesting_3') - - actor.addSkillMod('expertise_bm_dna_harvesting_1', 40) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_dna_harvesting_3') - - actor.removeSkillMod('expertise_bm_dna_harvesting_1', 40) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_dna_harvesting_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_dna_harvesting_3") return diff --git a/scripts/expertise/expertise_bm_erratic_genius_1.py b/scripts/expertise/expertise_bm_erratic_genius_1.py index ab96d82c..d7ed15a7 100644 --- a/scripts/expertise/expertise_bm_erratic_genius_1.py +++ b/scripts/expertise/expertise_bm_erratic_genius_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_erratic_genius_1') - - actor.addSkillMod('bm_mutation_chance_increase', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_erratic_genius_1') - - actor.removeSkillMod('bm_mutation_chance_increase', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_erratic_genius_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_erratic_genius_1") return diff --git a/scripts/expertise/expertise_bm_erratic_genius_2.py b/scripts/expertise/expertise_bm_erratic_genius_2.py index bc4c75ec..6e387fb5 100644 --- a/scripts/expertise/expertise_bm_erratic_genius_2.py +++ b/scripts/expertise/expertise_bm_erratic_genius_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_erratic_genius_2') - - actor.addSkillMod('bm_mutation_chance_increase', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_erratic_genius_2') - - actor.removeSkillMod('bm_mutation_chance_increase', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_erratic_genius_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_erratic_genius_2") return diff --git a/scripts/expertise/expertise_bm_erratic_genius_3.py b/scripts/expertise/expertise_bm_erratic_genius_3.py index a0ece6c0..0ee3e98e 100644 --- a/scripts/expertise/expertise_bm_erratic_genius_3.py +++ b/scripts/expertise/expertise_bm_erratic_genius_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_erratic_genius_3') - - actor.addSkillMod('bm_mutation_chance_increase', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_erratic_genius_3') - - actor.removeSkillMod('bm_mutation_chance_increase', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_erratic_genius_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_erratic_genius_3") return diff --git a/scripts/expertise/expertise_bm_evasion_1.py b/scripts/expertise/expertise_bm_evasion_1.py index 62f8715c..aa280e26 100644 --- a/scripts/expertise/expertise_bm_evasion_1.py +++ b/scripts/expertise/expertise_bm_evasion_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_evasion_1') - - actor.addSkillMod('expertise_bm_pet_evade_chance', 5) - actor.addSkillMod('expertise_bm_pet_evade_value', 15) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_evasion_1') - - actor.removeSkillMod('expertise_bm_pet_evade_chance', 5) - actor.removeSkillMod('expertise_bm_pet_evade_value', 15) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_evasion_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_evasion_1") return diff --git a/scripts/expertise/expertise_bm_evasion_2.py b/scripts/expertise/expertise_bm_evasion_2.py index f05946e2..2b7ceac3 100644 --- a/scripts/expertise/expertise_bm_evasion_2.py +++ b/scripts/expertise/expertise_bm_evasion_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_evasion_2') - - actor.addSkillMod('expertise_bm_pet_evade_chance', 5) - actor.addSkillMod('expertise_bm_pet_evade_value', 15) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_evasion_2') - - actor.removeSkillMod('expertise_bm_pet_evade_chance', 5) - actor.removeSkillMod('expertise_bm_pet_evade_value', 15) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_evasion_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_evasion_2") return diff --git a/scripts/expertise/expertise_bm_evasion_3.py b/scripts/expertise/expertise_bm_evasion_3.py index 84f582e3..6aab14d4 100644 --- a/scripts/expertise/expertise_bm_evasion_3.py +++ b/scripts/expertise/expertise_bm_evasion_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_evasion_3') - - actor.addSkillMod('expertise_bm_pet_evade_chance', 5) - actor.addSkillMod('expertise_bm_pet_evade_value', 15) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_evasion_3') - - actor.removeSkillMod('expertise_bm_pet_evade_chance', 5) - actor.removeSkillMod('expertise_bm_pet_evade_value', 15) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_evasion_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_evasion_3") return diff --git a/scripts/expertise/expertise_bm_exceptional_nutrition_1.py b/scripts/expertise/expertise_bm_exceptional_nutrition_1.py index dce1b89b..e65b9f1b 100644 --- a/scripts/expertise/expertise_bm_exceptional_nutrition_1.py +++ b/scripts/expertise/expertise_bm_exceptional_nutrition_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_exceptional_nutrition_1') - - actor.addSkillMod('expertise_bm_pet_health', 50) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_exceptional_nutrition_1') - - actor.removeSkillMod('expertise_bm_pet_health', 50) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_exceptional_nutrition_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_exceptional_nutrition_1") return diff --git a/scripts/expertise/expertise_bm_exceptional_nutrition_2.py b/scripts/expertise/expertise_bm_exceptional_nutrition_2.py index acd0ed4b..68aa2189 100644 --- a/scripts/expertise/expertise_bm_exceptional_nutrition_2.py +++ b/scripts/expertise/expertise_bm_exceptional_nutrition_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_exceptional_nutrition_2') - - actor.addSkillMod('expertise_bm_pet_health', 50) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_exceptional_nutrition_2') - - actor.removeSkillMod('expertise_bm_pet_health', 50) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_exceptional_nutrition_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_exceptional_nutrition_2") return diff --git a/scripts/expertise/expertise_bm_fortitude_1.py b/scripts/expertise/expertise_bm_fortitude_1.py index bb3c54c6..d1f38de7 100644 --- a/scripts/expertise/expertise_bm_fortitude_1.py +++ b/scripts/expertise/expertise_bm_fortitude_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_fortitude_1') - - actor.addSkillMod('expertise_bm_pet_armor', 40) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_fortitude_1') - - actor.removeSkillMod('expertise_bm_pet_armor', 40) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_fortitude_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_fortitude_1") return diff --git a/scripts/expertise/expertise_bm_fortitude_2.py b/scripts/expertise/expertise_bm_fortitude_2.py index b04ea1e4..a2a6f76e 100644 --- a/scripts/expertise/expertise_bm_fortitude_2.py +++ b/scripts/expertise/expertise_bm_fortitude_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_fortitude_2') - - actor.addSkillMod('expertise_bm_pet_armor', 40) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_fortitude_2') - - actor.removeSkillMod('expertise_bm_pet_armor', 40) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_fortitude_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_fortitude_2") return diff --git a/scripts/expertise/expertise_bm_fortitude_3.py b/scripts/expertise/expertise_bm_fortitude_3.py index 466ebff1..899a6288 100644 --- a/scripts/expertise/expertise_bm_fortitude_3.py +++ b/scripts/expertise/expertise_bm_fortitude_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_fortitude_3') - - actor.addSkillMod('expertise_bm_pet_armor', 40) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_fortitude_3') - - actor.removeSkillMod('expertise_bm_pet_armor', 40) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_fortitude_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_fortitude_3") return diff --git a/scripts/expertise/expertise_bm_genetic_engineering_1.py b/scripts/expertise/expertise_bm_genetic_engineering_1.py index 865d8630..e4efece4 100644 --- a/scripts/expertise/expertise_bm_genetic_engineering_1.py +++ b/scripts/expertise/expertise_bm_genetic_engineering_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_genetic_engineering_1') - - actor.addSkillMod('expertise_bm_genetic_engineering', 30) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_genetic_engineering_1') - - actor.removeSkillMod('expertise_bm_genetic_engineering', 30) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_genetic_engineering_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_genetic_engineering_1") return diff --git a/scripts/expertise/expertise_bm_genetic_engineering_2.py b/scripts/expertise/expertise_bm_genetic_engineering_2.py index f25e5200..92cded50 100644 --- a/scripts/expertise/expertise_bm_genetic_engineering_2.py +++ b/scripts/expertise/expertise_bm_genetic_engineering_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_genetic_engineering_2') - - actor.addSkillMod('expertise_bm_genetic_engineering', 30) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_genetic_engineering_2') - - actor.removeSkillMod('expertise_bm_genetic_engineering', 30) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_genetic_engineering_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_genetic_engineering_2") return diff --git a/scripts/expertise/expertise_bm_genetic_engineering_3.py b/scripts/expertise/expertise_bm_genetic_engineering_3.py index dc3fd5df..a9521b48 100644 --- a/scripts/expertise/expertise_bm_genetic_engineering_3.py +++ b/scripts/expertise/expertise_bm_genetic_engineering_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_genetic_engineering_3') - - actor.addSkillMod('expertise_bm_genetic_engineering', 30) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_genetic_engineering_3') - - actor.removeSkillMod('expertise_bm_genetic_engineering', 30) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_genetic_engineering_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_genetic_engineering_3") return diff --git a/scripts/expertise/expertise_bm_genetic_engineering_4.py b/scripts/expertise/expertise_bm_genetic_engineering_4.py index 283f05f2..22c76382 100644 --- a/scripts/expertise/expertise_bm_genetic_engineering_4.py +++ b/scripts/expertise/expertise_bm_genetic_engineering_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_genetic_engineering_4') - - actor.addSkillMod('expertise_bm_genetic_engineering', 30) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_genetic_engineering_4') - - actor.removeSkillMod('expertise_bm_genetic_engineering', 30) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_genetic_engineering_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_genetic_engineering_4") return diff --git a/scripts/expertise/expertise_bm_improved_healing_1.py b/scripts/expertise/expertise_bm_improved_healing_1.py index 5f173fcb..9ccb8bbf 100644 --- a/scripts/expertise/expertise_bm_improved_healing_1.py +++ b/scripts/expertise/expertise_bm_improved_healing_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_improved_healing_1') - - actor.addSkillMod('expertise_bm_improved_pet_heal', 20) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_improved_healing_1') - - actor.removeSkillMod('expertise_bm_improved_pet_heal', 20) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_improved_healing_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_improved_healing_1") return diff --git a/scripts/expertise/expertise_bm_improved_healing_2.py b/scripts/expertise/expertise_bm_improved_healing_2.py index d93a6af1..3168a225 100644 --- a/scripts/expertise/expertise_bm_improved_healing_2.py +++ b/scripts/expertise/expertise_bm_improved_healing_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_improved_healing_2') - - actor.addSkillMod('expertise_bm_improved_pet_heal', 20) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_improved_healing_2') - - actor.removeSkillMod('expertise_bm_improved_pet_heal', 20) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_improved_healing_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_improved_healing_2") return diff --git a/scripts/expertise/expertise_bm_improved_healing_3.py b/scripts/expertise/expertise_bm_improved_healing_3.py index 3a61f218..c8cd2102 100644 --- a/scripts/expertise/expertise_bm_improved_healing_3.py +++ b/scripts/expertise/expertise_bm_improved_healing_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_improved_healing_3') - - actor.addSkillMod('expertise_bm_improved_pet_heal', 20) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_improved_healing_3') - - actor.removeSkillMod('expertise_bm_improved_pet_heal', 20) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_improved_healing_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_improved_healing_3") return diff --git a/scripts/expertise/expertise_bm_incubation_base_1.py b/scripts/expertise/expertise_bm_incubation_base_1.py index 9b7a89bc..94b0399b 100644 --- a/scripts/expertise/expertise_bm_incubation_base_1.py +++ b/scripts/expertise/expertise_bm_incubation_base_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_incubation_base_1') - - actor.addSkillMod('expertise_bm_base_mod', 100) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_incubation_base_1') - - actor.removeSkillMod('expertise_bm_base_mod', 100) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('bm_collect_dna') - + actor.addAbility("bm_collect_dna") return def removeAbilities(core, actor, player): - - actor.removeAbility('bm_collect_dna') - + actor.removeAbility("bm_collect_dna") return diff --git a/scripts/expertise/expertise_bm_incubation_mod_1.py b/scripts/expertise/expertise_bm_incubation_mod_1.py index 5dcf4b16..b99b1518 100644 --- a/scripts/expertise/expertise_bm_incubation_mod_1.py +++ b/scripts/expertise/expertise_bm_incubation_mod_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_incubation_mod_1') - - actor.addSkillMod('expertise_bm_incubation_quality', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_incubation_mod_1') - - actor.removeSkillMod('expertise_bm_incubation_quality', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_incubation_mod_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_incubation_mod_1") return diff --git a/scripts/expertise/expertise_bm_incubation_mod_2.py b/scripts/expertise/expertise_bm_incubation_mod_2.py index 022fdeff..167f2676 100644 --- a/scripts/expertise/expertise_bm_incubation_mod_2.py +++ b/scripts/expertise/expertise_bm_incubation_mod_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_incubation_mod_2') - - actor.addSkillMod('expertise_bm_incubation_quality', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_incubation_mod_2') - - actor.removeSkillMod('expertise_bm_incubation_quality', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_incubation_mod_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_incubation_mod_2") return diff --git a/scripts/expertise/expertise_bm_incubation_mod_3.py b/scripts/expertise/expertise_bm_incubation_mod_3.py index 8460e39e..e90a66ee 100644 --- a/scripts/expertise/expertise_bm_incubation_mod_3.py +++ b/scripts/expertise/expertise_bm_incubation_mod_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_incubation_mod_3') - - actor.addSkillMod('expertise_bm_incubation_quality', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_incubation_mod_3') - - actor.removeSkillMod('expertise_bm_incubation_quality', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_incubation_mod_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_incubation_mod_3") return diff --git a/scripts/expertise/expertise_bm_loyalty_mod_1.py b/scripts/expertise/expertise_bm_loyalty_mod_1.py index 628987a3..e697ccab 100644 --- a/scripts/expertise/expertise_bm_loyalty_mod_1.py +++ b/scripts/expertise/expertise_bm_loyalty_mod_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_loyalty_mod_1') - - actor.addSkillMod('expertise_bm_pet_happiness', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_loyalty_mod_1') - - actor.removeSkillMod('expertise_bm_pet_happiness', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_loyalty_mod_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_loyalty_mod_1") return diff --git a/scripts/expertise/expertise_bm_loyalty_mod_2.py b/scripts/expertise/expertise_bm_loyalty_mod_2.py index f7c57622..94e893a7 100644 --- a/scripts/expertise/expertise_bm_loyalty_mod_2.py +++ b/scripts/expertise/expertise_bm_loyalty_mod_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_loyalty_mod_2') - - actor.addSkillMod('expertise_bm_pet_happiness', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_loyalty_mod_2') - - actor.removeSkillMod('expertise_bm_pet_happiness', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_loyalty_mod_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_loyalty_mod_2") return diff --git a/scripts/expertise/expertise_bm_loyalty_mod_3.py b/scripts/expertise/expertise_bm_loyalty_mod_3.py index 255e4b86..a70c5c6b 100644 --- a/scripts/expertise/expertise_bm_loyalty_mod_3.py +++ b/scripts/expertise/expertise_bm_loyalty_mod_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_loyalty_mod_3') - - actor.addSkillMod('expertise_bm_pet_happiness', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_loyalty_mod_3') - - actor.removeSkillMod('expertise_bm_pet_happiness', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_loyalty_mod_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_loyalty_mod_3") return diff --git a/scripts/expertise/expertise_bm_mending_1.py b/scripts/expertise/expertise_bm_mending_1.py index f659d061..19f68bf5 100644 --- a/scripts/expertise/expertise_bm_mending_1.py +++ b/scripts/expertise/expertise_bm_mending_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_mending_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_mending_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('bm_mend_pet_1') - + actor.addAbility("bm_mend_pet_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('bm_mend_pet_1') - + actor.removeAbility("bm_mend_pet_1") return diff --git a/scripts/expertise/expertise_bm_metagame_mod_1.py b/scripts/expertise/expertise_bm_metagame_mod_1.py index ad8053c1..310506d4 100644 --- a/scripts/expertise/expertise_bm_metagame_mod_1.py +++ b/scripts/expertise/expertise_bm_metagame_mod_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_metagame_mod_1') - - actor.addSkillMod('expertise_bm_incubation_time', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_metagame_mod_1') - - actor.removeSkillMod('expertise_bm_incubation_time', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_metagame_mod_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_metagame_mod_1") return diff --git a/scripts/expertise/expertise_bm_metagame_mod_2.py b/scripts/expertise/expertise_bm_metagame_mod_2.py index af8ff1d4..e1138649 100644 --- a/scripts/expertise/expertise_bm_metagame_mod_2.py +++ b/scripts/expertise/expertise_bm_metagame_mod_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_metagame_mod_2') - - actor.addSkillMod('expertise_bm_incubation_time', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_metagame_mod_2') - - actor.removeSkillMod('expertise_bm_incubation_time', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_metagame_mod_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_metagame_mod_2") return diff --git a/scripts/expertise/expertise_bm_metagame_mod_3.py b/scripts/expertise/expertise_bm_metagame_mod_3.py index 70409e9c..7b6e0112 100644 --- a/scripts/expertise/expertise_bm_metagame_mod_3.py +++ b/scripts/expertise/expertise_bm_metagame_mod_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_metagame_mod_3') - - actor.addSkillMod('expertise_bm_incubation_time', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_metagame_mod_3') - - actor.removeSkillMod('expertise_bm_incubation_time', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_metagame_mod_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_metagame_mod_3") return diff --git a/scripts/expertise/expertise_bm_metagame_mod_4.py b/scripts/expertise/expertise_bm_metagame_mod_4.py index 1e31b545..ffb8090a 100644 --- a/scripts/expertise/expertise_bm_metagame_mod_4.py +++ b/scripts/expertise/expertise_bm_metagame_mod_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_metagame_mod_4') - - actor.addSkillMod('expertise_bm_incubation_time', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_metagame_mod_4') - - actor.removeSkillMod('expertise_bm_incubation_time', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_metagame_mod_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_metagame_mod_4") return diff --git a/scripts/expertise/expertise_bm_pet_dodge_1.py b/scripts/expertise/expertise_bm_pet_dodge_1.py index 17868349..fc36117c 100644 --- a/scripts/expertise/expertise_bm_pet_dodge_1.py +++ b/scripts/expertise/expertise_bm_pet_dodge_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_pet_dodge_1') - - actor.addSkillMod('expertise_pet_dodge', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_pet_dodge_1') - - actor.removeSkillMod('expertise_pet_dodge', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_pet_dodge_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_pet_dodge_1") return diff --git a/scripts/expertise/expertise_bm_pet_dodge_2.py b/scripts/expertise/expertise_bm_pet_dodge_2.py index 9a6766ad..2341888c 100644 --- a/scripts/expertise/expertise_bm_pet_dodge_2.py +++ b/scripts/expertise/expertise_bm_pet_dodge_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_pet_dodge_2') - - actor.addSkillMod('expertise_pet_dodge', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_pet_dodge_2') - - actor.removeSkillMod('expertise_pet_dodge', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_pet_dodge_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_pet_dodge_2") return diff --git a/scripts/expertise/expertise_bm_pet_dodge_3.py b/scripts/expertise/expertise_bm_pet_dodge_3.py index 6166d92b..c9a97d17 100644 --- a/scripts/expertise/expertise_bm_pet_dodge_3.py +++ b/scripts/expertise/expertise_bm_pet_dodge_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_pet_dodge_3') - - actor.addSkillMod('expertise_pet_dodge', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_pet_dodge_3') - - actor.removeSkillMod('expertise_pet_dodge', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_pet_dodge_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_pet_dodge_3") return diff --git a/scripts/expertise/expertise_bm_pet_recovery_1.py b/scripts/expertise/expertise_bm_pet_recovery_1.py index 5ecf5f40..1a956cf2 100644 --- a/scripts/expertise/expertise_bm_pet_recovery_1.py +++ b/scripts/expertise/expertise_bm_pet_recovery_1.py @@ -1,46 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_pet_recovery_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_pet_recovery_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_pet_recovery_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_pet_recovery_1") return diff --git a/scripts/expertise/expertise_bm_pet_recovery_2.py b/scripts/expertise/expertise_bm_pet_recovery_2.py index ddbf4dae..41c09b07 100644 --- a/scripts/expertise/expertise_bm_pet_recovery_2.py +++ b/scripts/expertise/expertise_bm_pet_recovery_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_pet_recovery_2') - - actor.addSkillMod('expertise_bm_pet_revive_time', 5) - actor.addSkillMod('expertise_bm_pet_recovery', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_pet_recovery_2') - - actor.removeSkillMod('expertise_bm_pet_revive_time', 5) - actor.removeSkillMod('expertise_bm_pet_recovery', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_pet_recovery_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_pet_recovery_2") return diff --git a/scripts/expertise/expertise_bm_pet_recovery_3.py b/scripts/expertise/expertise_bm_pet_recovery_3.py index 9be05560..36413c3c 100644 --- a/scripts/expertise/expertise_bm_pet_recovery_3.py +++ b/scripts/expertise/expertise_bm_pet_recovery_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_pet_recovery_3') - - actor.addSkillMod('expertise_bm_pet_revive_time', 5) - actor.addSkillMod('expertise_bm_pet_recovery', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_pet_recovery_3') - - actor.removeSkillMod('expertise_bm_pet_revive_time', 5) - actor.removeSkillMod('expertise_bm_pet_recovery', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_pet_recovery_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_pet_recovery_3") return diff --git a/scripts/expertise/expertise_bm_savagery_1.py b/scripts/expertise/expertise_bm_savagery_1.py index 7315df92..27f21562 100644 --- a/scripts/expertise/expertise_bm_savagery_1.py +++ b/scripts/expertise/expertise_bm_savagery_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_savagery_1') - - actor.addSkillMod('expertise_bm_pet_damage', 30) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_savagery_1') - - actor.removeSkillMod('expertise_bm_pet_damage', 30) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_savagery_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_savagery_1") return diff --git a/scripts/expertise/expertise_bm_savagery_2.py b/scripts/expertise/expertise_bm_savagery_2.py index 31e83042..09c606de 100644 --- a/scripts/expertise/expertise_bm_savagery_2.py +++ b/scripts/expertise/expertise_bm_savagery_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_savagery_2') - - actor.addSkillMod('expertise_bm_pet_damage', 30) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_savagery_2') - - actor.removeSkillMod('expertise_bm_pet_damage', 30) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_savagery_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_savagery_2") return diff --git a/scripts/expertise/expertise_bm_savagery_3.py b/scripts/expertise/expertise_bm_savagery_3.py index c5619d8d..775c9484 100644 --- a/scripts/expertise/expertise_bm_savagery_3.py +++ b/scripts/expertise/expertise_bm_savagery_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_savagery_3') - - actor.addSkillMod('expertise_bm_pet_damage', 40) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_savagery_3') - - actor.removeSkillMod('expertise_bm_pet_damage', 40) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_savagery_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_savagery_3") return diff --git a/scripts/expertise/expertise_bm_soothing_comfort_1.py b/scripts/expertise/expertise_bm_soothing_comfort_1.py index 543104f4..53dff95c 100644 --- a/scripts/expertise/expertise_bm_soothing_comfort_1.py +++ b/scripts/expertise/expertise_bm_soothing_comfort_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_soothing_comfort_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_soothing_comfort_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('bm_soothing_comfort_1') - + actor.addAbility("bm_soothing_comfort_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('bm_soothing_comfort_1') - + actor.removeAbility("bm_soothing_comfort_1") return diff --git a/scripts/expertise/expertise_bm_specialized_supplements_1.py b/scripts/expertise/expertise_bm_specialized_supplements_1.py index 4506f29e..0ea96000 100644 --- a/scripts/expertise/expertise_bm_specialized_supplements_1.py +++ b/scripts/expertise/expertise_bm_specialized_supplements_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.addSkill('expertise_bm_specialized_supplements_1') - - actor.addSkillMod('expertise_bm_pet_regen', 100) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'all_1a': - return - - actor.removeSkill('expertise_bm_specialized_supplements_1') - - actor.removeSkillMod('expertise_bm_pet_regen', 100) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_bm_specialized_supplements_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_bm_specialized_supplements_1") return diff --git a/scripts/expertise/expertise_co_angled_shrapnel_1.py b/scripts/expertise/expertise_co_angled_shrapnel_1.py index 0b649f92..c2e3f8ce 100644 --- a/scripts/expertise/expertise_co_angled_shrapnel_1.py +++ b/scripts/expertise/expertise_co_angled_shrapnel_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_angled_shrapnel_1') - - actor.addSkillMod('expertise_area_size_line_co_remote_detonator', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_angled_shrapnel_1') - - actor.removeSkillMod('expertise_area_size_line_co_remote_detonator', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_angled_shrapnel_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_angled_shrapnel_1") return diff --git a/scripts/expertise/expertise_co_angled_shrapnel_2.py b/scripts/expertise/expertise_co_angled_shrapnel_2.py index a8801a55..48f5c250 100644 --- a/scripts/expertise/expertise_co_angled_shrapnel_2.py +++ b/scripts/expertise/expertise_co_angled_shrapnel_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_angled_shrapnel_2') - - actor.addSkillMod('expertise_area_size_line_co_remote_detonator', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_angled_shrapnel_2') - - actor.removeSkillMod('expertise_area_size_line_co_remote_detonator', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_angled_shrapnel_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_angled_shrapnel_2") return diff --git a/scripts/expertise/expertise_co_armor_cracker_1.py b/scripts/expertise/expertise_co_armor_cracker_1.py index fe7606f0..5843c904 100644 --- a/scripts/expertise/expertise_co_armor_cracker_1.py +++ b/scripts/expertise/expertise_co_armor_cracker_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_armor_cracker_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_armor_cracker_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('co_armor_cracker') - + actor.addAbility("co_armor_cracker") return def removeAbilities(core, actor, player): - - actor.removeAbility('co_armor_cracker') - + actor.removeAbility("co_armor_cracker") return diff --git a/scripts/expertise/expertise_co_base_of_operations_1.py b/scripts/expertise/expertise_co_base_of_operations_1.py index 34f5548a..1e406802 100644 --- a/scripts/expertise/expertise_co_base_of_operations_1.py +++ b/scripts/expertise/expertise_co_base_of_operations_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_base_of_operations_1') - - actor.addSkillMod('expertise_co_pos_secured_line_armor', 1000) - actor.addSkillMod('expertise_co_pos_secured_line_boo_critical', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_base_of_operations_1') - - actor.removeSkillMod('expertise_co_pos_secured_line_armor', 1000) - actor.removeSkillMod('expertise_co_pos_secured_line_boo_critical', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_base_of_operations_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_base_of_operations_1") return diff --git a/scripts/expertise/expertise_co_blast_radius_1.py b/scripts/expertise/expertise_co_blast_radius_1.py index f9c87cc7..1dab9e96 100644 --- a/scripts/expertise/expertise_co_blast_radius_1.py +++ b/scripts/expertise/expertise_co_blast_radius_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_blast_radius_1') - - actor.addSkillMod('expertise_area_size_line_co_grenade', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_blast_radius_1') - - actor.removeSkillMod('expertise_area_size_line_co_grenade', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_blast_radius_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_blast_radius_1") return diff --git a/scripts/expertise/expertise_co_blast_radius_2.py b/scripts/expertise/expertise_co_blast_radius_2.py index c640ac02..3cc739c8 100644 --- a/scripts/expertise/expertise_co_blast_radius_2.py +++ b/scripts/expertise/expertise_co_blast_radius_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_blast_radius_2') - - actor.addSkillMod('expertise_area_size_line_co_grenade', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_blast_radius_2') - - actor.removeSkillMod('expertise_area_size_line_co_grenade', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_blast_radius_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_blast_radius_2") return diff --git a/scripts/expertise/expertise_co_blast_radius_3.py b/scripts/expertise/expertise_co_blast_radius_3.py index d4263326..d87f0a4b 100644 --- a/scripts/expertise/expertise_co_blast_radius_3.py +++ b/scripts/expertise/expertise_co_blast_radius_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_blast_radius_3') - - actor.addSkillMod('expertise_area_size_line_co_grenade', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_blast_radius_3') - - actor.removeSkillMod('expertise_area_size_line_co_grenade', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_blast_radius_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_blast_radius_3") return diff --git a/scripts/expertise/expertise_co_blast_radius_4.py b/scripts/expertise/expertise_co_blast_radius_4.py index 64490261..99d44c0c 100644 --- a/scripts/expertise/expertise_co_blast_radius_4.py +++ b/scripts/expertise/expertise_co_blast_radius_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_blast_radius_4') - - actor.addSkillMod('expertise_area_size_line_co_grenade', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_blast_radius_4') - - actor.removeSkillMod('expertise_area_size_line_co_grenade', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_blast_radius_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_blast_radius_4") return diff --git a/scripts/expertise/expertise_co_blast_resistance_1.py b/scripts/expertise/expertise_co_blast_resistance_1.py index 8aff3074..d4b76bda 100644 --- a/scripts/expertise/expertise_co_blast_resistance_1.py +++ b/scripts/expertise/expertise_co_blast_resistance_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_blast_resistance_1') - - actor.addSkillMod('area_damage_resist_full_percentage', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_blast_resistance_1') - - actor.removeSkillMod('area_damage_resist_full_percentage', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_blast_resistance_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_blast_resistance_1") return diff --git a/scripts/expertise/expertise_co_blast_resistance_2.py b/scripts/expertise/expertise_co_blast_resistance_2.py index 7efcf286..6596c815 100644 --- a/scripts/expertise/expertise_co_blast_resistance_2.py +++ b/scripts/expertise/expertise_co_blast_resistance_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_blast_resistance_2') - - actor.addSkillMod('area_damage_resist_full_percentage', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_blast_resistance_2') - - actor.removeSkillMod('area_damage_resist_full_percentage', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_blast_resistance_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_blast_resistance_2") return diff --git a/scripts/expertise/expertise_co_blast_resistance_3.py b/scripts/expertise/expertise_co_blast_resistance_3.py index 57b839ca..8a5b7bc9 100644 --- a/scripts/expertise/expertise_co_blast_resistance_3.py +++ b/scripts/expertise/expertise_co_blast_resistance_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_blast_resistance_3') - - actor.addSkillMod('area_damage_resist_full_percentage', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_blast_resistance_3') - - actor.removeSkillMod('area_damage_resist_full_percentage', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_blast_resistance_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_blast_resistance_3") return diff --git a/scripts/expertise/expertise_co_blast_resistance_4.py b/scripts/expertise/expertise_co_blast_resistance_4.py index 08838e5a..c046b643 100644 --- a/scripts/expertise/expertise_co_blast_resistance_4.py +++ b/scripts/expertise/expertise_co_blast_resistance_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_blast_resistance_4') - - actor.addSkillMod('area_damage_resist_full_percentage', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_blast_resistance_4') - - actor.removeSkillMod('area_damage_resist_full_percentage', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_blast_resistance_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_blast_resistance_4") return diff --git a/scripts/expertise/expertise_co_blow_em_away_1.py b/scripts/expertise/expertise_co_blow_em_away_1.py index 829d7e74..3880d17d 100644 --- a/scripts/expertise/expertise_co_blow_em_away_1.py +++ b/scripts/expertise/expertise_co_blow_em_away_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_blow_em_away_1') - - actor.addSkillMod('expertise_co_cluster_bomblet', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_blow_em_away_1') - - actor.removeSkillMod('expertise_co_cluster_bomblet', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_blow_em_away_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_blow_em_away_1") return diff --git a/scripts/expertise/expertise_co_blow_em_away_2.py b/scripts/expertise/expertise_co_blow_em_away_2.py index 59dc0e4e..11ca839c 100644 --- a/scripts/expertise/expertise_co_blow_em_away_2.py +++ b/scripts/expertise/expertise_co_blow_em_away_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_blow_em_away_2') - - actor.addSkillMod('expertise_co_cluster_bomblet', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_blow_em_away_2') - - actor.removeSkillMod('expertise_co_cluster_bomblet', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_blow_em_away_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_blow_em_away_2") return diff --git a/scripts/expertise/expertise_co_burst_fire_1.py b/scripts/expertise/expertise_co_burst_fire_1.py index f627677e..0522e875 100644 --- a/scripts/expertise/expertise_co_burst_fire_1.py +++ b/scripts/expertise/expertise_co_burst_fire_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_burst_fire_1') - - actor.addSkillMod('expertise_co_pos_secured_line_burst_fire_proc', 10) - actor.addSkillMod('expertise_co_pos_secured_line_burst_fire_devastation_bonus', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_burst_fire_1') - - actor.removeSkillMod('expertise_co_pos_secured_line_burst_fire_proc', 10) - actor.removeSkillMod('expertise_co_pos_secured_line_burst_fire_devastation_bonus', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_burst_fire_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_burst_fire_1") return diff --git a/scripts/expertise/expertise_co_burst_fire_2.py b/scripts/expertise/expertise_co_burst_fire_2.py index ac874237..952ff386 100644 --- a/scripts/expertise/expertise_co_burst_fire_2.py +++ b/scripts/expertise/expertise_co_burst_fire_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_burst_fire_2') - - actor.addSkillMod('expertise_co_pos_secured_line_burst_fire_proc', 10) - actor.addSkillMod('expertise_co_pos_secured_line_burst_fire_devastation_bonus', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_burst_fire_2') - - actor.removeSkillMod('expertise_co_pos_secured_line_burst_fire_proc', 10) - actor.removeSkillMod('expertise_co_pos_secured_line_burst_fire_devastation_bonus', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_burst_fire_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_burst_fire_2") return diff --git a/scripts/expertise/expertise_co_cluster_bomb.py b/scripts/expertise/expertise_co_cluster_bomb.py index 410e0121..5e7a8f05 100644 --- a/scripts/expertise/expertise_co_cluster_bomb.py +++ b/scripts/expertise/expertise_co_cluster_bomb.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_cluster_bomb') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_cluster_bomb') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('co_cluster_bomb') - + actor.addAbility("co_cluster_bomb") return def removeAbilities(core, actor, player): - - actor.removeAbility('co_cluster_bomb') - + actor.removeAbility("co_cluster_bomb") return diff --git a/scripts/expertise/expertise_co_deflective_armor_1.py b/scripts/expertise/expertise_co_deflective_armor_1.py index 540653a9..52b523c5 100644 --- a/scripts/expertise/expertise_co_deflective_armor_1.py +++ b/scripts/expertise/expertise_co_deflective_armor_1.py @@ -1,47 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_deflective_armor_1') - - actor.addSkillMod('damage_decrease_percentage', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_deflective_armor_1') - - actor.removeSkillMod('damage_decrease_percentage', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - + actor.addAbility("expertise_co_deflective_armor_1") return - + def removeAbilities(core, actor, player): - + actor.removeAbility("expertise_co_deflective_armor_1") return - \ No newline at end of file diff --git a/scripts/expertise/expertise_co_deflective_armor_2.py b/scripts/expertise/expertise_co_deflective_armor_2.py index 0204a191..2ece0722 100644 --- a/scripts/expertise/expertise_co_deflective_armor_2.py +++ b/scripts/expertise/expertise_co_deflective_armor_2.py @@ -1,47 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_deflective_armor_2') - - actor.addSkillMod('damage_decrease_percentage', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_deflective_armor_2') - - actor.removeSkillMod('damage_decrease_percentage', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - + actor.addAbility("expertise_co_deflective_armor_2") return - + def removeAbilities(core, actor, player): - + actor.removeAbility("expertise_co_deflective_armor_2") return - \ No newline at end of file diff --git a/scripts/expertise/expertise_co_deflective_armor_3.py b/scripts/expertise/expertise_co_deflective_armor_3.py index 65870a67..245175f4 100644 --- a/scripts/expertise/expertise_co_deflective_armor_3.py +++ b/scripts/expertise/expertise_co_deflective_armor_3.py @@ -1,47 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_deflective_armor_3') - - actor.addSkillMod('damage_decrease_percentage', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_deflective_armor_3') - - actor.removeSkillMod('damage_decrease_percentage', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - + actor.addAbility("expertise_co_deflective_armor_3") return - + def removeAbilities(core, actor, player): - + actor.removeAbility("expertise_co_deflective_armor_3") return - \ No newline at end of file diff --git a/scripts/expertise/expertise_co_deflective_armor_4.py b/scripts/expertise/expertise_co_deflective_armor_4.py index 94d853ef..e3e5d15f 100644 --- a/scripts/expertise/expertise_co_deflective_armor_4.py +++ b/scripts/expertise/expertise_co_deflective_armor_4.py @@ -1,47 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_deflective_armor_4') - - actor.addSkillMod('damage_decrease_percentage', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_deflective_armor_4') - - actor.removeSkillMod('damage_decrease_percentage', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - + actor.addAbility("expertise_co_deflective_armor_4") return - + def removeAbilities(core, actor, player): - + actor.removeAbility("expertise_co_deflective_armor_4") return - \ No newline at end of file diff --git a/scripts/expertise/expertise_co_diagnostic_armor_1.py b/scripts/expertise/expertise_co_diagnostic_armor_1.py index 5eaac3ad..974a3234 100644 --- a/scripts/expertise/expertise_co_diagnostic_armor_1.py +++ b/scripts/expertise/expertise_co_diagnostic_armor_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_diagnostic_armor_1') - - actor.addSkillMod('expertise_dot_absorption_all', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_diagnostic_armor_1') - - actor.removeSkillMod('expertise_dot_absorption_all', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_diagnostic_armor_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_diagnostic_armor_1") return diff --git a/scripts/expertise/expertise_co_enhanced_constitution_1.py b/scripts/expertise/expertise_co_enhanced_constitution_1.py index 8b70e62a..f2320188 100644 --- a/scripts/expertise/expertise_co_enhanced_constitution_1.py +++ b/scripts/expertise/expertise_co_enhanced_constitution_1.py @@ -1,47 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_enhanced_constitution_1') - - actor.addSkillMod('constitution_modified', 50) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_enhanced_constitution_1') - - actor.removeSkillMod('constitution_modified', 50) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - + actor.addAbility("expertise_co_enhanced_constitution_1") return def removeAbilities(core, actor, player): - + actor.removeAbility("expertise_co_enhanced_constitution_1") return - diff --git a/scripts/expertise/expertise_co_enhanced_constitution_2.py b/scripts/expertise/expertise_co_enhanced_constitution_2.py index e6933f70..4afc434d 100644 --- a/scripts/expertise/expertise_co_enhanced_constitution_2.py +++ b/scripts/expertise/expertise_co_enhanced_constitution_2.py @@ -1,47 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_enhanced_constitution_2') - - actor.addSkillMod('constitution_modified', 50) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_enhanced_constitution_2') - - actor.removeSkillMod('constitution_modified', 50) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - + actor.addAbility("expertise_co_enhanced_constitution_2") return def removeAbilities(core, actor, player): - + actor.removeAbility("expertise_co_enhanced_constitution_2") return - diff --git a/scripts/expertise/expertise_co_enhanced_fuel_cans_1.py b/scripts/expertise/expertise_co_enhanced_fuel_cans_1.py index a05bf5ea..58cfa70c 100644 --- a/scripts/expertise/expertise_co_enhanced_fuel_cans_1.py +++ b/scripts/expertise/expertise_co_enhanced_fuel_cans_1.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_enhanced_fuel_cans_1') - - actor.addSkillMod('expertise_action_weapon_12', 5) - actor.addSkillMod('expertise_action_weapon_13', 5) - actor.addSkillMod('commando_passive_dot', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_enhanced_fuel_cans_1') - - actor.removeSkillMod('expertise_action_weapon_12', 5) - actor.removeSkillMod('expertise_action_weapon_13', 5) - actor.removeSkillMod('commando_passive_dot', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_enhanced_fuel_cans_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_enhanced_fuel_cans_1") return diff --git a/scripts/expertise/expertise_co_enhanced_fuel_cans_2.py b/scripts/expertise/expertise_co_enhanced_fuel_cans_2.py index 1a4a142d..f4449372 100644 --- a/scripts/expertise/expertise_co_enhanced_fuel_cans_2.py +++ b/scripts/expertise/expertise_co_enhanced_fuel_cans_2.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_enhanced_fuel_cans_2') - - actor.addSkillMod('expertise_action_weapon_12', 5) - actor.addSkillMod('expertise_action_weapon_13', 5) - actor.addSkillMod('commando_passive_dot', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_enhanced_fuel_cans_2') - - actor.removeSkillMod('expertise_action_weapon_12', 5) - actor.removeSkillMod('expertise_action_weapon_13', 5) - actor.removeSkillMod('commando_passive_dot', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_enhanced_fuel_cans_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_enhanced_fuel_cans_2") return diff --git a/scripts/expertise/expertise_co_enhanced_fuel_cans_3.py b/scripts/expertise/expertise_co_enhanced_fuel_cans_3.py index 9b8ca94a..9b4f7cd1 100644 --- a/scripts/expertise/expertise_co_enhanced_fuel_cans_3.py +++ b/scripts/expertise/expertise_co_enhanced_fuel_cans_3.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_enhanced_fuel_cans_3') - - actor.addSkillMod('expertise_action_weapon_12', 5) - actor.addSkillMod('expertise_action_weapon_13', 5) - actor.addSkillMod('commando_passive_dot', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_enhanced_fuel_cans_3') - - actor.removeSkillMod('expertise_action_weapon_12', 5) - actor.removeSkillMod('expertise_action_weapon_13', 5) - actor.removeSkillMod('commando_passive_dot', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_enhanced_fuel_cans_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_enhanced_fuel_cans_3") return diff --git a/scripts/expertise/expertise_co_enhanced_fuel_cans_4.py b/scripts/expertise/expertise_co_enhanced_fuel_cans_4.py index df5fd47f..ab78cd77 100644 --- a/scripts/expertise/expertise_co_enhanced_fuel_cans_4.py +++ b/scripts/expertise/expertise_co_enhanced_fuel_cans_4.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_enhanced_fuel_cans_4') - - actor.addSkillMod('expertise_action_weapon_12', 5) - actor.addSkillMod('expertise_action_weapon_13', 5) - actor.addSkillMod('commando_passive_dot', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_enhanced_fuel_cans_4') - - actor.removeSkillMod('expertise_action_weapon_12', 5) - actor.removeSkillMod('expertise_action_weapon_13', 5) - actor.removeSkillMod('commando_passive_dot', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_enhanced_fuel_cans_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_enhanced_fuel_cans_4") return diff --git a/scripts/expertise/expertise_co_enhanced_precision_1.py b/scripts/expertise/expertise_co_enhanced_precision_1.py index 8d018a05..250e6d10 100644 --- a/scripts/expertise/expertise_co_enhanced_precision_1.py +++ b/scripts/expertise/expertise_co_enhanced_precision_1.py @@ -1,47 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_enhanced_precision_1') - - actor.addSkillMod('precision_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_enhanced_precision_1') - - actor.removeSkillMod('precision_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - + actor.addAbility("expertise_co_enhanced_precision_1") return def removeAbilities(core, actor, player): - + actor.removeAbility("expertise_co_enhanced_precision_1") return - diff --git a/scripts/expertise/expertise_co_enhanced_precision_2.py b/scripts/expertise/expertise_co_enhanced_precision_2.py index d8a8f30b..7d965d8c 100644 --- a/scripts/expertise/expertise_co_enhanced_precision_2.py +++ b/scripts/expertise/expertise_co_enhanced_precision_2.py @@ -1,46 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_enhanced_precision_2') - - actor.addSkillMod('precision_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_enhanced_precision_2') - - actor.removeSkillMod('precision_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - + actor.addAbility("expertise_co_enhanced_precision_2") return def removeAbilities(core, actor, player): - + actor.removeAbility("expertise_co_enhanced_precision_2") return diff --git a/scripts/expertise/expertise_co_enhanced_stamina_1.py b/scripts/expertise/expertise_co_enhanced_stamina_1.py index 4de92218..cbdb7744 100644 --- a/scripts/expertise/expertise_co_enhanced_stamina_1.py +++ b/scripts/expertise/expertise_co_enhanced_stamina_1.py @@ -1,47 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_enhanced_stamina_1') - - actor.addSkillMod('stamina_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_enhanced_stamina_1') - - actor.removeSkillMod('stamina_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - + actor.addAbility("expertise_co_enhanced_stamina_1") return def removeAbilities(core, actor, player): - + actor.removeAbility("expertise_co_enhanced_stamina_1") return - diff --git a/scripts/expertise/expertise_co_enhanced_stamina_2.py b/scripts/expertise/expertise_co_enhanced_stamina_2.py index 7ab0b25a..5afc8f93 100644 --- a/scripts/expertise/expertise_co_enhanced_stamina_2.py +++ b/scripts/expertise/expertise_co_enhanced_stamina_2.py @@ -1,46 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_enhanced_stamina_2') - - actor.addSkillMod('stamina_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_enhanced_stamina_2') - - actor.removeSkillMod('stamina_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - + actor.addAbility("expertise_co_enhanced_stamina_2") return def removeAbilities(core, actor, player): - + actor.removeAbility("expertise_co_enhanced_stamina_2") return diff --git a/scripts/expertise/expertise_co_flashbang_1.py b/scripts/expertise/expertise_co_flashbang_1.py index 5408fa91..74b642c1 100644 --- a/scripts/expertise/expertise_co_flashbang_1.py +++ b/scripts/expertise/expertise_co_flashbang_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_flashbang_1') - - actor.addSkillMod('expertise_co_flash_bang', 50) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_flashbang_1') - - actor.removeSkillMod('expertise_co_flash_bang', 50) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_flashbang_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_flashbang_1") return diff --git a/scripts/expertise/expertise_co_flashbang_2.py b/scripts/expertise/expertise_co_flashbang_2.py index 806107a1..bad49ff3 100644 --- a/scripts/expertise/expertise_co_flashbang_2.py +++ b/scripts/expertise/expertise_co_flashbang_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_flashbang_2') - - actor.addSkillMod('expertise_co_flash_bang', 50) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_flashbang_2') - - actor.removeSkillMod('expertise_co_flash_bang', 50) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_flashbang_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_flashbang_2") return diff --git a/scripts/expertise/expertise_co_focus_beam_1.py b/scripts/expertise/expertise_co_focus_beam_1.py index b74caea5..0dec8d0a 100644 --- a/scripts/expertise/expertise_co_focus_beam_1.py +++ b/scripts/expertise/expertise_co_focus_beam_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_focus_beam_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_focus_beam_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('co_hw_dm_1') - + actor.addAbility("co_hw_dm_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('co_hw_dm_1') - + actor.removeAbility("co_hw_dm_1") return diff --git a/scripts/expertise/expertise_co_general_enhanced_luck_1.py b/scripts/expertise/expertise_co_general_enhanced_luck_1.py index 6f6319ab..8f303625 100644 --- a/scripts/expertise/expertise_co_general_enhanced_luck_1.py +++ b/scripts/expertise/expertise_co_general_enhanced_luck_1.py @@ -1,47 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_general_enhanced_luck_1') - - actor.addSkillMod('luck_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_general_enhanced_luck_1') - - actor.removeSkillMod('luck_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - + actor.addAbility("expertise_co_general_enhanced_luck_1") return def removeAbilities(core, actor, player): - + actor.removeAbility("expertise_co_general_enhanced_luck_1") return - diff --git a/scripts/expertise/expertise_co_general_enhanced_luck_2.py b/scripts/expertise/expertise_co_general_enhanced_luck_2.py index 2e626644..598a9a1d 100644 --- a/scripts/expertise/expertise_co_general_enhanced_luck_2.py +++ b/scripts/expertise/expertise_co_general_enhanced_luck_2.py @@ -1,47 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_general_enhanced_luck_2') - - actor.addSkillMod('luck_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_general_enhanced_luck_2') - - actor.removeSkillMod('luck_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - + actor.addAbility("expertise_co_general_enhanced_luck_2") return def removeAbilities(core, actor, player): - + actor.removeAbility("expertise_co_general_enhanced_luck_2") return - diff --git a/scripts/expertise/expertise_co_heavy_ammunition_1.py b/scripts/expertise/expertise_co_heavy_ammunition_1.py index 86e9e6d5..90f370b1 100644 --- a/scripts/expertise/expertise_co_heavy_ammunition_1.py +++ b/scripts/expertise/expertise_co_heavy_ammunition_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_heavy_ammunition_1') - - actor.addSkillMod('expertise_damage_weapon_0', 2) - actor.addSkillMod('expertise_damage_weapon_1', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_heavy_ammunition_1') - - actor.removeSkillMod('expertise_damage_weapon_0', 2) - actor.removeSkillMod('expertise_damage_weapon_1', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_heavy_ammunition_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_heavy_ammunition_1") return diff --git a/scripts/expertise/expertise_co_heavy_ammunition_2.py b/scripts/expertise/expertise_co_heavy_ammunition_2.py index 82c48ece..cd20a2e4 100644 --- a/scripts/expertise/expertise_co_heavy_ammunition_2.py +++ b/scripts/expertise/expertise_co_heavy_ammunition_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_heavy_ammunition_2') - - actor.addSkillMod('expertise_damage_weapon_0', 2) - actor.addSkillMod('expertise_damage_weapon_1', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_heavy_ammunition_2') - - actor.removeSkillMod('expertise_damage_weapon_0', 2) - actor.removeSkillMod('expertise_damage_weapon_1', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_heavy_ammunition_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_heavy_ammunition_2") return diff --git a/scripts/expertise/expertise_co_heavy_ammunition_3.py b/scripts/expertise/expertise_co_heavy_ammunition_3.py index c87f41dd..07492f2a 100644 --- a/scripts/expertise/expertise_co_heavy_ammunition_3.py +++ b/scripts/expertise/expertise_co_heavy_ammunition_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_heavy_ammunition_3') - - actor.addSkillMod('expertise_damage_weapon_0', 2) - actor.addSkillMod('expertise_damage_weapon_1', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_heavy_ammunition_3') - - actor.removeSkillMod('expertise_damage_weapon_0', 2) - actor.removeSkillMod('expertise_damage_weapon_1', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_heavy_ammunition_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_heavy_ammunition_3") return diff --git a/scripts/expertise/expertise_co_heavy_ammunition_4.py b/scripts/expertise/expertise_co_heavy_ammunition_4.py index 20577637..5bbd826a 100644 --- a/scripts/expertise/expertise_co_heavy_ammunition_4.py +++ b/scripts/expertise/expertise_co_heavy_ammunition_4.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_heavy_ammunition_4') - - actor.addSkillMod('expertise_damage_weapon_0', 2) - actor.addSkillMod('expertise_damage_weapon_1', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_heavy_ammunition_4') - - actor.removeSkillMod('expertise_damage_weapon_0', 2) - actor.removeSkillMod('expertise_damage_weapon_1', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_heavy_ammunition_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_heavy_ammunition_4") return diff --git a/scripts/expertise/expertise_co_hose_down_1.py b/scripts/expertise/expertise_co_hose_down_1.py index bc6dfcfc..466d938a 100644 --- a/scripts/expertise/expertise_co_hose_down_1.py +++ b/scripts/expertise/expertise_co_hose_down_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_hose_down_1') - - actor.addSkillMod('expertise_action_line_co_dm', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_hose_down_1') - - actor.removeSkillMod('expertise_action_line_co_dm', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_hose_down_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_hose_down_1") return diff --git a/scripts/expertise/expertise_co_hose_down_2.py b/scripts/expertise/expertise_co_hose_down_2.py index e4944ff0..5b631478 100644 --- a/scripts/expertise/expertise_co_hose_down_2.py +++ b/scripts/expertise/expertise_co_hose_down_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_hose_down_2') - - actor.addSkillMod('expertise_action_line_co_dm', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_hose_down_2') - - actor.removeSkillMod('expertise_action_line_co_dm', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_hose_down_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_hose_down_2") return diff --git a/scripts/expertise/expertise_co_imp_position_secured_1.py b/scripts/expertise/expertise_co_imp_position_secured_1.py index 76c5c253..26286412 100644 --- a/scripts/expertise/expertise_co_imp_position_secured_1.py +++ b/scripts/expertise/expertise_co_imp_position_secured_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_imp_position_secured_1') - - actor.addSkillMod('expertise_action_line_co_imp_pos_sec', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_imp_position_secured_1') - - actor.removeSkillMod('expertise_action_line_co_imp_pos_sec', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_imp_position_secured_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_imp_position_secured_1") return diff --git a/scripts/expertise/expertise_co_imp_position_secured_2.py b/scripts/expertise/expertise_co_imp_position_secured_2.py index c4caa65e..2a134cd0 100644 --- a/scripts/expertise/expertise_co_imp_position_secured_2.py +++ b/scripts/expertise/expertise_co_imp_position_secured_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_imp_position_secured_2') - - actor.addSkillMod('expertise_action_line_co_imp_pos_sec', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_imp_position_secured_2') - - actor.removeSkillMod('expertise_action_line_co_imp_pos_sec', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_imp_position_secured_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_imp_position_secured_2") return diff --git a/scripts/expertise/expertise_co_imp_position_secured_3.py b/scripts/expertise/expertise_co_imp_position_secured_3.py index eecc94ca..f18a8164 100644 --- a/scripts/expertise/expertise_co_imp_position_secured_3.py +++ b/scripts/expertise/expertise_co_imp_position_secured_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_imp_position_secured_3') - - actor.addSkillMod('expertise_action_line_co_imp_pos_sec', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_imp_position_secured_3') - - actor.removeSkillMod('expertise_action_line_co_imp_pos_sec', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_imp_position_secured_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_imp_position_secured_3") return diff --git a/scripts/expertise/expertise_co_imp_riddle_armor_1.py b/scripts/expertise/expertise_co_imp_riddle_armor_1.py index e05eaba7..2c83b9e3 100644 --- a/scripts/expertise/expertise_co_imp_riddle_armor_1.py +++ b/scripts/expertise/expertise_co_imp_riddle_armor_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_imp_riddle_armor_1') - - actor.addSkillMod('expertise_cooldown_line_co_riddle_armor', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_imp_riddle_armor_1') - - actor.removeSkillMod('expertise_cooldown_line_co_riddle_armor', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_imp_riddle_armor_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_imp_riddle_armor_1") return diff --git a/scripts/expertise/expertise_co_imp_riddle_armor_2.py b/scripts/expertise/expertise_co_imp_riddle_armor_2.py index a6c99f37..be67095b 100644 --- a/scripts/expertise/expertise_co_imp_riddle_armor_2.py +++ b/scripts/expertise/expertise_co_imp_riddle_armor_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_imp_riddle_armor_2') - - actor.addSkillMod('expertise_cooldown_line_co_riddle_armor', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_imp_riddle_armor_2') - - actor.removeSkillMod('expertise_cooldown_line_co_riddle_armor', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_imp_riddle_armor_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_imp_riddle_armor_2") return diff --git a/scripts/expertise/expertise_co_imp_stand_fast_1.py b/scripts/expertise/expertise_co_imp_stand_fast_1.py index aa2b8fdd..e1c77d58 100644 --- a/scripts/expertise/expertise_co_imp_stand_fast_1.py +++ b/scripts/expertise/expertise_co_imp_stand_fast_1.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_imp_stand_fast_1') - - actor.addSkillMod('expertise_damage_decrease_percentage', 5) - actor.addSkillMod('expertise_buff_duration_line_co_stand_fast', 2) - actor.addSkillMod('expertise_cooldown_line_co_stand_fast', 120) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_imp_stand_fast_1') - - actor.removeSkillMod('expertise_damage_decrease_percentage', 5) - actor.removeSkillMod('expertise_buff_duration_line_co_stand_fast', 2) - actor.removeSkillMod('expertise_cooldown_line_co_stand_fast', 120) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_imp_stand_fast_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_imp_stand_fast_1") return diff --git a/scripts/expertise/expertise_co_imp_stand_fast_2.py b/scripts/expertise/expertise_co_imp_stand_fast_2.py index d5d1f95e..b4daa5e8 100644 --- a/scripts/expertise/expertise_co_imp_stand_fast_2.py +++ b/scripts/expertise/expertise_co_imp_stand_fast_2.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_imp_stand_fast_2') - - actor.addSkillMod('expertise_damage_decrease_percentage', 5) - actor.addSkillMod('expertise_buff_duration_line_co_stand_fast', 2) - actor.addSkillMod('expertise_cooldown_line_co_stand_fast', 120) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_imp_stand_fast_2') - - actor.removeSkillMod('expertise_damage_decrease_percentage', 5) - actor.removeSkillMod('expertise_buff_duration_line_co_stand_fast', 2) - actor.removeSkillMod('expertise_cooldown_line_co_stand_fast', 120) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_imp_stand_fast_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_imp_stand_fast_2") return diff --git a/scripts/expertise/expertise_co_imp_stand_fast_3.py b/scripts/expertise/expertise_co_imp_stand_fast_3.py index 1cc88783..9e3ddf52 100644 --- a/scripts/expertise/expertise_co_imp_stand_fast_3.py +++ b/scripts/expertise/expertise_co_imp_stand_fast_3.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_imp_stand_fast_3') - - actor.addSkillMod('expertise_damage_decrease_percentage', 5) - actor.addSkillMod('expertise_buff_duration_line_co_stand_fast', 2) - actor.addSkillMod('expertise_cooldown_line_co_stand_fast', 120) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_imp_stand_fast_3') - - actor.removeSkillMod('expertise_damage_decrease_percentage', 5) - actor.removeSkillMod('expertise_buff_duration_line_co_stand_fast', 2) - actor.removeSkillMod('expertise_cooldown_line_co_stand_fast', 120) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_imp_stand_fast_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_imp_stand_fast_3") return diff --git a/scripts/expertise/expertise_co_improved_explosives_1.py b/scripts/expertise/expertise_co_improved_explosives_1.py index d4c61b00..7479e8d1 100644 --- a/scripts/expertise/expertise_co_improved_explosives_1.py +++ b/scripts/expertise/expertise_co_improved_explosives_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_improved_explosives_1') - - actor.addSkillMod('expertise_damage_line_co_remote_detonator', 75) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_improved_explosives_1') - - actor.removeSkillMod('expertise_damage_line_co_remote_detonator', 75) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_improved_explosives_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_improved_explosives_1") return diff --git a/scripts/expertise/expertise_co_improved_explosives_2.py b/scripts/expertise/expertise_co_improved_explosives_2.py index 088ad931..485df881 100644 --- a/scripts/expertise/expertise_co_improved_explosives_2.py +++ b/scripts/expertise/expertise_co_improved_explosives_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_improved_explosives_2') - - actor.addSkillMod('expertise_damage_line_co_remote_detonator', 75) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_improved_explosives_2') - - actor.removeSkillMod('expertise_damage_line_co_remote_detonator', 75) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_improved_explosives_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_improved_explosives_2") return diff --git a/scripts/expertise/expertise_co_improved_explosives_3.py b/scripts/expertise/expertise_co_improved_explosives_3.py index 36f59b79..3abcab9b 100644 --- a/scripts/expertise/expertise_co_improved_explosives_3.py +++ b/scripts/expertise/expertise_co_improved_explosives_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_improved_explosives_3') - - actor.addSkillMod('expertise_damage_line_co_remote_detonator', 75) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_improved_explosives_3') - - actor.removeSkillMod('expertise_damage_line_co_remote_detonator', 75) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_improved_explosives_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_improved_explosives_3") return diff --git a/scripts/expertise/expertise_co_improved_explosives_4.py b/scripts/expertise/expertise_co_improved_explosives_4.py index 0388018e..99b4e564 100644 --- a/scripts/expertise/expertise_co_improved_explosives_4.py +++ b/scripts/expertise/expertise_co_improved_explosives_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_improved_explosives_4') - - actor.addSkillMod('expertise_damage_line_co_remote_detonator', 75) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_improved_explosives_4') - - actor.removeSkillMod('expertise_damage_line_co_remote_detonator', 75) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_improved_explosives_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_improved_explosives_4") return diff --git a/scripts/expertise/expertise_co_keen_eye_1.py b/scripts/expertise/expertise_co_keen_eye_1.py index 03a62449..b03ebc46 100644 --- a/scripts/expertise/expertise_co_keen_eye_1.py +++ b/scripts/expertise/expertise_co_keen_eye_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_keen_eye_1') - - actor.addSkillMod('expertise_range_bonus_ranged', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_keen_eye_1') - - actor.removeSkillMod('expertise_range_bonus_ranged', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_keen_eye_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_keen_eye_1") return diff --git a/scripts/expertise/expertise_co_keen_eye_2.py b/scripts/expertise/expertise_co_keen_eye_2.py index b5fcd60b..aff4527a 100644 --- a/scripts/expertise/expertise_co_keen_eye_2.py +++ b/scripts/expertise/expertise_co_keen_eye_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_keen_eye_2') - - actor.addSkillMod('expertise_range_bonus_ranged', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_keen_eye_2') - - actor.removeSkillMod('expertise_range_bonus_ranged', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_keen_eye_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_keen_eye_2") return diff --git a/scripts/expertise/expertise_co_killing_grimace_1.py b/scripts/expertise/expertise_co_killing_grimace_1.py index 18b03ffe..091846d5 100644 --- a/scripts/expertise/expertise_co_killing_grimace_1.py +++ b/scripts/expertise/expertise_co_killing_grimace_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_killing_grimace_1') - - actor.addSkillMod('expertise_co_killing_spree_target', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_killing_grimace_1') - - actor.removeSkillMod('expertise_co_killing_spree_target', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_killing_grimace_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_killing_grimace_1") return diff --git a/scripts/expertise/expertise_co_killing_grimace_2.py b/scripts/expertise/expertise_co_killing_grimace_2.py index 0c1ca2e8..ad8ee400 100644 --- a/scripts/expertise/expertise_co_killing_grimace_2.py +++ b/scripts/expertise/expertise_co_killing_grimace_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_killing_grimace_2') - - actor.addSkillMod('expertise_co_killing_spree_target', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_killing_grimace_2') - - actor.removeSkillMod('expertise_co_killing_spree_target', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_killing_grimace_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_killing_grimace_2") return diff --git a/scripts/expertise/expertise_co_killing_spree.py b/scripts/expertise/expertise_co_killing_spree.py index 915251d0..c17421ae 100644 --- a/scripts/expertise/expertise_co_killing_spree.py +++ b/scripts/expertise/expertise_co_killing_spree.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_killing_spree') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_killing_spree') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('co_killing_spree') - + actor.addAbility("co_killing_spree") return def removeAbilities(core, actor, player): - - actor.removeAbility('co_killing_spree') - + actor.removeAbility("co_killing_spree") return diff --git a/scripts/expertise/expertise_co_lethal_beam_1.py b/scripts/expertise/expertise_co_lethal_beam_1.py index 4a96f6d4..25d0a5a5 100644 --- a/scripts/expertise/expertise_co_lethal_beam_1.py +++ b/scripts/expertise/expertise_co_lethal_beam_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_lethal_beam_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_lethal_beam_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('co_hw_dm_crit_1') - + actor.addAbility("co_hw_dm_crit_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('co_hw_dm_crit_1') - + actor.removeAbility("co_hw_dm_crit_1") return diff --git a/scripts/expertise/expertise_co_marksman_1.py b/scripts/expertise/expertise_co_marksman_1.py index 431a914c..c57aa617 100644 --- a/scripts/expertise/expertise_co_marksman_1.py +++ b/scripts/expertise/expertise_co_marksman_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_marksman_1') - - actor.addSkillMod('expertise_action_rifle', 4) - actor.addSkillMod('expertise_action_carbine', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_marksman_1') - - actor.removeSkillMod('expertise_action_rifle', 4) - actor.removeSkillMod('expertise_action_carbine', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_marksman_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_marksman_1") return diff --git a/scripts/expertise/expertise_co_marksman_2.py b/scripts/expertise/expertise_co_marksman_2.py index 578f6bfc..7f74b950 100644 --- a/scripts/expertise/expertise_co_marksman_2.py +++ b/scripts/expertise/expertise_co_marksman_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_marksman_2') - - actor.addSkillMod('expertise_action_rifle', 4) - actor.addSkillMod('expertise_action_carbine', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_marksman_2') - - actor.removeSkillMod('expertise_action_rifle', 4) - actor.removeSkillMod('expertise_action_carbine', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_marksman_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_marksman_2") return diff --git a/scripts/expertise/expertise_co_marksman_3.py b/scripts/expertise/expertise_co_marksman_3.py index 39027c30..27c8b759 100644 --- a/scripts/expertise/expertise_co_marksman_3.py +++ b/scripts/expertise/expertise_co_marksman_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_marksman_3') - - actor.addSkillMod('expertise_action_rifle', 4) - actor.addSkillMod('expertise_action_carbine', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_marksman_3') - - actor.removeSkillMod('expertise_action_rifle', 4) - actor.removeSkillMod('expertise_action_carbine', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_marksman_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_marksman_3") return diff --git a/scripts/expertise/expertise_co_mirror_armor_1.py b/scripts/expertise/expertise_co_mirror_armor_1.py index ce6c5cb5..dfb9397d 100644 --- a/scripts/expertise/expertise_co_mirror_armor_1.py +++ b/scripts/expertise/expertise_co_mirror_armor_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_mirror_armor_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_mirror_armor_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('co_mirror_armor') - + actor.addAbility("co_mirror_armor") return def removeAbilities(core, actor, player): - - actor.removeAbility('co_mirror_armor') - + actor.removeAbility("co_mirror_armor") return diff --git a/scripts/expertise/expertise_co_on_target_1.py b/scripts/expertise/expertise_co_on_target_1.py index 7ed1aa7e..f652cbd2 100644 --- a/scripts/expertise/expertise_co_on_target_1.py +++ b/scripts/expertise/expertise_co_on_target_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_on_target_1') - - actor.addSkillMod('expertise_co_pos_secured_line_critical', 2) - actor.addSkillMod('expertise_co_pos_secured_line_protection', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_on_target_1') - - actor.removeSkillMod('expertise_co_pos_secured_line_critical', 2) - actor.removeSkillMod('expertise_co_pos_secured_line_protection', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_on_target_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_on_target_1") return diff --git a/scripts/expertise/expertise_co_on_target_2.py b/scripts/expertise/expertise_co_on_target_2.py index bf31c706..b51e92a9 100644 --- a/scripts/expertise/expertise_co_on_target_2.py +++ b/scripts/expertise/expertise_co_on_target_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_on_target_2') - - actor.addSkillMod('expertise_co_pos_secured_line_critical', 2) - actor.addSkillMod('expertise_co_pos_secured_line_protection', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_on_target_2') - - actor.removeSkillMod('expertise_co_pos_secured_line_critical', 2) - actor.removeSkillMod('expertise_co_pos_secured_line_protection', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_on_target_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_on_target_2") return diff --git a/scripts/expertise/expertise_co_on_target_3.py b/scripts/expertise/expertise_co_on_target_3.py index 9cca1f5d..5456ca93 100644 --- a/scripts/expertise/expertise_co_on_target_3.py +++ b/scripts/expertise/expertise_co_on_target_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_on_target_3') - - actor.addSkillMod('expertise_co_pos_secured_line_critical', 2) - actor.addSkillMod('expertise_co_pos_secured_line_protection', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_on_target_3') - - actor.removeSkillMod('expertise_co_pos_secured_line_critical', 2) - actor.removeSkillMod('expertise_co_pos_secured_line_protection', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_on_target_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_on_target_3") return diff --git a/scripts/expertise/expertise_co_on_target_4.py b/scripts/expertise/expertise_co_on_target_4.py index e9a0a325..b750b412 100644 --- a/scripts/expertise/expertise_co_on_target_4.py +++ b/scripts/expertise/expertise_co_on_target_4.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_on_target_4') - - actor.addSkillMod('expertise_co_pos_secured_line_critical', 2) - actor.addSkillMod('expertise_co_pos_secured_line_protection', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_on_target_4') - - actor.removeSkillMod('expertise_co_pos_secured_line_critical', 2) - actor.removeSkillMod('expertise_co_pos_secured_line_protection', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_on_target_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_on_target_4") return diff --git a/scripts/expertise/expertise_co_packed_explosives_1.py b/scripts/expertise/expertise_co_packed_explosives_1.py index da5644ab..fa57097c 100644 --- a/scripts/expertise/expertise_co_packed_explosives_1.py +++ b/scripts/expertise/expertise_co_packed_explosives_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_packed_explosives_1') - - actor.addSkillMod('expertise_damage_line_co_grenade', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_packed_explosives_1') - - actor.removeSkillMod('expertise_damage_line_co_grenade', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_packed_explosives_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_packed_explosives_1") return diff --git a/scripts/expertise/expertise_co_packed_explosives_2.py b/scripts/expertise/expertise_co_packed_explosives_2.py index ee0655e3..288e1944 100644 --- a/scripts/expertise/expertise_co_packed_explosives_2.py +++ b/scripts/expertise/expertise_co_packed_explosives_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_packed_explosives_2') - - actor.addSkillMod('expertise_damage_line_co_grenade', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_packed_explosives_2') - - actor.removeSkillMod('expertise_damage_line_co_grenade', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_packed_explosives_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_packed_explosives_2") return diff --git a/scripts/expertise/expertise_co_packed_explosives_3.py b/scripts/expertise/expertise_co_packed_explosives_3.py index 0bdf9fde..8f61f39d 100644 --- a/scripts/expertise/expertise_co_packed_explosives_3.py +++ b/scripts/expertise/expertise_co_packed_explosives_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_packed_explosives_3') - - actor.addSkillMod('expertise_damage_line_co_grenade', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_packed_explosives_3') - - actor.removeSkillMod('expertise_damage_line_co_grenade', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_packed_explosives_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_packed_explosives_3") return diff --git a/scripts/expertise/expertise_co_packed_explosives_4.py b/scripts/expertise/expertise_co_packed_explosives_4.py index e8ca7037..efd1b2a9 100644 --- a/scripts/expertise/expertise_co_packed_explosives_4.py +++ b/scripts/expertise/expertise_co_packed_explosives_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_packed_explosives_4') - - actor.addSkillMod('expertise_damage_line_co_grenade', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_packed_explosives_4') - - actor.removeSkillMod('expertise_damage_line_co_grenade', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_packed_explosives_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_packed_explosives_4") return diff --git a/scripts/expertise/expertise_co_pinpoint_shielding_1.py b/scripts/expertise/expertise_co_pinpoint_shielding_1.py index 42a66f6e..1937db02 100644 --- a/scripts/expertise/expertise_co_pinpoint_shielding_1.py +++ b/scripts/expertise/expertise_co_pinpoint_shielding_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_pinpoint_shielding_1') - - actor.addSkillMod('expertise_innate_protection_all', 250) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_pinpoint_shielding_1') - - actor.removeSkillMod('expertise_innate_protection_all', 250) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_pinpoint_shielding_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_pinpoint_shielding_1") return diff --git a/scripts/expertise/expertise_co_pinpoint_shielding_2.py b/scripts/expertise/expertise_co_pinpoint_shielding_2.py index 7ce8362f..c3ad2200 100644 --- a/scripts/expertise/expertise_co_pinpoint_shielding_2.py +++ b/scripts/expertise/expertise_co_pinpoint_shielding_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_pinpoint_shielding_2') - - actor.addSkillMod('expertise_innate_protection_all', 250) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_pinpoint_shielding_2') - - actor.removeSkillMod('expertise_innate_protection_all', 250) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_pinpoint_shielding_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_pinpoint_shielding_2") return diff --git a/scripts/expertise/expertise_co_pinpoint_shielding_3.py b/scripts/expertise/expertise_co_pinpoint_shielding_3.py index 4f8d9921..02c5884e 100644 --- a/scripts/expertise/expertise_co_pinpoint_shielding_3.py +++ b/scripts/expertise/expertise_co_pinpoint_shielding_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_pinpoint_shielding_3') - - actor.addSkillMod('expertise_innate_protection_all', 250) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_pinpoint_shielding_3) - - actor.removeSkillMod('expertise_innate_protection_all', 250) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_pinpoint_shielding_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_pinpoint_shielding_3") return diff --git a/scripts/expertise/expertise_co_pinpoint_shielding_4.py b/scripts/expertise/expertise_co_pinpoint_shielding_4.py index 9d3948ee..f85df1de 100644 --- a/scripts/expertise/expertise_co_pinpoint_shielding_4.py +++ b/scripts/expertise/expertise_co_pinpoint_shielding_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_pinpoint_shielding_4') - - actor.addSkillMod('expertise_innate_protection_all', 250) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_pinpoint_shielding_4') - - actor.removeSkillMod('expertise_innate_protection_all', 250) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_pinpoint_shielding_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_pinpoint_shielding_4") return diff --git a/scripts/expertise/expertise_co_position_secured_1.py b/scripts/expertise/expertise_co_position_secured_1.py index dfee8b0a..d2427d08 100644 --- a/scripts/expertise/expertise_co_position_secured_1.py +++ b/scripts/expertise/expertise_co_position_secured_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_position_secured_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_position_secured_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('co_position_secured') - + actor.addAbility("co_position_secured") return def removeAbilities(core, actor, player): - - actor.removeAbility('co_position_secured') - + actor.removeAbility("co_position_secured") return diff --git a/scripts/expertise/expertise_co_powered_armor_1.py b/scripts/expertise/expertise_co_powered_armor_1.py index 4e10ab53..58530d57 100644 --- a/scripts/expertise/expertise_co_powered_armor_1.py +++ b/scripts/expertise/expertise_co_powered_armor_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_powered_armor_1') - - actor.addSkillMod('expertise_innate_protection_all', 250) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_powered_armor_1') - - actor.removeSkillMod('expertise_innate_protection_all', 250) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_powered_armor_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_powered_armor_1") return diff --git a/scripts/expertise/expertise_co_powered_armor_2.py b/scripts/expertise/expertise_co_powered_armor_2.py index d146c681..e9ea79e9 100644 --- a/scripts/expertise/expertise_co_powered_armor_2.py +++ b/scripts/expertise/expertise_co_powered_armor_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_powered_armor_2') - - actor.addSkillMod('expertise_innate_protection_all', 250) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_powered_armor_2') - - actor.removeSkillMod('expertise_innate_protection_all', 250) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_powered_armor_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_powered_armor_2") return diff --git a/scripts/expertise/expertise_co_powered_armor_3.py b/scripts/expertise/expertise_co_powered_armor_3.py index 3c12fe50..5cba60e6 100644 --- a/scripts/expertise/expertise_co_powered_armor_3.py +++ b/scripts/expertise/expertise_co_powered_armor_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_powered_armor_3') - - actor.addSkillMod('expertise_innate_protection_all', 250) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_powered_armor_3') - - actor.removeSkillMod('expertise_innate_protection_all', 250) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_powered_armor_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_powered_armor_3") return diff --git a/scripts/expertise/expertise_co_powered_armor_4.py b/scripts/expertise/expertise_co_powered_armor_4.py index 6daafc8d..b10f5264 100644 --- a/scripts/expertise/expertise_co_powered_armor_4.py +++ b/scripts/expertise/expertise_co_powered_armor_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_powered_armor_4') - - actor.addSkillMod('expertise_innate_protection_all', 250) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_powered_armor_4') - - actor.removeSkillMod('expertise_innate_protection_all', 250) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_powered_armor_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_powered_armor_4") return diff --git a/scripts/expertise/expertise_co_remote_detonator_1.py b/scripts/expertise/expertise_co_remote_detonator_1.py index d90c8d4f..fed11c0f 100644 --- a/scripts/expertise/expertise_co_remote_detonator_1.py +++ b/scripts/expertise/expertise_co_remote_detonator_1.py @@ -1,48 +1,22 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_remote_detonator_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_remote_detonator_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('co_remote_detonator_1') - + if actor.getLevel() >= 26: + actor.addAbility("co_remote_detonator_1") + if actor.getLevel() >= 34: + actor.addAbility("co_remote_detonator_2") + if actor.getLevel() >= 48: + actor.addAbility("co_remote_detonator_3") + if actor.getLevel() >= 62: + actor.addAbility("co_remote_detonator_4") + if actor.getLevel() >= 76: + actor.addAbility("co_remote_detonator_5") return def removeAbilities(core, actor, player): - - actor.removeAbility('co_remote_detonator_1') - + actor.removeAbility("co_remote_detonator_1") + actor.removeAbility("co_remote_detonator_2") + actor.removeAbility("co_remote_detonator_3") + actor.removeAbility("co_remote_detonator_4") + actor.removeAbility("co_remote_detonator_5") return diff --git a/scripts/expertise/expertise_co_riddle_armor_1.py b/scripts/expertise/expertise_co_riddle_armor_1.py index 4e3ebd79..04ea9722 100644 --- a/scripts/expertise/expertise_co_riddle_armor_1.py +++ b/scripts/expertise/expertise_co_riddle_armor_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_riddle_armor_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_riddle_armor_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('co_riddle_armor') - + actor.addAbility("co_riddle_armor") return def removeAbilities(core, actor, player): - - actor.removeAbility('co_riddle_armor') - + actor.removeAbility("co_riddle_armor") return diff --git a/scripts/expertise/expertise_co_short_fuse_1.py b/scripts/expertise/expertise_co_short_fuse_1.py index 54240603..a5cbad44 100644 --- a/scripts/expertise/expertise_co_short_fuse_1.py +++ b/scripts/expertise/expertise_co_short_fuse_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_short_fuse_1') - - actor.addSkillMod('expertise_delay_reduce_line_co_grenade', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_short_fuse_1') - - actor.removeSkillMod('expertise_delay_reduce_line_co_grenade', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_short_fuse_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_short_fuse_1") return diff --git a/scripts/expertise/expertise_co_stand_fast_1.py b/scripts/expertise/expertise_co_stand_fast_1.py index 714eb9b6..46127787 100644 --- a/scripts/expertise/expertise_co_stand_fast_1.py +++ b/scripts/expertise/expertise_co_stand_fast_1.py @@ -1,47 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_stand_fast_1') - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_stand_fast_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('co_stand_fast') - + actor.addAbility("co_stand_fast") return - + def removeAbilities(core, actor, player): - - actor.removeAbility('co_stand_fast') - + actor.removeAbility("co_stand_fast") return - \ No newline at end of file diff --git a/scripts/expertise/expertise_co_stim_armor_1.py b/scripts/expertise/expertise_co_stim_armor_1.py index abe74611..eb69696b 100644 --- a/scripts/expertise/expertise_co_stim_armor_1.py +++ b/scripts/expertise/expertise_co_stim_armor_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_stim_armor_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_stim_armor_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('co_stim_armor') - + actor.addAbility("co_stim_armor") return def removeAbilities(core, actor, player): - - actor.removeAbility('co_stim_armor') - + actor.removeAbility("co_stim_armor") return diff --git a/scripts/expertise/expertise_co_strong_arm_1.py b/scripts/expertise/expertise_co_strong_arm_1.py index 03ebed5f..b4e5ab18 100644 --- a/scripts/expertise/expertise_co_strong_arm_1.py +++ b/scripts/expertise/expertise_co_strong_arm_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_strong_arm_1') - - actor.addSkillMod('expertise_action_line_co_grenade', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_strong_arm_1') - - actor.removeSkillMod('expertise_action_line_co_grenade', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_strong_arm_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_strong_arm_1") return diff --git a/scripts/expertise/expertise_co_strong_arm_2.py b/scripts/expertise/expertise_co_strong_arm_2.py index 126ff5b7..b0672495 100644 --- a/scripts/expertise/expertise_co_strong_arm_2.py +++ b/scripts/expertise/expertise_co_strong_arm_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_strong_arm_2') - - actor.addSkillMod('expertise_action_line_co_grenade', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_strong_arm_2') - - actor.removeSkillMod('expertise_action_line_co_grenade', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_strong_arm_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_strong_arm_2") return diff --git a/scripts/expertise/expertise_co_strong_arm_3.py b/scripts/expertise/expertise_co_strong_arm_3.py index 8ed34544..d69525d7 100644 --- a/scripts/expertise/expertise_co_strong_arm_3.py +++ b/scripts/expertise/expertise_co_strong_arm_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_strong_arm_3') - - actor.addSkillMod('expertise_action_line_co_grenade', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_strong_arm_3') - - actor.removeSkillMod('expertise_action_line_co_grenade', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_strong_arm_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_strong_arm_3") return diff --git a/scripts/expertise/expertise_co_strong_arm_4.py b/scripts/expertise/expertise_co_strong_arm_4.py index ea9ec450..dd42b534 100644 --- a/scripts/expertise/expertise_co_strong_arm_4.py +++ b/scripts/expertise/expertise_co_strong_arm_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_strong_arm_4') - - actor.addSkillMod('expertise_action_line_co_grenade', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_strong_arm_4') - - actor.removeSkillMod('expertise_action_line_co_grenade', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_strong_arm_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_strong_arm_4") return diff --git a/scripts/expertise/expertise_co_suppressing_fire_1.py b/scripts/expertise/expertise_co_suppressing_fire_1.py index a9192094..b9181853 100644 --- a/scripts/expertise/expertise_co_suppressing_fire_1.py +++ b/scripts/expertise/expertise_co_suppressing_fire_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_suppressing_fire_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_suppressing_fire_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('co_suppressing_fire') - + actor.addAbility("co_suppressing_fire") return def removeAbilities(core, actor, player): - - actor.removeAbility('co_suppressing_fire') - + actor.removeAbility("co_suppressing_fire") return diff --git a/scripts/expertise/expertise_co_suppression_efficiency_1.py b/scripts/expertise/expertise_co_suppression_efficiency_1.py index 72851743..60950dc4 100644 --- a/scripts/expertise/expertise_co_suppression_efficiency_1.py +++ b/scripts/expertise/expertise_co_suppression_efficiency_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_suppression_efficiency_1') - - actor.addSkillMod('expertise_supression_speed', 10) - actor.addSkillMod('expertise_supression_glance', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_suppression_efficiency_1') - - actor.removeSkillMod('expertise_supression_speed', 10) - actor.removeSkillMod('expertise_supression_glance', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_suppression_efficiency_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_suppression_efficiency_1") return diff --git a/scripts/expertise/expertise_co_suppression_efficiency_2.py b/scripts/expertise/expertise_co_suppression_efficiency_2.py index 97830b16..3ce19870 100644 --- a/scripts/expertise/expertise_co_suppression_efficiency_2.py +++ b/scripts/expertise/expertise_co_suppression_efficiency_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_suppression_efficiency_2') - - actor.addSkillMod('expertise_supression_speed', 10) - actor.addSkillMod('expertise_supression_glance', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_suppression_efficiency_2') - - actor.removeSkillMod('expertise_supression_speed', 10) - actor.removeSkillMod('expertise_supression_glance', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_suppression_efficiency_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_suppression_efficiency_2") return diff --git a/scripts/expertise/expertise_co_suppression_efficiency_3.py b/scripts/expertise/expertise_co_suppression_efficiency_3.py index a0d3e6b6..00e43a22 100644 --- a/scripts/expertise/expertise_co_suppression_efficiency_3.py +++ b/scripts/expertise/expertise_co_suppression_efficiency_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_suppression_efficiency_3') - - actor.addSkillMod('expertise_supression_speed', 10) - actor.addSkillMod('expertise_supression_glance', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_suppression_efficiency_3') - - actor.removeSkillMod('expertise_supression_speed', 10) - actor.removeSkillMod('expertise_supression_glance', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_suppression_efficiency_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_suppression_efficiency_3") return diff --git a/scripts/expertise/expertise_co_suppression_efficiency_4.py b/scripts/expertise/expertise_co_suppression_efficiency_4.py index 3898d8fd..f9c1c3e5 100644 --- a/scripts/expertise/expertise_co_suppression_efficiency_4.py +++ b/scripts/expertise/expertise_co_suppression_efficiency_4.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_suppression_efficiency_4') - - actor.addSkillMod('expertise_supression_speed', 10) - actor.addSkillMod('expertise_supression_glance', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_suppression_efficiency_4') - - actor.removeSkillMod('expertise_supression_speed', 10) - actor.removeSkillMod('expertise_supression_glance', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_suppression_efficiency_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_suppression_efficiency_4") return diff --git a/scripts/expertise/expertise_co_tibanna_gas_1.py b/scripts/expertise/expertise_co_tibanna_gas_1.py index f3c83322..1c8d5371 100644 --- a/scripts/expertise/expertise_co_tibanna_gas_1.py +++ b/scripts/expertise/expertise_co_tibanna_gas_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_tibanna_gas_1') - - actor.addSkillMod('expertise_damage_weapon_3', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_tibanna_gas_1') - - actor.removeSkillMod('expertise_damage_weapon_3', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_tibanna_gas_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_tibanna_gas_1") return diff --git a/scripts/expertise/expertise_co_tibanna_gas_2.py b/scripts/expertise/expertise_co_tibanna_gas_2.py index ccc62783..f907947a 100644 --- a/scripts/expertise/expertise_co_tibanna_gas_2.py +++ b/scripts/expertise/expertise_co_tibanna_gas_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_tibanna_gas_2') - - actor.addSkillMod('expertise_damage_weapon_3', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_tibanna_gas_2') - - actor.removeSkillMod('expertise_damage_weapon_3', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_tibanna_gas_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_tibanna_gas_2") return diff --git a/scripts/expertise/expertise_co_tibanna_gas_3.py b/scripts/expertise/expertise_co_tibanna_gas_3.py index 49895f55..4b1ac247 100644 --- a/scripts/expertise/expertise_co_tibanna_gas_3.py +++ b/scripts/expertise/expertise_co_tibanna_gas_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_tibanna_gas_3') - - actor.addSkillMod('expertise_damage_weapon_3', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_tibanna_gas_3') - - actor.removeSkillMod('expertise_damage_weapon_3', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_tibanna_gas_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_tibanna_gas_3") return diff --git a/scripts/expertise/expertise_co_tibanna_gas_4.py b/scripts/expertise/expertise_co_tibanna_gas_4.py index 09e23289..67b238f2 100644 --- a/scripts/expertise/expertise_co_tibanna_gas_4.py +++ b/scripts/expertise/expertise_co_tibanna_gas_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_tibanna_gas_4') - - actor.addSkillMod('expertise_damage_weapon_3', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_tibanna_gas_4') - - actor.removeSkillMod('expertise_damage_weapon_3', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_tibanna_gas_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_tibanna_gas_4") return diff --git a/scripts/expertise/expertise_co_timer_reset_1.py b/scripts/expertise/expertise_co_timer_reset_1.py index c1f4cdb0..1b2e232d 100644 --- a/scripts/expertise/expertise_co_timer_reset_1.py +++ b/scripts/expertise/expertise_co_timer_reset_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_timer_reset_1') - - actor.addSkillMod('expertise_delay_line_co_remote_detonator', 240) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_timer_reset_1') - - actor.removeSkillMod('expertise_delay_line_co_remote_detonator', 240) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_timer_reset_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_timer_reset_1") return diff --git a/scripts/expertise/expertise_co_timer_reset_2.py b/scripts/expertise/expertise_co_timer_reset_2.py index 452832a5..9c29a8c9 100644 --- a/scripts/expertise/expertise_co_timer_reset_2.py +++ b/scripts/expertise/expertise_co_timer_reset_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_timer_reset_2') - - actor.addSkillMod('expertise_delay_line_co_remote_detonator', 240) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_timer_reset_2') - - actor.removeSkillMod('expertise_delay_line_co_remote_detonator', 240) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_timer_reset_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_timer_reset_2") return diff --git a/scripts/expertise/expertise_co_youll_regret_that_1.py b/scripts/expertise/expertise_co_youll_regret_that_1.py index eae8c028..a0895f86 100644 --- a/scripts/expertise/expertise_co_youll_regret_that_1.py +++ b/scripts/expertise/expertise_co_youll_regret_that_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_youll_regret_that_1') - - actor.addSkillMod('kill_meter_co_youll_regret_that_reac', 100) - actor.addSkillMod('expertise_youll_regret_that', 1000) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_youll_regret_that_1') - - actor.removeSkillMod('kill_meter_co_youll_regret_that_reac', 100) - actor.removeSkillMod('expertise_youll_regret_that', 1000) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_youll_regret_that_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_youll_regret_that_1") return diff --git a/scripts/expertise/expertise_co_youll_regret_that_2.py b/scripts/expertise/expertise_co_youll_regret_that_2.py index 8075c520..d96de9f4 100644 --- a/scripts/expertise/expertise_co_youll_regret_that_2.py +++ b/scripts/expertise/expertise_co_youll_regret_that_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_youll_regret_that_2') - - actor.addSkillMod('kill_meter_co_youll_regret_that_reac', 0) - actor.addSkillMod('expertise_youll_regret_that', 1000) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_youll_regret_that_2') - - actor.removeSkillMod('kill_meter_co_youll_regret_that_reac', 0) - actor.removeSkillMod('expertise_youll_regret_that', 1000) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_youll_regret_that_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_youll_regret_that_2") return diff --git a/scripts/expertise/expertise_co_youll_regret_that_3.py b/scripts/expertise/expertise_co_youll_regret_that_3.py index e4724ece..0ab9bab3 100644 --- a/scripts/expertise/expertise_co_youll_regret_that_3.py +++ b/scripts/expertise/expertise_co_youll_regret_that_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_youll_regret_that_3') - - actor.addSkillMod('kill_meter_co_youll_regret_that_reac', 0) - actor.addSkillMod('expertise_youll_regret_that', 1000) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_youll_regret_that_3') - - actor.removeSkillMod('kill_meter_co_youll_regret_that_reac', 0) - actor.removeSkillMod('expertise_youll_regret_that', 1000) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_youll_regret_that_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_youll_regret_that_3") return diff --git a/scripts/expertise/expertise_co_youll_regret_that_4.py b/scripts/expertise/expertise_co_youll_regret_that_4.py index b4e02069..95a86d07 100644 --- a/scripts/expertise/expertise_co_youll_regret_that_4.py +++ b/scripts/expertise/expertise_co_youll_regret_that_4.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.addSkill('expertise_co_youll_regret_that_4') - - actor.addSkillMod('kill_meter_co_youll_regret_that_reac', 0) - actor.addSkillMod('expertise_youll_regret_that', 1000) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'commando_1a': - return - - actor.removeSkill('expertise_co_youll_regret_that_4') - - actor.removeSkillMod('kill_meter_co_youll_regret_that_reac', 0) - actor.removeSkillMod('expertise_youll_regret_that', 1000) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_co_youll_regret_that_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_co_youll_regret_that_4") return diff --git a/scripts/expertise/expertise_cybernetic_dexterity_1.py b/scripts/expertise/expertise_cybernetic_dexterity_1.py index 173aec59..db71010f 100644 --- a/scripts/expertise/expertise_cybernetic_dexterity_1.py +++ b/scripts/expertise/expertise_cybernetic_dexterity_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_cybernetic_dexterity_1') - - actor.addSkillMod('cybernetic_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_cybernetic_dexterity_1') - - actor.removeSkillMod('cybernetic_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_cybernetic_dexterity_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_cybernetic_dexterity_1") return diff --git a/scripts/expertise/expertise_cybernetic_dexterity_2.py b/scripts/expertise/expertise_cybernetic_dexterity_2.py index 1627c0f4..40cfd8c9 100644 --- a/scripts/expertise/expertise_cybernetic_dexterity_2.py +++ b/scripts/expertise/expertise_cybernetic_dexterity_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_cybernetic_dexterity_2') - - actor.addSkillMod('cybernetic_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_cybernetic_dexterity_2') - - actor.removeSkillMod('cybernetic_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_cybernetic_dexterity_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_cybernetic_dexterity_2") return diff --git a/scripts/expertise/expertise_cybernetic_dexterity_3.py b/scripts/expertise/expertise_cybernetic_dexterity_3.py index e80429b1..de7ea37b 100644 --- a/scripts/expertise/expertise_cybernetic_dexterity_3.py +++ b/scripts/expertise/expertise_cybernetic_dexterity_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_cybernetic_dexterity_3') - - actor.addSkillMod('cybernetic_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_cybernetic_dexterity_3') - - actor.removeSkillMod('cybernetic_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_cybernetic_dexterity_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_cybernetic_dexterity_3") return diff --git a/scripts/expertise/expertise_cybernetic_dexterity_4.py b/scripts/expertise/expertise_cybernetic_dexterity_4.py index 9e47bf2b..303f05f7 100644 --- a/scripts/expertise/expertise_cybernetic_dexterity_4.py +++ b/scripts/expertise/expertise_cybernetic_dexterity_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_cybernetic_dexterity_4') - - actor.addSkillMod('cybernetic_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_cybernetic_dexterity_4') - - actor.removeSkillMod('cybernetic_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_cybernetic_dexterity_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_cybernetic_dexterity_4") return diff --git a/scripts/expertise/expertise_domestic_artisan_advanced_theory_1.py b/scripts/expertise/expertise_domestic_artisan_advanced_theory_1.py index bd8a80ca..7768503c 100644 --- a/scripts/expertise/expertise_domestic_artisan_advanced_theory_1.py +++ b/scripts/expertise/expertise_domestic_artisan_advanced_theory_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_artisan_advanced_theory_1') - - actor.addSkillMod('general_experimentation', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_artisan_advanced_theory_1') - - actor.removeSkillMod('general_experimentation', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_artisan_advanced_theory_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_artisan_advanced_theory_1") return diff --git a/scripts/expertise/expertise_domestic_artisan_dexterity_1.py b/scripts/expertise/expertise_domestic_artisan_dexterity_1.py index f473579f..558c2105 100644 --- a/scripts/expertise/expertise_domestic_artisan_dexterity_1.py +++ b/scripts/expertise/expertise_domestic_artisan_dexterity_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_artisan_dexterity_1') - - actor.addSkillMod('general_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_artisan_dexterity_1') - - actor.removeSkillMod('general_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_artisan_dexterity_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_artisan_dexterity_1") return diff --git a/scripts/expertise/expertise_domestic_artisan_dexterity_2.py b/scripts/expertise/expertise_domestic_artisan_dexterity_2.py index 913a4d0e..8c7ab6cf 100644 --- a/scripts/expertise/expertise_domestic_artisan_dexterity_2.py +++ b/scripts/expertise/expertise_domestic_artisan_dexterity_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_artisan_dexterity_2') - - actor.addSkillMod('general_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_artisan_dexterity_2') - - actor.removeSkillMod('general_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_artisan_dexterity_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_artisan_dexterity_2") return diff --git a/scripts/expertise/expertise_domestic_artisan_dexterity_3.py b/scripts/expertise/expertise_domestic_artisan_dexterity_3.py index a430b03f..3759a96d 100644 --- a/scripts/expertise/expertise_domestic_artisan_dexterity_3.py +++ b/scripts/expertise/expertise_domestic_artisan_dexterity_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_artisan_dexterity_3') - - actor.addSkillMod('general_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_artisan_dexterity_3') - - actor.removeSkillMod('general_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_artisan_dexterity_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_artisan_dexterity_3") return diff --git a/scripts/expertise/expertise_domestic_artisan_dexterity_4.py b/scripts/expertise/expertise_domestic_artisan_dexterity_4.py index aa5c57b2..4be842ea 100644 --- a/scripts/expertise/expertise_domestic_artisan_dexterity_4.py +++ b/scripts/expertise/expertise_domestic_artisan_dexterity_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_artisan_dexterity_4') - - actor.addSkillMod('general_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_artisan_dexterity_4') - - actor.removeSkillMod('general_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_artisan_dexterity_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_artisan_dexterity_4") return diff --git a/scripts/expertise/expertise_domestic_artisan_hypothesis_1.py b/scripts/expertise/expertise_domestic_artisan_hypothesis_1.py index 00c3dbcb..d8af5dc4 100644 --- a/scripts/expertise/expertise_domestic_artisan_hypothesis_1.py +++ b/scripts/expertise/expertise_domestic_artisan_hypothesis_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_artisan_hypothesis_1') - - actor.addSkillMod('expertise_experimentation_increase_artisan', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_artisan_hypothesis_1') - - actor.removeSkillMod('expertise_experimentation_increase_artisan', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_artisan_artisan_hypthesis_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_artisan_artisan_hypthesis_1") return diff --git a/scripts/expertise/expertise_domestic_artisan_hypothesis_2.py b/scripts/expertise/expertise_domestic_artisan_hypothesis_2.py index b0e1ffc0..d9a13f59 100644 --- a/scripts/expertise/expertise_domestic_artisan_hypothesis_2.py +++ b/scripts/expertise/expertise_domestic_artisan_hypothesis_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_artisan_hypothesis_2') - - actor.addSkillMod('expertise_experimentation_increase_artisan', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_artisan_hypothesis_2') - - actor.removeSkillMod('expertise_experimentation_increase_artisan', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_artisan_hypthesis_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_artisan_hypthesis_2") return diff --git a/scripts/expertise/expertise_domestic_artisan_hypothesis_3.py b/scripts/expertise/expertise_domestic_artisan_hypothesis_3.py index e3411464..1ebf788d 100644 --- a/scripts/expertise/expertise_domestic_artisan_hypothesis_3.py +++ b/scripts/expertise/expertise_domestic_artisan_hypothesis_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_artisan_hypothesis_3') - - actor.addSkillMod('expertise_experimentation_increase_artisan', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_artisan_hypothesis_3') - - actor.removeSkillMod('expertise_experimentation_increase_artisan', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_artisan_hypthesis_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_artisan_hypthesis_3") return diff --git a/scripts/expertise/expertise_domestic_artisan_hypothesis_4.py b/scripts/expertise/expertise_domestic_artisan_hypothesis_4.py index 81e4a849..e0797ccd 100644 --- a/scripts/expertise/expertise_domestic_artisan_hypothesis_4.py +++ b/scripts/expertise/expertise_domestic_artisan_hypothesis_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_artisan_hypothesis_4') - - actor.addSkillMod('expertise_experimentation_increase_artisan', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_artisan_hypothesis_4') - - actor.removeSkillMod('expertise_experimentation_increase_artisan', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_artisan_hypthesis_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_artisan_hypthesis_4") return diff --git a/scripts/expertise/expertise_domestic_chef_advanced_theory_1.py b/scripts/expertise/expertise_domestic_chef_advanced_theory_1.py index e3012ee2..2ee6b7d6 100644 --- a/scripts/expertise/expertise_domestic_chef_advanced_theory_1.py +++ b/scripts/expertise/expertise_domestic_chef_advanced_theory_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_chef_advanced_theory_1') - - actor.addSkillMod('food_experimentation', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_chef_advanced_theory_1') - - actor.removeSkillMod('food_experimentation', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_chef_advanced_theory_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_chef_advanced_theory_1") return diff --git a/scripts/expertise/expertise_domestic_chef_dexterity_1.py b/scripts/expertise/expertise_domestic_chef_dexterity_1.py index 0a8f7fdd..f3edfc97 100644 --- a/scripts/expertise/expertise_domestic_chef_dexterity_1.py +++ b/scripts/expertise/expertise_domestic_chef_dexterity_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_chef_dexterity_1') - - actor.addSkillMod('food_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_chef_dexterity_1') - - actor.removeSkillMod('food_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_chef_dexterity_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_chef_dexterity_1") return diff --git a/scripts/expertise/expertise_domestic_chef_dexterity_2.py b/scripts/expertise/expertise_domestic_chef_dexterity_2.py index b5430961..006997ac 100644 --- a/scripts/expertise/expertise_domestic_chef_dexterity_2.py +++ b/scripts/expertise/expertise_domestic_chef_dexterity_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_chef_dexterity_2') - - actor.addSkillMod('food_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_chef_dexterity_2') - - actor.removeSkillMod('food_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_chef_dexterity_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_chef_dexterity_2") return diff --git a/scripts/expertise/expertise_domestic_chef_dexterity_3.py b/scripts/expertise/expertise_domestic_chef_dexterity_3.py index f2e888a5..f35f9cad 100644 --- a/scripts/expertise/expertise_domestic_chef_dexterity_3.py +++ b/scripts/expertise/expertise_domestic_chef_dexterity_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_chef_dexterity_3') - - actor.addSkillMod('food_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_chef_dexterity_3') - - actor.removeSkillMod('food_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_chef_dexterity_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_chef_dexterity_3") return diff --git a/scripts/expertise/expertise_domestic_chef_dexterity_4.py b/scripts/expertise/expertise_domestic_chef_dexterity_4.py index 0c8c273e..257e22e5 100644 --- a/scripts/expertise/expertise_domestic_chef_dexterity_4.py +++ b/scripts/expertise/expertise_domestic_chef_dexterity_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_chef_dexterity_4') - - actor.addSkillMod('food_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_chef_dexterity_4') - - actor.removeSkillMod('food_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_chef_dexterity_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_chef_dexterity_4") return diff --git a/scripts/expertise/expertise_domestic_chef_hypothesis_1.py b/scripts/expertise/expertise_domestic_chef_hypothesis_1.py index 4d0ef1b3..ce68731f 100644 --- a/scripts/expertise/expertise_domestic_chef_hypothesis_1.py +++ b/scripts/expertise/expertise_domestic_chef_hypothesis_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_chef_hypothesis_1') - - actor.addSkillMod('expertise_experimentation_increase_chef', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_chef_hypothesis_1') - - actor.removeSkillMod('expertise_experimentation_increase_chef', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_chef_hypothesis_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_chef_hypothesis_1") return diff --git a/scripts/expertise/expertise_domestic_chef_hypothesis_2.py b/scripts/expertise/expertise_domestic_chef_hypothesis_2.py index 2203b3f4..e27b783b 100644 --- a/scripts/expertise/expertise_domestic_chef_hypothesis_2.py +++ b/scripts/expertise/expertise_domestic_chef_hypothesis_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_chef_hypothesis_2') - - actor.addSkillMod('expertise_experimentation_increase_chef', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_chef_hypothesis_2') - - actor.removeSkillMod('expertise_experimentation_increase_chef', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_chef_hypothesis_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_chef_hypothesis_2") return diff --git a/scripts/expertise/expertise_domestic_chef_hypothesis_3.py b/scripts/expertise/expertise_domestic_chef_hypothesis_3.py index b82e5505..578de3e8 100644 --- a/scripts/expertise/expertise_domestic_chef_hypothesis_3.py +++ b/scripts/expertise/expertise_domestic_chef_hypothesis_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_chef_hypothesis_3') - - actor.addSkillMod('expertise_experimentation_increase_chef', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_chef_hypothesis_3') - - actor.removeSkillMod('expertise_experimentation_increase_chef', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_chef_hypothesis_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_chef_hypothesis_3") return diff --git a/scripts/expertise/expertise_domestic_chef_hypothesis_4.py b/scripts/expertise/expertise_domestic_chef_hypothesis_4.py index 53e10ab3..65d4a9d4 100644 --- a/scripts/expertise/expertise_domestic_chef_hypothesis_4.py +++ b/scripts/expertise/expertise_domestic_chef_hypothesis_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_chef_hypothesis_4') - - actor.addSkillMod('expertise_experimentation_increase_chef', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_chef_hypothesis_4') - - actor.removeSkillMod('expertise_experimentation_increase_chef', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_chef_hypothesis_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_chef_hypothesis_4") return diff --git a/scripts/expertise/expertise_domestic_chef_insight_1.py b/scripts/expertise/expertise_domestic_chef_insight_1.py index 1e07a424..620ede83 100644 --- a/scripts/expertise/expertise_domestic_chef_insight_1.py +++ b/scripts/expertise/expertise_domestic_chef_insight_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_chef_insight_1') - - actor.addSkillMod('expertise_complexity_decrease_chef', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_chef_insight_1') - - actor.removeSkillMod('expertise_complexity_decrease_chef', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_chef_insight_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_chef_insight_1") return diff --git a/scripts/expertise/expertise_domestic_chef_insight_2.py b/scripts/expertise/expertise_domestic_chef_insight_2.py index b3c8a9b9..1b3cfd75 100644 --- a/scripts/expertise/expertise_domestic_chef_insight_2.py +++ b/scripts/expertise/expertise_domestic_chef_insight_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_chef_insight_2') - - actor.addSkillMod('expertise_complexity_decrease_chef', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_chef_insight_2') - - actor.removeSkillMod('expertise_complexity_decrease_chef', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_chef_insight_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_chef_insight_2") return diff --git a/scripts/expertise/expertise_domestic_chef_keen_understanding_1.py b/scripts/expertise/expertise_domestic_chef_keen_understanding_1.py index 4449c44c..2d6a9548 100644 --- a/scripts/expertise/expertise_domestic_chef_keen_understanding_1.py +++ b/scripts/expertise/expertise_domestic_chef_keen_understanding_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_chef_keen_understanding_1') - - actor.addSkillMod('expertise_complexity_decrease_chef', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_chef_keen_understanding_1') - - actor.removeSkillMod('expertise_complexity_decrease_chef', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_chef_keen_understanding_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_chef_keen_understanding_1") return diff --git a/scripts/expertise/expertise_domestic_chef_keen_understanding_2.py b/scripts/expertise/expertise_domestic_chef_keen_understanding_2.py index 3fdc103f..1a8fef1f 100644 --- a/scripts/expertise/expertise_domestic_chef_keen_understanding_2.py +++ b/scripts/expertise/expertise_domestic_chef_keen_understanding_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_chef_keen_understanding_2') - - actor.addSkillMod('expertise_complexity_decrease_chef', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_chef_keen_understanding_2') - - actor.removeSkillMod('expertise_complexity_decrease_chef', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_chef_keen_understanding_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_chef_keen_understanding_2") return diff --git a/scripts/expertise/expertise_domestic_chef_schematic_1_1.py b/scripts/expertise/expertise_domestic_chef_schematic_1_1.py index 47138106..8da9070b 100644 --- a/scripts/expertise/expertise_domestic_chef_schematic_1_1.py +++ b/scripts/expertise/expertise_domestic_chef_schematic_1_1.py @@ -1,46 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_chef_schematic_1_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_chef_schematic_1_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_chef_schematic_1_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_chef_schematic_1_1") return diff --git a/scripts/expertise/expertise_domestic_chef_schematic_2_1.py b/scripts/expertise/expertise_domestic_chef_schematic_2_1.py index 1ec86323..ec21ccbf 100644 --- a/scripts/expertise/expertise_domestic_chef_schematic_2_1.py +++ b/scripts/expertise/expertise_domestic_chef_schematic_2_1.py @@ -1,46 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_chef_schematic_2_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_chef_schematic_2_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_chef_schematic_2_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_chef_schematic_2_1") return diff --git a/scripts/expertise/expertise_domestic_resource_processing_1.py b/scripts/expertise/expertise_domestic_resource_processing_1.py index 62a2adf5..7fa9d660 100644 --- a/scripts/expertise/expertise_domestic_resource_processing_1.py +++ b/scripts/expertise/expertise_domestic_resource_processing_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_resource_processing_1') - - actor.addSkillMod('expertise_resource_quality_increase', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_resource_processing_1') - - actor.removeSkillMod('expertise_resource_quality_increase', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_resource_processing_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_resource_processing_1") return diff --git a/scripts/expertise/expertise_domestic_resource_processing_2.py b/scripts/expertise/expertise_domestic_resource_processing_2.py index ccd73bd5..8e6e3a11 100644 --- a/scripts/expertise/expertise_domestic_resource_processing_2.py +++ b/scripts/expertise/expertise_domestic_resource_processing_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_resource_processing_2') - - actor.addSkillMod('expertise_resource_quality_increase', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_resource_processing_2') - - actor.removeSkillMod('expertise_resource_quality_increase', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_resource_processing_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_resource_processing_2") return diff --git a/scripts/expertise/expertise_domestic_resource_refinement_1.py b/scripts/expertise/expertise_domestic_resource_refinement_1.py index fd3e810f..b0352b8e 100644 --- a/scripts/expertise/expertise_domestic_resource_refinement_1.py +++ b/scripts/expertise/expertise_domestic_resource_refinement_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_resource_refinement_1') - - actor.addSkillMod('expertise_resource_quality_increase', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_resource_refinement_1') - - actor.removeSkillMod('expertise_resource_quality_increase', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_resource_refinement_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_resource_refinement_1") return diff --git a/scripts/expertise/expertise_domestic_resource_refinement_2.py b/scripts/expertise/expertise_domestic_resource_refinement_2.py index 9dfedf70..74913100 100644 --- a/scripts/expertise/expertise_domestic_resource_refinement_2.py +++ b/scripts/expertise/expertise_domestic_resource_refinement_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_resource_refinement_2') - - actor.addSkillMod('expertise_resource_quality_increase', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_resource_refinement_2') - - actor.removeSkillMod('expertise_resource_quality_increase', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_resource_refinement_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_resource_refinement_2") return diff --git a/scripts/expertise/expertise_domestic_tailor_advanced_theory_1.py b/scripts/expertise/expertise_domestic_tailor_advanced_theory_1.py index 2a84d182..46aa159d 100644 --- a/scripts/expertise/expertise_domestic_tailor_advanced_theory_1.py +++ b/scripts/expertise/expertise_domestic_tailor_advanced_theory_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_tailor_advanced_theory_1') - - actor.addSkillMod('clothing_experimentation', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_tailor_advanced_theory_1') - - actor.removeSkillMod('clothing_experimentation', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_tailor_advanced_theory_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_tailor_advanced_theory_1") return diff --git a/scripts/expertise/expertise_domestic_tailor_attachment_upgrade_1.py b/scripts/expertise/expertise_domestic_tailor_attachment_upgrade_1.py index c3be240b..d10933fb 100644 --- a/scripts/expertise/expertise_domestic_tailor_attachment_upgrade_1.py +++ b/scripts/expertise/expertise_domestic_tailor_attachment_upgrade_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_tailor_attachment_upgrade_1') - - actor.addSkillMod('expertise_attachment_upgrade', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_tailor_attachment_upgrade_1') - - actor.removeSkillMod('expertise_attachment_upgrade', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_tailor_attachment_upgrade_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_tailor_attachment_upgrade_1") return diff --git a/scripts/expertise/expertise_domestic_tailor_dexterity_1.py b/scripts/expertise/expertise_domestic_tailor_dexterity_1.py index c0c3c0bb..7b05bf09 100644 --- a/scripts/expertise/expertise_domestic_tailor_dexterity_1.py +++ b/scripts/expertise/expertise_domestic_tailor_dexterity_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_tailor_dexterity_1') - - actor.addSkillMod('clothing_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_tailor_dexterity_1') - - actor.removeSkillMod('clothing_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_tailor_dexterity_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_tailor_dexterity_1") return diff --git a/scripts/expertise/expertise_domestic_tailor_dexterity_2.py b/scripts/expertise/expertise_domestic_tailor_dexterity_2.py index 24fb5fc8..16c9b28e 100644 --- a/scripts/expertise/expertise_domestic_tailor_dexterity_2.py +++ b/scripts/expertise/expertise_domestic_tailor_dexterity_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_tailor_dexterity_2') - - actor.addSkillMod('clothing_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_tailor_dexterity_2') - - actor.removeSkillMod('clothing_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_tailor_dexterity_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_tailor_dexterity_2") return diff --git a/scripts/expertise/expertise_domestic_tailor_dexterity_3.py b/scripts/expertise/expertise_domestic_tailor_dexterity_3.py index 8bee3264..0f4697c9 100644 --- a/scripts/expertise/expertise_domestic_tailor_dexterity_3.py +++ b/scripts/expertise/expertise_domestic_tailor_dexterity_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_tailor_dexterity_3') - - actor.addSkillMod('clothing_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_tailor_dexterity_3') - - actor.removeSkillMod('clothing_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_tailor_dexterity_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_tailor_dexterity_3") return diff --git a/scripts/expertise/expertise_domestic_tailor_dexterity_4.py b/scripts/expertise/expertise_domestic_tailor_dexterity_4.py index 828adfd1..8ef125c7 100644 --- a/scripts/expertise/expertise_domestic_tailor_dexterity_4.py +++ b/scripts/expertise/expertise_domestic_tailor_dexterity_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_tailor_dexterity_4') - - actor.addSkillMod('clothing_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_tailor_dexterity_4') - - actor.removeSkillMod('clothing_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_tailor_dexterity_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_tailor_dexterity_4") return diff --git a/scripts/expertise/expertise_domestic_tailor_hypothesis_1.py b/scripts/expertise/expertise_domestic_tailor_hypothesis_1.py index d384d0ea..e9e14164 100644 --- a/scripts/expertise/expertise_domestic_tailor_hypothesis_1.py +++ b/scripts/expertise/expertise_domestic_tailor_hypothesis_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_tailor_hypothesis_1') - - actor.addSkillMod('expertise_experimentation_increase_tailor', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_tailor_hypothesis_1') - - actor.removeSkillMod('expertise_experimentation_increase_tailor', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_tailor_hypothesis_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_tailor_hypothesis_1") return diff --git a/scripts/expertise/expertise_domestic_tailor_hypothesis_2.py b/scripts/expertise/expertise_domestic_tailor_hypothesis_2.py index dc25b650..0dad6f4d 100644 --- a/scripts/expertise/expertise_domestic_tailor_hypothesis_2.py +++ b/scripts/expertise/expertise_domestic_tailor_hypothesis_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_tailor_hypothesis_2') - - actor.addSkillMod('expertise_experimentation_increase_tailor', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_tailor_hypothesis_2') - - actor.removeSkillMod('expertise_experimentation_increase_tailor', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_tailor_hypothesis_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_tailor_hypothesis_2") return diff --git a/scripts/expertise/expertise_domestic_tailor_hypothesis_3.py b/scripts/expertise/expertise_domestic_tailor_hypothesis_3.py index 41572d81..70d55b5c 100644 --- a/scripts/expertise/expertise_domestic_tailor_hypothesis_3.py +++ b/scripts/expertise/expertise_domestic_tailor_hypothesis_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_tailor_hypothesis_3') - - actor.addSkillMod('expertise_experimentation_increase_tailor', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_tailor_hypothesis_3') - - actor.removeSkillMod('expertise_experimentation_increase_tailor', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_tailor_hypothesis_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_tailor_hypothesis_3") return diff --git a/scripts/expertise/expertise_domestic_tailor_hypothesis_4.py b/scripts/expertise/expertise_domestic_tailor_hypothesis_4.py index 2009c763..c9a25d1c 100644 --- a/scripts/expertise/expertise_domestic_tailor_hypothesis_4.py +++ b/scripts/expertise/expertise_domestic_tailor_hypothesis_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_tailor_hypothesis_4') - - actor.addSkillMod('expertise_experimentation_increase_tailor', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_tailor_hypothesis_4') - - actor.removeSkillMod('expertise_experimentation_increase_tailor', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_tailor_hypothesis_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_tailor_hypothesis_4") return diff --git a/scripts/expertise/expertise_domestic_tailor_insight_1.py b/scripts/expertise/expertise_domestic_tailor_insight_1.py index 1734ab71..dcafb9f2 100644 --- a/scripts/expertise/expertise_domestic_tailor_insight_1.py +++ b/scripts/expertise/expertise_domestic_tailor_insight_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_tailor_insight_1') - - actor.addSkillMod('expertise_complexity_decrease_tailor', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_tailor_insight_1') - - actor.removeSkillMod('expertise_complexity_decrease_tailor', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_tailor_insight_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_tailor_insight_1") return diff --git a/scripts/expertise/expertise_domestic_tailor_insight_2.py b/scripts/expertise/expertise_domestic_tailor_insight_2.py index e65231bd..cd307c4c 100644 --- a/scripts/expertise/expertise_domestic_tailor_insight_2.py +++ b/scripts/expertise/expertise_domestic_tailor_insight_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_tailor_insight_2') - - actor.addSkillMod('expertise_complexity_decrease_tailor', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_tailor_insight_2') - - actor.removeSkillMod('expertise_complexity_decrease_tailor', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_tailor_insight_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_tailor_insight_2") return diff --git a/scripts/expertise/expertise_domestic_tailor_keen_understanding_1.py b/scripts/expertise/expertise_domestic_tailor_keen_understanding_1.py index 59a274ff..e4c2ab72 100644 --- a/scripts/expertise/expertise_domestic_tailor_keen_understanding_1.py +++ b/scripts/expertise/expertise_domestic_tailor_keen_understanding_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_tailor_keen_understanding_1') - - actor.addSkillMod('expertise_complexity_decrease_tailor', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_tailor_keen_understanding_1') - - actor.removeSkillMod('expertise_complexity_decrease_tailor', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_tailor_keen_understanding_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_tailor_keen_understanding_1") return diff --git a/scripts/expertise/expertise_domestic_tailor_keen_understanding_2.py b/scripts/expertise/expertise_domestic_tailor_keen_understanding_2.py index 1504d0e2..b866a83f 100644 --- a/scripts/expertise/expertise_domestic_tailor_keen_understanding_2.py +++ b/scripts/expertise/expertise_domestic_tailor_keen_understanding_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_tailor_keen_understanding_2') - - actor.addSkillMod('expertise_complexity_decrease_tailor', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_tailor_keen_understanding_2') - - actor.removeSkillMod('expertise_complexity_decrease_tailor', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_tailor_keen_understanding_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_tailor_keen_understanding_2") return diff --git a/scripts/expertise/expertise_domestic_tailor_socket_bonus_1.py b/scripts/expertise/expertise_domestic_tailor_socket_bonus_1.py index 9c86c720..4cac0dfc 100644 --- a/scripts/expertise/expertise_domestic_tailor_socket_bonus_1.py +++ b/scripts/expertise/expertise_domestic_tailor_socket_bonus_1.py @@ -1,46 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.addSkill('expertise_domestic_tailor_socket_bonus_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_dom_1a': - return - - actor.removeSkill('expertise_domestic_tailor_socket_bonus_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_domestic_tailor_socket_bonus_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_domestic_tailor_socket_bonus_1") return diff --git a/scripts/expertise/expertise_en_affability_1.py b/scripts/expertise/expertise_en_affability_1.py index 7a5f2735..35dfd326 100644 --- a/scripts/expertise/expertise_en_affability_1.py +++ b/scripts/expertise/expertise_en_affability_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_affability_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_affability_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_affability_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_affability_1") + return diff --git a/scripts/expertise/expertise_en_affability_2.py b/scripts/expertise/expertise_en_affability_2.py index 7bce595d..38b336df 100644 --- a/scripts/expertise/expertise_en_affability_2.py +++ b/scripts/expertise/expertise_en_affability_2.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_affability_2') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_affability_2') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_affability_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_affability_2") + return diff --git a/scripts/expertise/expertise_en_affability_3.py b/scripts/expertise/expertise_en_affability_3.py index c9ec177b..0a2cf7fc 100644 --- a/scripts/expertise/expertise_en_affability_3.py +++ b/scripts/expertise/expertise_en_affability_3.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_affability_3') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_affability_3') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_affability_3") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_affability_3") + return diff --git a/scripts/expertise/expertise_en_affability_4.py b/scripts/expertise/expertise_en_affability_4.py index 33d4eebe..3949d215 100644 --- a/scripts/expertise/expertise_en_affability_4.py +++ b/scripts/expertise/expertise_en_affability_4.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_affability_4') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_affability_4') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_affability_4") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_affability_4") + return diff --git a/scripts/expertise/expertise_en_allure_1.py b/scripts/expertise/expertise_en_allure_1.py index dde55739..9448b911 100644 --- a/scripts/expertise/expertise_en_allure_1.py +++ b/scripts/expertise/expertise_en_allure_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_allure_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_allure_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_allure_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_allure_1") + return diff --git a/scripts/expertise/expertise_en_allure_2.py b/scripts/expertise/expertise_en_allure_2.py index 737c85bd..831a7c36 100644 --- a/scripts/expertise/expertise_en_allure_2.py +++ b/scripts/expertise/expertise_en_allure_2.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_allure_2') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_allure_2') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_allure_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_allure_2") + return diff --git a/scripts/expertise/expertise_en_allure_3.py b/scripts/expertise/expertise_en_allure_3.py index 271fc696..f896a1d2 100644 --- a/scripts/expertise/expertise_en_allure_3.py +++ b/scripts/expertise/expertise_en_allure_3.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_allure_3') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_allure_3') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_allure_3") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_allure_3") + return diff --git a/scripts/expertise/expertise_en_annulling_1.py b/scripts/expertise/expertise_en_annulling_1.py index 719ec07e..6055557a 100644 --- a/scripts/expertise/expertise_en_annulling_1.py +++ b/scripts/expertise/expertise_en_annulling_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_annulling_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_annulling_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_annulling_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_annulling_1") + return diff --git a/scripts/expertise/expertise_en_annulling_2.py b/scripts/expertise/expertise_en_annulling_2.py index 6dd3e00c..e06fc2ef 100644 --- a/scripts/expertise/expertise_en_annulling_2.py +++ b/scripts/expertise/expertise_en_annulling_2.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_annulling_2') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_annulling_2') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_annulling_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_annulling_2") + return diff --git a/scripts/expertise/expertise_en_annulling_3.py b/scripts/expertise/expertise_en_annulling_3.py index 423efeee..b26f4814 100644 --- a/scripts/expertise/expertise_en_annulling_3.py +++ b/scripts/expertise/expertise_en_annulling_3.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_annulling_3') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_annulling_3') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_annulling_3") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_annulling_3") + return diff --git a/scripts/expertise/expertise_en_conditioned_vessel_1.py b/scripts/expertise/expertise_en_conditioned_vessel_1.py index f902b662..896a8752 100644 --- a/scripts/expertise/expertise_en_conditioned_vessel_1.py +++ b/scripts/expertise/expertise_en_conditioned_vessel_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_conditioned_vessel_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_conditioned_vessel_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_conditioned_vessel_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_conditioned_vessel_1") + return diff --git a/scripts/expertise/expertise_en_conditioned_vessel_2.py b/scripts/expertise/expertise_en_conditioned_vessel_2.py index d58db7c8..e7123ab7 100644 --- a/scripts/expertise/expertise_en_conditioned_vessel_2.py +++ b/scripts/expertise/expertise_en_conditioned_vessel_2.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_conditioned_vessel_2') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_conditioned_vessel_2') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_conditioned_vessel_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_conditioned_vessel_2") + return diff --git a/scripts/expertise/expertise_en_conditioned_vessel_3.py b/scripts/expertise/expertise_en_conditioned_vessel_3.py index 72a80217..e0292169 100644 --- a/scripts/expertise/expertise_en_conditioned_vessel_3.py +++ b/scripts/expertise/expertise_en_conditioned_vessel_3.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_conditioned_vessel_3') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_conditioned_vessel_3') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_conditioned_vessel_3") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_conditioned_vessel_3") + return diff --git a/scripts/expertise/expertise_en_conditioned_vessel_4.py b/scripts/expertise/expertise_en_conditioned_vessel_4.py index fff13364..f0d7b6e7 100644 --- a/scripts/expertise/expertise_en_conditioned_vessel_4.py +++ b/scripts/expertise/expertise_en_conditioned_vessel_4.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_conditioned_vessel_4') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_conditioned_vessel_4') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_conditioned_vessel_4") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_conditioned_vessel_4") + return diff --git a/scripts/expertise/expertise_en_controlled_spin_1.py b/scripts/expertise/expertise_en_controlled_spin_1.py index 71236177..dc088a17 100644 --- a/scripts/expertise/expertise_en_controlled_spin_1.py +++ b/scripts/expertise/expertise_en_controlled_spin_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_controlled_spin_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_controlled_spin_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_controlled_spin_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_controlled_spin_1") + return diff --git a/scripts/expertise/expertise_en_controlled_spin_2.py b/scripts/expertise/expertise_en_controlled_spin_2.py index 782621db..018aae71 100644 --- a/scripts/expertise/expertise_en_controlled_spin_2.py +++ b/scripts/expertise/expertise_en_controlled_spin_2.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_controlled_spin_2') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_controlled_spin_2') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_controlled_spin_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_controlled_spin_2") + return diff --git a/scripts/expertise/expertise_en_controlled_spin_3.py b/scripts/expertise/expertise_en_controlled_spin_3.py index 657fa429..4850d8cc 100644 --- a/scripts/expertise/expertise_en_controlled_spin_3.py +++ b/scripts/expertise/expertise_en_controlled_spin_3.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_controlled_spin_3') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_controlled_spin_3') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_controlled_spin_3") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_controlled_spin_3") + return diff --git a/scripts/expertise/expertise_en_creativity_1.py b/scripts/expertise/expertise_en_creativity_1.py index e0b3ead8..ec5120d4 100644 --- a/scripts/expertise/expertise_en_creativity_1.py +++ b/scripts/expertise/expertise_en_creativity_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_creativity_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_creativity_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_creativity_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_creativity_1") + return diff --git a/scripts/expertise/expertise_en_creativity_2.py b/scripts/expertise/expertise_en_creativity_2.py index b00bf0e0..9e919439 100644 --- a/scripts/expertise/expertise_en_creativity_2.py +++ b/scripts/expertise/expertise_en_creativity_2.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_creativity_2') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_creativity_2') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_creativity_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_creativity_2") + return diff --git a/scripts/expertise/expertise_en_creativity_3.py b/scripts/expertise/expertise_en_creativity_3.py index a0dc7c5d..a4e8153f 100644 --- a/scripts/expertise/expertise_en_creativity_3.py +++ b/scripts/expertise/expertise_en_creativity_3.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_creativity_3') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_creativity_3') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_creativity_3") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_creativity_3") + return diff --git a/scripts/expertise/expertise_en_creativity_4.py b/scripts/expertise/expertise_en_creativity_4.py index 3d753096..f743578d 100644 --- a/scripts/expertise/expertise_en_creativity_4.py +++ b/scripts/expertise/expertise_en_creativity_4.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_creativity_4') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_creativity_4') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_creativity_4") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_creativity_4") + return diff --git a/scripts/expertise/expertise_en_dramatic_flair_1.py b/scripts/expertise/expertise_en_dramatic_flair_1.py index e9c2f3ec..bd280ed0 100644 --- a/scripts/expertise/expertise_en_dramatic_flair_1.py +++ b/scripts/expertise/expertise_en_dramatic_flair_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_dramatic_flair_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_dramatic_flair_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_dramatic_flair_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_dramatic_flair_1") + return diff --git a/scripts/expertise/expertise_en_dramatic_flair_2.py b/scripts/expertise/expertise_en_dramatic_flair_2.py index 34897265..7d32d156 100644 --- a/scripts/expertise/expertise_en_dramatic_flair_2.py +++ b/scripts/expertise/expertise_en_dramatic_flair_2.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_dramatic_flair_2') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_dramatic_flair_2') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_dramatic_flair_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_dramatic_flair_2") + return diff --git a/scripts/expertise/expertise_en_dramatic_flair_3.py b/scripts/expertise/expertise_en_dramatic_flair_3.py index 5c9c5ba6..16533340 100644 --- a/scripts/expertise/expertise_en_dramatic_flair_3.py +++ b/scripts/expertise/expertise_en_dramatic_flair_3.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_dramatic_flair_3') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_dramatic_flair_3') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_dramatic_flair_3") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_dramatic_flair_3") + return diff --git a/scripts/expertise/expertise_en_dramatic_flair_4.py b/scripts/expertise/expertise_en_dramatic_flair_4.py index 921c72d2..ccb52574 100644 --- a/scripts/expertise/expertise_en_dramatic_flair_4.py +++ b/scripts/expertise/expertise_en_dramatic_flair_4.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_dramatic_flair_4') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_dramatic_flair_4') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_dramatic_flair_4") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_dramatic_flair_4") + return diff --git a/scripts/expertise/expertise_en_emotional_prescience_1.py b/scripts/expertise/expertise_en_emotional_prescience_1.py index c3c07285..f9177d7c 100644 --- a/scripts/expertise/expertise_en_emotional_prescience_1.py +++ b/scripts/expertise/expertise_en_emotional_prescience_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_emotional_prescience_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_emotional_prescience_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_emotional_prescience_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_emotional_prescience_1") + return diff --git a/scripts/expertise/expertise_en_emotional_prescience_2.py b/scripts/expertise/expertise_en_emotional_prescience_2.py index 54062a47..5afb81a1 100644 --- a/scripts/expertise/expertise_en_emotional_prescience_2.py +++ b/scripts/expertise/expertise_en_emotional_prescience_2.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_emotional_prescience_2') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_emotional_prescience_2') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_emotional_prescience_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_emotional_prescience_2") + return diff --git a/scripts/expertise/expertise_en_emotional_prescience_3.py b/scripts/expertise/expertise_en_emotional_prescience_3.py index efbbf6fa..8f5b2500 100644 --- a/scripts/expertise/expertise_en_emotional_prescience_3.py +++ b/scripts/expertise/expertise_en_emotional_prescience_3.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_emotional_prescience_3') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_emotional_prescience_3') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_emotional_prescience_3") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_emotional_prescience_3") + return diff --git a/scripts/expertise/expertise_en_emotional_prescience_4.py b/scripts/expertise/expertise_en_emotional_prescience_4.py index ebb28e19..1a2ce7e1 100644 --- a/scripts/expertise/expertise_en_emotional_prescience_4.py +++ b/scripts/expertise/expertise_en_emotional_prescience_4.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_emotional_prescience_4') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_emotional_prescience_4') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_emotional_prescience_4") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_emotional_prescience_4") + return diff --git a/scripts/expertise/expertise_en_encore_heal_1.py b/scripts/expertise/expertise_en_encore_heal_1.py index f8dfb71c..14d899a0 100644 --- a/scripts/expertise/expertise_en_encore_heal_1.py +++ b/scripts/expertise/expertise_en_encore_heal_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_encore_heal_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_encore_heal_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_encore_heal_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_encore_heal_1") + return diff --git a/scripts/expertise/expertise_en_encore_heal_2.py b/scripts/expertise/expertise_en_encore_heal_2.py index e625e800..1ac0eb53 100644 --- a/scripts/expertise/expertise_en_encore_heal_2.py +++ b/scripts/expertise/expertise_en_encore_heal_2.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_encore_heal_2') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_encore_heal_2') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_encore_heal_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_encore_heal_2") + return diff --git a/scripts/expertise/expertise_en_encore_heal_3.py b/scripts/expertise/expertise_en_encore_heal_3.py index f409d34a..348742d1 100644 --- a/scripts/expertise/expertise_en_encore_heal_3.py +++ b/scripts/expertise/expertise_en_encore_heal_3.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_encore_heal_3') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_encore_heal_3') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_encore_heal_3") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_encore_heal_3") + return diff --git a/scripts/expertise/expertise_en_flush_with_success_1.py b/scripts/expertise/expertise_en_flush_with_success_1.py index 561871be..b25fc909 100644 --- a/scripts/expertise/expertise_en_flush_with_success_1.py +++ b/scripts/expertise/expertise_en_flush_with_success_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_flush_with_success_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_flush_with_success_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("en_flush_with_success_buff_package") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("en_flush_with_success_buff_package") + return diff --git a/scripts/expertise/expertise_en_focused_control_1.py b/scripts/expertise/expertise_en_focused_control_1.py index fb59c24b..99d0436a 100644 --- a/scripts/expertise/expertise_en_focused_control_1.py +++ b/scripts/expertise/expertise_en_focused_control_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_focused_control_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_focused_control_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_focused_control_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_focused_control_1") + return diff --git a/scripts/expertise/expertise_en_focused_control_2.py b/scripts/expertise/expertise_en_focused_control_2.py index 75e3342d..2b81f293 100644 --- a/scripts/expertise/expertise_en_focused_control_2.py +++ b/scripts/expertise/expertise_en_focused_control_2.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_focused_control_2') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_focused_control_2') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_focused_control_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_focused_control_2") + return diff --git a/scripts/expertise/expertise_en_focused_control_3.py b/scripts/expertise/expertise_en_focused_control_3.py index 508a3655..b256a48d 100644 --- a/scripts/expertise/expertise_en_focused_control_3.py +++ b/scripts/expertise/expertise_en_focused_control_3.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_focused_control_3') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_focused_control_3') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_focused_control_3") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_focused_control_3") + return diff --git a/scripts/expertise/expertise_en_focused_control_4.py b/scripts/expertise/expertise_en_focused_control_4.py index ff0055e7..f3ec007f 100644 --- a/scripts/expertise/expertise_en_focused_control_4.py +++ b/scripts/expertise/expertise_en_focused_control_4.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_focused_control_4') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_focused_control_4') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_focused_control_4") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_focused_control_4") + return diff --git a/scripts/expertise/expertise_en_folded_inward_1.py b/scripts/expertise/expertise_en_folded_inward_1.py index 92081f72..142d632c 100644 --- a/scripts/expertise/expertise_en_folded_inward_1.py +++ b/scripts/expertise/expertise_en_folded_inward_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_folded_inward_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_folded_inward_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_folded_inward_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_folded_inward_1") + return diff --git a/scripts/expertise/expertise_en_folded_inward_2.py b/scripts/expertise/expertise_en_folded_inward_2.py index dd0e1a76..3c56cd2c 100644 --- a/scripts/expertise/expertise_en_folded_inward_2.py +++ b/scripts/expertise/expertise_en_folded_inward_2.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_folded_inward_2') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_folded_inward_2') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_folded_inward_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_folded_inward_2") + return diff --git a/scripts/expertise/expertise_en_folded_inward_3.py b/scripts/expertise/expertise_en_folded_inward_3.py index e267f43a..40b26c21 100644 --- a/scripts/expertise/expertise_en_folded_inward_3.py +++ b/scripts/expertise/expertise_en_folded_inward_3.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_folded_inward_3') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_folded_inward_3') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_folded_inward_3") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_folded_inward_3") + return diff --git a/scripts/expertise/expertise_en_folded_inward_4.py b/scripts/expertise/expertise_en_folded_inward_4.py index 8b9f04ea..94c18354 100644 --- a/scripts/expertise/expertise_en_folded_inward_4.py +++ b/scripts/expertise/expertise_en_folded_inward_4.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_folded_inward_4') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_folded_inward_4') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_folded_inward_4") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_folded_inward_4") + return diff --git a/scripts/expertise/expertise_en_go_with_the_flow_1.py b/scripts/expertise/expertise_en_go_with_the_flow_1.py index cafced83..e51fdee5 100644 --- a/scripts/expertise/expertise_en_go_with_the_flow_1.py +++ b/scripts/expertise/expertise_en_go_with_the_flow_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_go_with_the_flow_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_go_with_the_flow_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("en_go_with_the_flow_buff_package") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("en_go_with_the_flow_buff_package") + return diff --git a/scripts/expertise/expertise_en_harvest_faire_1.py b/scripts/expertise/expertise_en_harvest_faire_1.py index aa8c759a..21238bc0 100644 --- a/scripts/expertise/expertise_en_harvest_faire_1.py +++ b/scripts/expertise/expertise_en_harvest_faire_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_harvest_faire_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_harvest_faire_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("en_harvest_fair_buff_package") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("en_harvest_fair_buff_package") + return diff --git a/scripts/expertise/expertise_en_heal_1.py b/scripts/expertise/expertise_en_heal_1.py index dc58a76f..d4e3d669 100644 --- a/scripts/expertise/expertise_en_heal_1.py +++ b/scripts/expertise/expertise_en_heal_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_heal_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_heal_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("en_heal_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("en_heal_1") + return diff --git a/scripts/expertise/expertise_en_holism_1.py b/scripts/expertise/expertise_en_holism_1.py index b2dc30fc..af3b40a1 100644 --- a/scripts/expertise/expertise_en_holism_1.py +++ b/scripts/expertise/expertise_en_holism_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_holism_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_holism_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("en_healer_buff_package") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("en_healer_buff_package") + return diff --git a/scripts/expertise/expertise_en_holographic_duration_1.py b/scripts/expertise/expertise_en_holographic_duration_1.py index 25e56ae7..04ec0485 100644 --- a/scripts/expertise/expertise_en_holographic_duration_1.py +++ b/scripts/expertise/expertise_en_holographic_duration_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_holographic_duration_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_holographic_duration_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_holographic_duration_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_holographic_duration_1") + return diff --git a/scripts/expertise/expertise_en_holographic_mastery_1.py b/scripts/expertise/expertise_en_holographic_mastery_1.py index e705762e..cb7f5424 100644 --- a/scripts/expertise/expertise_en_holographic_mastery_1.py +++ b/scripts/expertise/expertise_en_holographic_mastery_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - core.services.skillModService.addSkillMod(actor, 'expertise_en_holographic_additional_backup', 1) - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - core.services.skillModService.deductSkillMod(actor, 'expertise_en_holographic_additional_backup', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_holographic_mastery_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_holographic_mastery_1") + return diff --git a/scripts/expertise/expertise_en_holographic_mastery_2.py b/scripts/expertise/expertise_en_holographic_mastery_2.py index e705762e..6fc49ee0 100644 --- a/scripts/expertise/expertise_en_holographic_mastery_2.py +++ b/scripts/expertise/expertise_en_holographic_mastery_2.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - core.services.skillModService.addSkillMod(actor, 'expertise_en_holographic_additional_backup', 1) - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - core.services.skillModService.deductSkillMod(actor, 'expertise_en_holographic_additional_backup', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_holographic_mastery_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_holographic_mastery_2") + return diff --git a/scripts/expertise/expertise_en_improv_1.py b/scripts/expertise/expertise_en_improv_1.py index 14987c0c..b2b0352b 100644 --- a/scripts/expertise/expertise_en_improv_1.py +++ b/scripts/expertise/expertise_en_improv_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_improv_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_improv_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_improv_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_improv_1") + return diff --git a/scripts/expertise/expertise_en_inspired_fitness_1.py b/scripts/expertise/expertise_en_inspired_fitness_1.py index bd4ddb5f..1c557c8d 100644 --- a/scripts/expertise/expertise_en_inspired_fitness_1.py +++ b/scripts/expertise/expertise_en_inspired_fitness_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_inspired_fitness_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_inspired_fitness_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_inspired_fitness_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_inspired_fitness_1") + return diff --git a/scripts/expertise/expertise_en_inspired_fitness_2.py b/scripts/expertise/expertise_en_inspired_fitness_2.py index 1c971df3..92101da2 100644 --- a/scripts/expertise/expertise_en_inspired_fitness_2.py +++ b/scripts/expertise/expertise_en_inspired_fitness_2.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_inspired_fitness_2') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_inspired_fitness_2') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_inspired_fitness_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_inspired_fitness_2") + return diff --git a/scripts/expertise/expertise_en_inspired_fitness_3.py b/scripts/expertise/expertise_en_inspired_fitness_3.py index 1a6d4126..91839161 100644 --- a/scripts/expertise/expertise_en_inspired_fitness_3.py +++ b/scripts/expertise/expertise_en_inspired_fitness_3.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_inspired_fitness_3') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_inspired_fitness_3') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_inspired_fitness_3") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_inspired_fitness_3") + return diff --git a/scripts/expertise/expertise_en_inspired_fitness_4.py b/scripts/expertise/expertise_en_inspired_fitness_4.py index fb5e209a..649ae342 100644 --- a/scripts/expertise/expertise_en_inspired_fitness_4.py +++ b/scripts/expertise/expertise_en_inspired_fitness_4.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_inspired_fitness_4') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_inspired_fitness_4') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_inspired_fitness_4") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_inspired_fitness_4") + return diff --git a/scripts/expertise/expertise_en_inspired_industry_1.py b/scripts/expertise/expertise_en_inspired_industry_1.py index ba69a11b..f544cc87 100644 --- a/scripts/expertise/expertise_en_inspired_industry_1.py +++ b/scripts/expertise/expertise_en_inspired_industry_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_inspired_industry_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_inspired_industry_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_inspired_industry_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_inspired_industry_1") + return diff --git a/scripts/expertise/expertise_en_inspired_industry_2.py b/scripts/expertise/expertise_en_inspired_industry_2.py index 31428c4d..4c0f93d3 100644 --- a/scripts/expertise/expertise_en_inspired_industry_2.py +++ b/scripts/expertise/expertise_en_inspired_industry_2.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_inspired_industry_2') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_inspired_industry_2') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_inspired_industry_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_inspired_industry_2") + return diff --git a/scripts/expertise/expertise_en_inspired_industry_3.py b/scripts/expertise/expertise_en_inspired_industry_3.py index b72c1a8a..619e0efa 100644 --- a/scripts/expertise/expertise_en_inspired_industry_3.py +++ b/scripts/expertise/expertise_en_inspired_industry_3.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_inspired_industry_3') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_inspired_industry_3') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_inspired_industry_3") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_inspired_industry_3") + return diff --git a/scripts/expertise/expertise_en_inspired_industry_4.py b/scripts/expertise/expertise_en_inspired_industry_4.py index 8a704e6c..8a99a16c 100644 --- a/scripts/expertise/expertise_en_inspired_industry_4.py +++ b/scripts/expertise/expertise_en_inspired_industry_4.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_inspired_industry_4') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_inspired_industry_4') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_inspired_industry_4") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_inspired_industry_4") + return diff --git a/scripts/expertise/expertise_en_inspired_reactions_1.py b/scripts/expertise/expertise_en_inspired_reactions_1.py index e2dee785..90e56a58 100644 --- a/scripts/expertise/expertise_en_inspired_reactions_1.py +++ b/scripts/expertise/expertise_en_inspired_reactions_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_inspired_reactions_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_inspired_reactions_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_inspired_reactions_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_inspired_reactions_1") + return diff --git a/scripts/expertise/expertise_en_inspired_reactions_2.py b/scripts/expertise/expertise_en_inspired_reactions_2.py index 91330683..9fb0f596 100644 --- a/scripts/expertise/expertise_en_inspired_reactions_2.py +++ b/scripts/expertise/expertise_en_inspired_reactions_2.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_inspired_reactions_2') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_inspired_reactions_2') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_inspired_reactions_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_inspired_reactions_2") + return diff --git a/scripts/expertise/expertise_en_inspired_reactions_3.py b/scripts/expertise/expertise_en_inspired_reactions_3.py index e3f05658..0ae224f0 100644 --- a/scripts/expertise/expertise_en_inspired_reactions_3.py +++ b/scripts/expertise/expertise_en_inspired_reactions_3.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_inspired_reactions_3') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_inspired_reactions_3') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_inspired_reactions_3") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_inspired_reactions_3") + return diff --git a/scripts/expertise/expertise_en_inspired_reactions_4.py b/scripts/expertise/expertise_en_inspired_reactions_4.py index dee2ec04..c3818211 100644 --- a/scripts/expertise/expertise_en_inspired_reactions_4.py +++ b/scripts/expertise/expertise_en_inspired_reactions_4.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_inspired_reactions_4') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_inspired_reactions_4') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_inspired_reactions_4") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_inspired_reactions_4") + return diff --git a/scripts/expertise/expertise_en_inspired_resilience_1.py b/scripts/expertise/expertise_en_inspired_resilience_1.py index 34398163..c62a7767 100644 --- a/scripts/expertise/expertise_en_inspired_resilience_1.py +++ b/scripts/expertise/expertise_en_inspired_resilience_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_inspired_resilience_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_inspired_resilience_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_inspired_resilience_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_inspired_resilience_1") + return diff --git a/scripts/expertise/expertise_en_inspired_resilience_2.py b/scripts/expertise/expertise_en_inspired_resilience_2.py index b10be5d6..fe23ae90 100644 --- a/scripts/expertise/expertise_en_inspired_resilience_2.py +++ b/scripts/expertise/expertise_en_inspired_resilience_2.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_inspired_resilience_2') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_inspired_resilience_2') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_inspired_resilience_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_inspired_resilience_2") + return diff --git a/scripts/expertise/expertise_en_inspired_resilience_3.py b/scripts/expertise/expertise_en_inspired_resilience_3.py index 549ed60d..1506e79b 100644 --- a/scripts/expertise/expertise_en_inspired_resilience_3.py +++ b/scripts/expertise/expertise_en_inspired_resilience_3.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_inspired_resilience_3') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_inspired_resilience_3') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_inspired_resilience_3") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_inspired_resilience_3") + return diff --git a/scripts/expertise/expertise_en_inspired_resilience_4.py b/scripts/expertise/expertise_en_inspired_resilience_4.py index ecf70c6c..f6db50ad 100644 --- a/scripts/expertise/expertise_en_inspired_resilience_4.py +++ b/scripts/expertise/expertise_en_inspired_resilience_4.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_inspired_resilience_4') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_inspired_resilience_4') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_inspired_resilience_4") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_inspired_resilience_4") + return diff --git a/scripts/expertise/expertise_en_inspired_warfare_1.py b/scripts/expertise/expertise_en_inspired_warfare_1.py index 144e1e9c..f1f8049e 100644 --- a/scripts/expertise/expertise_en_inspired_warfare_1.py +++ b/scripts/expertise/expertise_en_inspired_warfare_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_inspired_warfare_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_inspired_warfare_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_inspired_warfare_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_inspired_warfare_1") + return diff --git a/scripts/expertise/expertise_en_inspired_warfare_2.py b/scripts/expertise/expertise_en_inspired_warfare_2.py index f1cc6d25..541c27f1 100644 --- a/scripts/expertise/expertise_en_inspired_warfare_2.py +++ b/scripts/expertise/expertise_en_inspired_warfare_2.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_inspired_warfare_2') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_inspired_warfare_2') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_inspired_warfare_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_inspired_warfare_2") + return diff --git a/scripts/expertise/expertise_en_inspired_warfare_3.py b/scripts/expertise/expertise_en_inspired_warfare_3.py index 8430aecf..00781c96 100644 --- a/scripts/expertise/expertise_en_inspired_warfare_3.py +++ b/scripts/expertise/expertise_en_inspired_warfare_3.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_inspired_warfare_3') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_inspired_warfare_3') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_inspired_warfare_3") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_inspired_warfare_3") + return diff --git a/scripts/expertise/expertise_en_inspired_warfare_4.py b/scripts/expertise/expertise_en_inspired_warfare_4.py index 4c030c0c..159615a1 100644 --- a/scripts/expertise/expertise_en_inspired_warfare_4.py +++ b/scripts/expertise/expertise_en_inspired_warfare_4.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_inspired_warfare_4') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_inspired_warfare_4') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_inspired_warfare_4") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_inspired_warfare_4") + return diff --git a/scripts/expertise/expertise_en_intense_performer_1.py b/scripts/expertise/expertise_en_intense_performer_1.py index 8925253a..4a064e58 100644 --- a/scripts/expertise/expertise_en_intense_performer_1.py +++ b/scripts/expertise/expertise_en_intense_performer_1.py @@ -1,41 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_intense_performer_1') - core.skillModService.addSkillMod(actor, 'expertise_en_inspire_pulse_duration_increase', 1) - addAbilities(core, actor, player) - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_intense_performer_1') - core.skillModService.deductSkillMod(actor, 'expertise_en_inspire_pulse_duration_increase', 1) - removeAbilities(core, actor, player) - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_intense_performer_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_intense_performer_1") + return diff --git a/scripts/expertise/expertise_en_intense_performer_2.py b/scripts/expertise/expertise_en_intense_performer_2.py index f0327c0c..6650519c 100644 --- a/scripts/expertise/expertise_en_intense_performer_2.py +++ b/scripts/expertise/expertise_en_intense_performer_2.py @@ -1,43 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_intense_performer_2') - core.skillModService.addSkillMod(actor, 'expertise_en_inspire_pulse_duration_increase', 1) - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_intense_performer_2') - core.skillModService.deductSkillMod(actor, 'expertise_en_inspire_pulse_duration_increase', 1) - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_intense_performer_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_intense_performer_2") + return diff --git a/scripts/expertise/expertise_en_intense_performer_3.py b/scripts/expertise/expertise_en_intense_performer_3.py index ac3eb24a..0c213a0d 100644 --- a/scripts/expertise/expertise_en_intense_performer_3.py +++ b/scripts/expertise/expertise_en_intense_performer_3.py @@ -1,43 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_intense_performer_3') - core.skillModService.addSkillMod(actor, 'expertise_en_inspire_pulse_duration_increase', 1) - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_intense_performer_3') - core.skillModService.deductSkillMod(actor, 'expertise_en_inspire_pulse_duration_increase', 1) - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_intense_performer_3") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_intense_performer_3") + return diff --git a/scripts/expertise/expertise_en_intense_performer_4.py b/scripts/expertise/expertise_en_intense_performer_4.py index 5e316992..82cf75e6 100644 --- a/scripts/expertise/expertise_en_intense_performer_4.py +++ b/scripts/expertise/expertise_en_intense_performer_4.py @@ -1,43 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_intense_performer_4') - core.skillModService.addSkillMod(actor, 'expertise_en_inspire_pulse_duration_increase', 1) - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_intense_performer_4') - core.skillModService.deductSkillMod(actor, 'expertise_en_inspire_pulse_duration_increase', 1) - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_intense_performer_4") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_intense_performer_4") + return diff --git a/scripts/expertise/expertise_en_lasting_impression_1.py b/scripts/expertise/expertise_en_lasting_impression_1.py index 1ce042fc..cd2f80fe 100644 --- a/scripts/expertise/expertise_en_lasting_impression_1.py +++ b/scripts/expertise/expertise_en_lasting_impression_1.py @@ -1,43 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_lasting_impression_1') - core.skillModService.addSkillMod(actor, 'expertise_en_inspire_buff_duration_increase', 30) - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_lasting_impression_1') - core.skillModService.deductSkillMod(actor, 'expertise_en_inspire_buff_duration_increase', 30) - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_lasting_impression_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_lasting_impression_1") + return diff --git a/scripts/expertise/expertise_en_lasting_impression_2.py b/scripts/expertise/expertise_en_lasting_impression_2.py index 5daf6031..2c17365a 100644 --- a/scripts/expertise/expertise_en_lasting_impression_2.py +++ b/scripts/expertise/expertise_en_lasting_impression_2.py @@ -1,43 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_lasting_impression_2') - core.skillModService.addSkillMod(actor, 'expertise_en_inspire_buff_duration_increase', 30) - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_lasting_impression_2') - core.skillModService.deductSkillMod(actor, 'expertise_en_inspire_buff_duration_increase', 30) - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_lasting_impression_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_lasting_impression_2") + return diff --git a/scripts/expertise/expertise_en_lasting_impression_3.py b/scripts/expertise/expertise_en_lasting_impression_3.py index 8a4642bd..2012d616 100644 --- a/scripts/expertise/expertise_en_lasting_impression_3.py +++ b/scripts/expertise/expertise_en_lasting_impression_3.py @@ -1,43 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_lasting_impression_3') - core.skillModService.addSkillMod(actor, 'expertise_en_inspire_buff_duration_increase', 30) - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_lasting_impression_3') - core.skillModService.deductSkillMod(actor, 'expertise_en_inspire_buff_duration_increase', 30) - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_lasting_impression_3") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_lasting_impression_3") + return diff --git a/scripts/expertise/expertise_en_lasting_impression_4.py b/scripts/expertise/expertise_en_lasting_impression_4.py index 086a38c9..c90caf25 100644 --- a/scripts/expertise/expertise_en_lasting_impression_4.py +++ b/scripts/expertise/expertise_en_lasting_impression_4.py @@ -1,43 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_lasting_impression_4') - core.skillModService.addSkillMod(actor, 'expertise_en_inspire_buff_duration_increase', 30) - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_lasting_impression_4') - core.skillModService.deductSkillMod(actor, 'expertise_en_inspire_buff_duration_increase', 30) - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_lasting_impression_4") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_lasting_impression_4") + return diff --git a/scripts/expertise/expertise_en_project_will_1.py b/scripts/expertise/expertise_en_project_will_1.py index fca5a471..1f1d7317 100644 --- a/scripts/expertise/expertise_en_project_will_1.py +++ b/scripts/expertise/expertise_en_project_will_1.py @@ -1,42 +1,28 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_project_will_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_project_will_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + if actor.getLevel() >= 4: + actor.addAbility("en_project_will_0") + if actor.getLevel() >= 12: + actor.addAbility("en_project_will_1") + if actor.getLevel() >= 20: + actor.addAbility("en_project_will_2") + if actor.getLevel() >= 30: + actor.addAbility("en_project_will_3") + if actor.getLevel() >= 38: + actor.addAbility("en_project_will_4") + if actor.getLevel() >= 52: + actor.addAbility("en_project_will_5") + if actor.getLevel() >= 62: + actor.addAbility("en_project_will_6") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("en_project_will_0") + actor.removeAbility("en_project_will_1") + actor.removeAbility("en_project_will_2") + actor.removeAbility("en_project_will_3") + actor.removeAbility("en_project_will_4") + actor.removeAbility("en_project_will_5") + actor.removeAbility("en_project_will_6") + return diff --git a/scripts/expertise/expertise_en_rising_spirit_1.py b/scripts/expertise/expertise_en_rising_spirit_1.py index d98b7f8f..a2fda212 100644 --- a/scripts/expertise/expertise_en_rising_spirit_1.py +++ b/scripts/expertise/expertise_en_rising_spirit_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_rising_spirit_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_rising_spirit_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_rising_spirit_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_rising_spirit_1") + return diff --git a/scripts/expertise/expertise_en_rising_spirit_2.py b/scripts/expertise/expertise_en_rising_spirit_2.py index fa2aa7ce..c7bafd45 100644 --- a/scripts/expertise/expertise_en_rising_spirit_2.py +++ b/scripts/expertise/expertise_en_rising_spirit_2.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_rising_spirit_2') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_rising_spirit_2') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_rising_spirit_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_rising_spirit_2") + return diff --git a/scripts/expertise/expertise_en_rising_spirit_3.py b/scripts/expertise/expertise_en_rising_spirit_3.py index d0a67d1a..05f1324e 100644 --- a/scripts/expertise/expertise_en_rising_spirit_3.py +++ b/scripts/expertise/expertise_en_rising_spirit_3.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_rising_spirit_3') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_rising_spirit_3') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_rising_spirit_3") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_rising_spirit_3") + return diff --git a/scripts/expertise/expertise_en_rising_spirit_4.py b/scripts/expertise/expertise_en_rising_spirit_4.py index 6ba514c8..3deb8a46 100644 --- a/scripts/expertise/expertise_en_rising_spirit_4.py +++ b/scripts/expertise/expertise_en_rising_spirit_4.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_rising_spirit_4') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_rising_spirit_4') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_rising_spirit_4") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_rising_spirit_4") + return diff --git a/scripts/expertise/expertise_en_second_chance_1.py b/scripts/expertise/expertise_en_second_chance_1.py index d2b9b7a8..ae7e08ae 100644 --- a/scripts/expertise/expertise_en_second_chance_1.py +++ b/scripts/expertise/expertise_en_second_chance_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_second_chance_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_second_chance_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("en_second_chance_buff_package") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("en_second_chance_buff_package") + return diff --git a/scripts/expertise/expertise_en_show_stopper_1.py b/scripts/expertise/expertise_en_show_stopper_1.py index d16d5dd9..bb347a8e 100644 --- a/scripts/expertise/expertise_en_show_stopper_1.py +++ b/scripts/expertise/expertise_en_show_stopper_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_show_stopper_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_show_stopper_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_show_stopper_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_show_stopper_1") + return diff --git a/scripts/expertise/expertise_en_show_stopper_2.py b/scripts/expertise/expertise_en_show_stopper_2.py index 7995274e..99493ec7 100644 --- a/scripts/expertise/expertise_en_show_stopper_2.py +++ b/scripts/expertise/expertise_en_show_stopper_2.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_show_stopper_2') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_show_stopper_2') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_show_stopper_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_show_stopper_2") + return diff --git a/scripts/expertise/expertise_en_show_stopper_3.py b/scripts/expertise/expertise_en_show_stopper_3.py index cde9ac57..4f70ff63 100644 --- a/scripts/expertise/expertise_en_show_stopper_3.py +++ b/scripts/expertise/expertise_en_show_stopper_3.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_show_stopper_3') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_show_stopper_3') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_show_stopper_3") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_show_stopper_3") + return diff --git a/scripts/expertise/expertise_en_spiral_kick_1.py b/scripts/expertise/expertise_en_spiral_kick_1.py index 57b6f98a..31e62108 100644 --- a/scripts/expertise/expertise_en_spiral_kick_1.py +++ b/scripts/expertise/expertise_en_spiral_kick_1.py @@ -1,42 +1,22 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_spiral_kick_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_spiral_kick_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + if actor.getLevel() >= 26: + actor.addAbility("en_spiral_kick_0") + if actor.getLevel() >= 34: + actor.addAbility("en_spiral_kick_1") + if actor.getLevel() >= 48: + actor.addAbility("en_spiral_kick_2") + if actor.getLevel() >= 62: + actor.addAbility("en_spiral_kick_3") + if actor.getLevel() >= 76: + actor.addAbility("en_spiral_kick_4") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("en_spiral_kick_0") + actor.removeAbility("en_spiral_kick_1") + actor.removeAbility("en_spiral_kick_2") + actor.removeAbility("en_spiral_kick_3") + actor.removeAbility("en_spiral_kick_4") + return diff --git a/scripts/expertise/expertise_en_sprint_1.py b/scripts/expertise/expertise_en_sprint_1.py index 58f386ae..130650ef 100644 --- a/scripts/expertise/expertise_en_sprint_1.py +++ b/scripts/expertise/expertise_en_sprint_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_sprint_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_sprint_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("en_sprint_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("en_sprint_1") + return diff --git a/scripts/expertise/expertise_en_stage_presence_1.py b/scripts/expertise/expertise_en_stage_presence_1.py index 943fb62a..073086aa 100644 --- a/scripts/expertise/expertise_en_stage_presence_1.py +++ b/scripts/expertise/expertise_en_stage_presence_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_stage_presence_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_stage_presence_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_stage_presence_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_stage_presence_1") + return diff --git a/scripts/expertise/expertise_en_stage_presence_2.py b/scripts/expertise/expertise_en_stage_presence_2.py index 2e862dc8..95a28985 100644 --- a/scripts/expertise/expertise_en_stage_presence_2.py +++ b/scripts/expertise/expertise_en_stage_presence_2.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_stage_presence_2') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_stage_presence_2') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_stage_presence_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_stage_presence_2") + return diff --git a/scripts/expertise/expertise_en_stage_presence_3.py b/scripts/expertise/expertise_en_stage_presence_3.py index 39e69a2b..827f44ea 100644 --- a/scripts/expertise/expertise_en_stage_presence_3.py +++ b/scripts/expertise/expertise_en_stage_presence_3.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_stage_presence_3') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_stage_presence_3') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_stage_presence_3") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_stage_presence_3") + return diff --git a/scripts/expertise/expertise_en_strike_1.py b/scripts/expertise/expertise_en_strike_1.py index e50b3c7f..6833da5c 100644 --- a/scripts/expertise/expertise_en_strike_1.py +++ b/scripts/expertise/expertise_en_strike_1.py @@ -1,42 +1,28 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_strike_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_strike_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + if actor.getLevel() >= 4: + actor.addAbility("en_strike_0") + if actor.getLevel() >= 12: + actor.addAbility("en_strike_1") + if actor.getLevel() >= 20: + actor.addAbility("en_strike_2") + if actor.getLevel() >= 30: + actor.addAbility("en_strike_3") + if actor.getLevel() >= 38: + actor.addAbility("en_strike_4") + if actor.getLevel() >= 52: + actor.addAbility("en_strike_5") + if actor.getLevel() >= 62: + actor.addAbility("en_strike_6") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("en_strike_0") + actor.removeAbility("en_strike_1") + actor.removeAbility("en_strike_2") + actor.removeAbility("en_strike_3") + actor.removeAbility("en_strike_4") + actor.removeAbility("en_strike_5") + actor.removeAbility("en_strike_6") + return diff --git a/scripts/expertise/expertise_en_sweeping_pirouette_1.py b/scripts/expertise/expertise_en_sweeping_pirouette_1.py index a3d54841..aef7dc0b 100644 --- a/scripts/expertise/expertise_en_sweeping_pirouette_1.py +++ b/scripts/expertise/expertise_en_sweeping_pirouette_1.py @@ -1,42 +1,20 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_sweeping_pirouette_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_sweeping_pirouette_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + if actor.getLevel() >= 26: + actor.addAbility("en_sweeping_pirouette_0") + if actor.getLevel() >= 34: + actor.addAbility("en_sweeping_pirouette_1") + if actor.getLevel() >= 48: + actor.addAbility("en_sweeping_pirouette_2") + if actor.getLevel() >= 62: + actor.addAbility("en_sweeping_pirouette_3") + if actor.getLevel() >= 76: + actor.addAbility("en_sweeping_pirouette_4") + if actor.getLevel() >= 90: + actor.addAbility("en_sweeping_pirouette_5") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("en_sweeping_pirouette_0") + return diff --git a/scripts/expertise/expertise_en_thought_as_action_1.py b/scripts/expertise/expertise_en_thought_as_action_1.py index 4fb5717b..8d109903 100644 --- a/scripts/expertise/expertise_en_thought_as_action_1.py +++ b/scripts/expertise/expertise_en_thought_as_action_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_thought_as_action_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_thought_as_action_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_thought_as_action_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_thought_as_action_1") + return diff --git a/scripts/expertise/expertise_en_thought_as_action_2.py b/scripts/expertise/expertise_en_thought_as_action_2.py index f61ce96a..bd397576 100644 --- a/scripts/expertise/expertise_en_thought_as_action_2.py +++ b/scripts/expertise/expertise_en_thought_as_action_2.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_thought_as_action_2') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_thought_as_action_2') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_thought_as_action_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_thought_as_action_2") + return diff --git a/scripts/expertise/expertise_en_thought_as_action_3.py b/scripts/expertise/expertise_en_thought_as_action_3.py index a137de8c..abbee833 100644 --- a/scripts/expertise/expertise_en_thought_as_action_3.py +++ b/scripts/expertise/expertise_en_thought_as_action_3.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_thought_as_action_3') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_thought_as_action_3') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_thought_as_action_3") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_thought_as_action_3") + return diff --git a/scripts/expertise/expertise_en_thought_as_action_4.py b/scripts/expertise/expertise_en_thought_as_action_4.py index 4ff868cc..76958de5 100644 --- a/scripts/expertise/expertise_en_thought_as_action_4.py +++ b/scripts/expertise/expertise_en_thought_as_action_4.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_thought_as_action_4') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_thought_as_action_4') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_thought_as_action_4") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_thought_as_action_4") + return diff --git a/scripts/expertise/expertise_en_thrill_1.py b/scripts/expertise/expertise_en_thrill_1.py index cfd2e37d..82c68807 100644 --- a/scripts/expertise/expertise_en_thrill_1.py +++ b/scripts/expertise/expertise_en_thrill_1.py @@ -1,42 +1,16 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_thrill_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_thrill_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + if actor.getLevel() >= 10: + actor.addAbility("en_thrill") + if actor.getLevel() >= 34: + actor.addAbility("en_thrill_1") + if actor.getLevel() >= 62: + actor.addAbility("en_thrill_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("en_thrill") + actor.removeAbility("en_thrill_1") + actor.removeAbility("en_thrill_2") + return diff --git a/scripts/expertise/expertise_en_to_the_hilt_1.py b/scripts/expertise/expertise_en_to_the_hilt_1.py index 7c6c8b8c..18db5e7d 100644 --- a/scripts/expertise/expertise_en_to_the_hilt_1.py +++ b/scripts/expertise/expertise_en_to_the_hilt_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_to_the_hilt_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_to_the_hilt_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_to_the_hilt_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_to_the_hilt_1") + return diff --git a/scripts/expertise/expertise_en_to_the_hilt_2.py b/scripts/expertise/expertise_en_to_the_hilt_2.py index 6cf27a28..5546a211 100644 --- a/scripts/expertise/expertise_en_to_the_hilt_2.py +++ b/scripts/expertise/expertise_en_to_the_hilt_2.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_to_the_hilt_2') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_to_the_hilt_2') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_to_the_hilt_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_to_the_hilt_2") + return diff --git a/scripts/expertise/expertise_en_unhealthy_fixation_1.py b/scripts/expertise/expertise_en_unhealthy_fixation_1.py index d3b59676..2e2a2f30 100644 --- a/scripts/expertise/expertise_en_unhealthy_fixation_1.py +++ b/scripts/expertise/expertise_en_unhealthy_fixation_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_unhealthy_fixation_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_unhealthy_fixation_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("en_unhealthy_fixation") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("en_unhealthy_fixation") + return diff --git a/scripts/expertise/expertise_en_uprising_1.py b/scripts/expertise/expertise_en_uprising_1.py index 1094d783..dc55de01 100644 --- a/scripts/expertise/expertise_en_uprising_1.py +++ b/scripts/expertise/expertise_en_uprising_1.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_uprising_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_uprising_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_uprising_1") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_uprising_1") + return diff --git a/scripts/expertise/expertise_en_uprising_2.py b/scripts/expertise/expertise_en_uprising_2.py index e20bc8e6..5540f85b 100644 --- a/scripts/expertise/expertise_en_uprising_2.py +++ b/scripts/expertise/expertise_en_uprising_2.py @@ -1,42 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_uprising_2') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_uprising_2') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + actor.addAbility("expertise_en_uprising_2") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("expertise_en_uprising_2") + return diff --git a/scripts/expertise/expertise_en_void_dance_1.py b/scripts/expertise/expertise_en_void_dance_1.py index bbd46c9c..7127a2c4 100644 --- a/scripts/expertise/expertise_en_void_dance_1.py +++ b/scripts/expertise/expertise_en_void_dance_1.py @@ -1,42 +1,16 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.addSkill('expertise_en_void_dance_1') - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'entertainer_1a': - return - - actor.removeSkill('expertise_en_void_dance_1') - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - return + if actor.getLevel() >= 10: + actor.addAbility("en_void_dance_1") + if actor.getLevel() >= 34: + actor.addAbility("en_void_dance_2") + if actor.getLevel() >= 62: + actor.addAbility("en_void_dance_3") + return def removeAbilities(core, actor, player): - - return - + actor.removeAbility("en_void_dance_1") + actor.removeAbility("en_void_dance_2") + actor.removeAbility("en_void_dance_3") + return diff --git a/scripts/expertise/expertise_engineering_artisan_advanced_theory_1.py b/scripts/expertise/expertise_engineering_artisan_advanced_theory_1.py index aaf17d68..bd6b7454 100644 --- a/scripts/expertise/expertise_engineering_artisan_advanced_theory_1.py +++ b/scripts/expertise/expertise_engineering_artisan_advanced_theory_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_artisan_advanced_theory_1') - - actor.addSkillMod('general_experimentation', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_artisan_advanced_theory_1') - - actor.removeSkillMod('general_experimentation', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_artisan_advanced_theory_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_artisan_advanced_theory_1") return diff --git a/scripts/expertise/expertise_engineering_artisan_dexterity_1.py b/scripts/expertise/expertise_engineering_artisan_dexterity_1.py index 1f4d7860..3e103c16 100644 --- a/scripts/expertise/expertise_engineering_artisan_dexterity_1.py +++ b/scripts/expertise/expertise_engineering_artisan_dexterity_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_artisan_dexterity_1') - - actor.addSkillMod('general_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_artisan_dexterity_1') - - actor.removeSkillMod('general_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_artisan_dexterity_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_artisan_dexterity_1") return diff --git a/scripts/expertise/expertise_engineering_artisan_dexterity_2.py b/scripts/expertise/expertise_engineering_artisan_dexterity_2.py index 28cff05e..50edc60b 100644 --- a/scripts/expertise/expertise_engineering_artisan_dexterity_2.py +++ b/scripts/expertise/expertise_engineering_artisan_dexterity_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_artisan_dexterity_2') - - actor.addSkillMod('general_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_artisan_dexterity_2') - - actor.removeSkillMod('general_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_artisan_dexterity_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_artisan_dexterity_2") return diff --git a/scripts/expertise/expertise_engineering_artisan_dexterity_3.py b/scripts/expertise/expertise_engineering_artisan_dexterity_3.py index 11e3b091..0cd8c37e 100644 --- a/scripts/expertise/expertise_engineering_artisan_dexterity_3.py +++ b/scripts/expertise/expertise_engineering_artisan_dexterity_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_artisan_dexterity_3') - - actor.addSkillMod('general_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_artisan_dexterity_3') - - actor.removeSkillMod('general_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_artisan_dexterity_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_artisan_dexterity_3") return diff --git a/scripts/expertise/expertise_engineering_artisan_dexterity_4.py b/scripts/expertise/expertise_engineering_artisan_dexterity_4.py index ae8bab3f..34c64977 100644 --- a/scripts/expertise/expertise_engineering_artisan_dexterity_4.py +++ b/scripts/expertise/expertise_engineering_artisan_dexterity_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_artisan_dexterity_4') - - actor.addSkillMod('general_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_artisan_dexterity_4') - - actor.removeSkillMod('general_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_artisan_dexterity_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_artisan_dexterity_4") return diff --git a/scripts/expertise/expertise_engineering_artisan_hypothesis_1.py b/scripts/expertise/expertise_engineering_artisan_hypothesis_1.py index eb7b0aa0..c2daa093 100644 --- a/scripts/expertise/expertise_engineering_artisan_hypothesis_1.py +++ b/scripts/expertise/expertise_engineering_artisan_hypothesis_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_artisan_hypothesis_1') - - actor.addSkillMod('expertise_experimentation_increase_artisan', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_artisan_hypothesis_1') - - actor.removeSkillMod('expertise_experimentation_increase_artisan', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_artisan_hypothesis_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_artisan_hypothesis_1") return diff --git a/scripts/expertise/expertise_engineering_artisan_hypothesis_2.py b/scripts/expertise/expertise_engineering_artisan_hypothesis_2.py index 14e79abd..96592a1b 100644 --- a/scripts/expertise/expertise_engineering_artisan_hypothesis_2.py +++ b/scripts/expertise/expertise_engineering_artisan_hypothesis_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_artisan_hypothesis_2') - - actor.addSkillMod('expertise_experimentation_increase_artisan', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_artisan_hypothesis_2') - - actor.removeSkillMod('expertise_experimentation_increase_artisan', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_artisan_hypothesis_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_artisan_hypothesis_2") return diff --git a/scripts/expertise/expertise_engineering_artisan_hypothesis_3.py b/scripts/expertise/expertise_engineering_artisan_hypothesis_3.py index 29b90722..e4f6a8b1 100644 --- a/scripts/expertise/expertise_engineering_artisan_hypothesis_3.py +++ b/scripts/expertise/expertise_engineering_artisan_hypothesis_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_artisan_hypothesis_3') - - actor.addSkillMod('expertise_experimentation_increase_artisan', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_artisan_hypothesis_3') - - actor.removeSkillMod('expertise_experimentation_increase_artisan', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_artisan_hypothesis_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_artisan_hypothesis_3") return diff --git a/scripts/expertise/expertise_engineering_artisan_hypothesis_4.py b/scripts/expertise/expertise_engineering_artisan_hypothesis_4.py index 1ffb1f9a..95f93fbd 100644 --- a/scripts/expertise/expertise_engineering_artisan_hypothesis_4.py +++ b/scripts/expertise/expertise_engineering_artisan_hypothesis_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_artisan_hypothesis_4') - - actor.addSkillMod('expertise_experimentation_increase_artisan', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_artisan_hypothesis_4') - - actor.removeSkillMod('expertise_experimentation_increase_artisan', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_artisan_hypothesis_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_artisan_hypothesis_4") return diff --git a/scripts/expertise/expertise_engineering_cybernetic_advanced_theory_1.py b/scripts/expertise/expertise_engineering_cybernetic_advanced_theory_1.py index 2a99c79f..e7cf240d 100644 --- a/scripts/expertise/expertise_engineering_cybernetic_advanced_theory_1.py +++ b/scripts/expertise/expertise_engineering_cybernetic_advanced_theory_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_cybernetic_advanced_theory_1') - - actor.addSkillMod('cybernetic_experimentation', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_cybernetic_advanced_theory_1') - - actor.removeSkillMod('cybernetic_experimentation', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_cybernetic_advanced_theory_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_cybernetic_advanced_theory_1") return diff --git a/scripts/expertise/expertise_engineering_cybernetic_hypothesis_1.py b/scripts/expertise/expertise_engineering_cybernetic_hypothesis_1.py index a23e203d..bbf9682e 100644 --- a/scripts/expertise/expertise_engineering_cybernetic_hypothesis_1.py +++ b/scripts/expertise/expertise_engineering_cybernetic_hypothesis_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_cybernetic_hypothesis_1') - - actor.addSkillMod('expertise_experimentation_increase_cybernetic', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_cybernetic_hypothesis_1') - - actor.removeSkillMod('expertise_experimentation_increase_cybernetic', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_cybernetic_hypothesis_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_cybernetic_hypothesis_1") return diff --git a/scripts/expertise/expertise_engineering_cybernetic_hypothesis_2.py b/scripts/expertise/expertise_engineering_cybernetic_hypothesis_2.py index 017890cd..6c7d6b20 100644 --- a/scripts/expertise/expertise_engineering_cybernetic_hypothesis_2.py +++ b/scripts/expertise/expertise_engineering_cybernetic_hypothesis_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_cybernetic_hypothesis_2') - - actor.addSkillMod('expertise_experimentation_increase_cybernetic', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_cybernetic_hypothesis_2') - - actor.removeSkillMod('expertise_experimentation_increase_cybernetic', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_cybernetic_hypothesis_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_cybernetic_hypothesis_2") return diff --git a/scripts/expertise/expertise_engineering_cybernetic_hypothesis_3.py b/scripts/expertise/expertise_engineering_cybernetic_hypothesis_3.py index adef4cc9..fc963038 100644 --- a/scripts/expertise/expertise_engineering_cybernetic_hypothesis_3.py +++ b/scripts/expertise/expertise_engineering_cybernetic_hypothesis_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_cybernetic_hypothesis_3') - - actor.addSkillMod('expertise_experimentation_increase_cybernetic', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_cybernetic_hypothesis_3') - - actor.removeSkillMod('expertise_experimentation_increase_cybernetic', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_cybernetic_hypothesis_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_cybernetic_hypothesis_3") return diff --git a/scripts/expertise/expertise_engineering_cybernetic_hypothesis_4.py b/scripts/expertise/expertise_engineering_cybernetic_hypothesis_4.py index 85aab1da..4f15a6d8 100644 --- a/scripts/expertise/expertise_engineering_cybernetic_hypothesis_4.py +++ b/scripts/expertise/expertise_engineering_cybernetic_hypothesis_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_cybernetic_hypothesis_4') - - actor.addSkillMod('expertise_experimentation_increase_cybernetic', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_cybernetic_hypothesis_4') - - actor.removeSkillMod('expertise_experimentation_increase_cybernetic', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_cybernetic_hypothesis_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_cybernetic_hypothesis_4") return diff --git a/scripts/expertise/expertise_engineering_cybernetic_negative_effects_reduction_1.py b/scripts/expertise/expertise_engineering_cybernetic_negative_effects_reduction_1.py index 1a6c2b4e..658dd7df 100644 --- a/scripts/expertise/expertise_engineering_cybernetic_negative_effects_reduction_1.py +++ b/scripts/expertise/expertise_engineering_cybernetic_negative_effects_reduction_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_cybernetic_negative_effects_reduction_1') - - actor.addSkillMod('expertise_cybernetic_negative_effects_reduction', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_cybernetic_negative_effects_reduction_1') - - actor.removeSkillMod('expertise_cybernetic_negative_effects_reduction', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_cybernetic_negative_effects_reduction_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_cybernetic_negative_effects_reduction_1") return diff --git a/scripts/expertise/expertise_engineering_cybernetic_negative_effects_reduction_2.py b/scripts/expertise/expertise_engineering_cybernetic_negative_effects_reduction_2.py index 52dfd22b..d04160b0 100644 --- a/scripts/expertise/expertise_engineering_cybernetic_negative_effects_reduction_2.py +++ b/scripts/expertise/expertise_engineering_cybernetic_negative_effects_reduction_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_cybernetic_negative_effects_reduction_2') - - actor.addSkillMod('expertise_cybernetic_negative_effects_reduction', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_cybernetic_negative_effects_reduction_2') - - actor.removeSkillMod('expertise_cybernetic_negative_effects_reduction', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_cybernetic_negative_effects_reduction_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_cybernetic_negative_effects_reduction_2") return diff --git a/scripts/expertise/expertise_engineering_cybernetic_negative_effects_reduction_3.py b/scripts/expertise/expertise_engineering_cybernetic_negative_effects_reduction_3.py index eb2c7532..9c98e65b 100644 --- a/scripts/expertise/expertise_engineering_cybernetic_negative_effects_reduction_3.py +++ b/scripts/expertise/expertise_engineering_cybernetic_negative_effects_reduction_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_cybernetic_negative_effects_reduction_3') - - actor.addSkillMod('expertise_cybernetic_negative_effects_reduction', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_cybernetic_negative_effects_reduction_3') - - actor.removeSkillMod('expertise_cybernetic_negative_effects_reduction', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_cybernetic_negative_effects_reduction_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_cybernetic_negative_effects_reduction_3") return diff --git a/scripts/expertise/expertise_engineering_cybernetic_negative_effects_reduction_4.py b/scripts/expertise/expertise_engineering_cybernetic_negative_effects_reduction_4.py index da6d8d56..93bd0c81 100644 --- a/scripts/expertise/expertise_engineering_cybernetic_negative_effects_reduction_4.py +++ b/scripts/expertise/expertise_engineering_cybernetic_negative_effects_reduction_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_cybernetic_negative_effects_reduction_4') - - actor.addSkillMod('expertise_cybernetic_negative_effects_reduction', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_cybernetic_negative_effects_reduction_4') - - actor.removeSkillMod('expertise_cybernetic_negative_effects_reduction', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_cybernetic_negative_effects_reduction_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_cybernetic_negative_effects_reduction_4") return diff --git a/scripts/expertise/expertise_engineering_cybernetic_s03_schematics_1.py b/scripts/expertise/expertise_engineering_cybernetic_s03_schematics_1.py index f20459ec..59dacda7 100644 --- a/scripts/expertise/expertise_engineering_cybernetic_s03_schematics_1.py +++ b/scripts/expertise/expertise_engineering_cybernetic_s03_schematics_1.py @@ -1,46 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_cybernetic_s03_schematics_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_cybernetic_s03_schematics_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_cybernetic_s03_schematics_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_cybernetic_s03_schematics_1") return diff --git a/scripts/expertise/expertise_engineering_droid_advanced_theory_1.py b/scripts/expertise/expertise_engineering_droid_advanced_theory_1.py index 36c97c2d..8435fcae 100644 --- a/scripts/expertise/expertise_engineering_droid_advanced_theory_1.py +++ b/scripts/expertise/expertise_engineering_droid_advanced_theory_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_droid_advanced_theory_1') - - actor.addSkillMod('droid_experimentation', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_droid_advanced_theory_1') - - actor.removeSkillMod('droid_experimentation', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_droid_advanced_theory_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_droid_advanced_theory_1") return diff --git a/scripts/expertise/expertise_engineering_droid_dexterity_1.py b/scripts/expertise/expertise_engineering_droid_dexterity_1.py index 4195d6b0..58da3ce9 100644 --- a/scripts/expertise/expertise_engineering_droid_dexterity_1.py +++ b/scripts/expertise/expertise_engineering_droid_dexterity_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_droid_dexterity_1') - - actor.addSkillMod('droid_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_droid_dexterity_1') - - actor.removeSkillMod('droid_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_droid_dexterity_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_droid_dexterity_1") return diff --git a/scripts/expertise/expertise_engineering_droid_dexterity_2.py b/scripts/expertise/expertise_engineering_droid_dexterity_2.py index 53052f6a..5608862f 100644 --- a/scripts/expertise/expertise_engineering_droid_dexterity_2.py +++ b/scripts/expertise/expertise_engineering_droid_dexterity_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_droid_dexterity_2') - - actor.addSkillMod('droid_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_droid_dexterity_2') - - actor.removeSkillMod('droid_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_droid_dexterity_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_droid_dexterity_2") return diff --git a/scripts/expertise/expertise_engineering_droid_dexterity_3.py b/scripts/expertise/expertise_engineering_droid_dexterity_3.py index 438fbf7c..a5f8e6df 100644 --- a/scripts/expertise/expertise_engineering_droid_dexterity_3.py +++ b/scripts/expertise/expertise_engineering_droid_dexterity_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_droid_dexterity_3') - - actor.addSkillMod('droid_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_droid_dexterity_3') - - actor.removeSkillMod('droid_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_droid_dexterity_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_droid_dexterity_3") return diff --git a/scripts/expertise/expertise_engineering_droid_dexterity_4.py b/scripts/expertise/expertise_engineering_droid_dexterity_4.py index 6547a684..ce65339b 100644 --- a/scripts/expertise/expertise_engineering_droid_dexterity_4.py +++ b/scripts/expertise/expertise_engineering_droid_dexterity_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_droid_dexterity_4') - - actor.addSkillMod('droid_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_droid_dexterity_4') - - actor.removeSkillMod('droid_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_droid_dexterity_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_droid_dexterity_4") return diff --git a/scripts/expertise/expertise_engineering_droid_hypothesis_1.py b/scripts/expertise/expertise_engineering_droid_hypothesis_1.py index a57e47ed..71ad763c 100644 --- a/scripts/expertise/expertise_engineering_droid_hypothesis_1.py +++ b/scripts/expertise/expertise_engineering_droid_hypothesis_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_droid_hypothesis_1') - - actor.addSkillMod('expertise_experimentation_increase_droid', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_droid_hypothesis_1') - - actor.removeSkillMod('expertise_experimentation_increase_droid', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_droid_hypothesis_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_droid_hypothesis_1") return diff --git a/scripts/expertise/expertise_engineering_droid_hypothesis_2.py b/scripts/expertise/expertise_engineering_droid_hypothesis_2.py index 4658c156..56645f9b 100644 --- a/scripts/expertise/expertise_engineering_droid_hypothesis_2.py +++ b/scripts/expertise/expertise_engineering_droid_hypothesis_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_droid_hypothesis_2') - - actor.addSkillMod('expertise_experimentation_increase_droid', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_droid_hypothesis_2') - - actor.removeSkillMod('expertise_experimentation_increase_droid', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_droid_hypothesis_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_droid_hypothesis_2") return diff --git a/scripts/expertise/expertise_engineering_droid_hypothesis_3.py b/scripts/expertise/expertise_engineering_droid_hypothesis_3.py index 3f8a59a1..dc413239 100644 --- a/scripts/expertise/expertise_engineering_droid_hypothesis_3.py +++ b/scripts/expertise/expertise_engineering_droid_hypothesis_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_droid_hypothesis_3') - - actor.addSkillMod('expertise_experimentation_increase_droid', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_droid_hypothesis_3') - - actor.removeSkillMod('expertise_experimentation_increase_droid', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_droid_hypothesis_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_droid_hypothesis_3") return diff --git a/scripts/expertise/expertise_engineering_droid_hypothesis_4.py b/scripts/expertise/expertise_engineering_droid_hypothesis_4.py index fc794c58..7b5af620 100644 --- a/scripts/expertise/expertise_engineering_droid_hypothesis_4.py +++ b/scripts/expertise/expertise_engineering_droid_hypothesis_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_droid_hypothesis_4') - - actor.addSkillMod('expertise_experimentation_increase_droid', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_droid_hypothesis_4') - - actor.removeSkillMod('expertise_experimentation_increase_droid', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_droid_hypothesis_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_droid_hypothesis_4") return diff --git a/scripts/expertise/expertise_engineering_droid_insight_1.py b/scripts/expertise/expertise_engineering_droid_insight_1.py index afb13261..6209cf4e 100644 --- a/scripts/expertise/expertise_engineering_droid_insight_1.py +++ b/scripts/expertise/expertise_engineering_droid_insight_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_droid_insight_1') - - actor.addSkillMod('expertise_complexity_decrease_droid', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_droid_insight_1') - - actor.removeSkillMod('expertise_complexity_decrease_droid', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_droid_insight_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_droid_insight_1") return diff --git a/scripts/expertise/expertise_engineering_droid_insight_2.py b/scripts/expertise/expertise_engineering_droid_insight_2.py index 9a3ccca5..cfd7d326 100644 --- a/scripts/expertise/expertise_engineering_droid_insight_2.py +++ b/scripts/expertise/expertise_engineering_droid_insight_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_droid_insight_2') - - actor.addSkillMod('expertise_complexity_decrease_droid', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_droid_insight_2') - - actor.removeSkillMod('expertise_complexity_decrease_droid', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_droid_insight_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_droid_insight_2") return diff --git a/scripts/expertise/expertise_engineering_droid_keen_understanding_1.py b/scripts/expertise/expertise_engineering_droid_keen_understanding_1.py index e47da182..471b9cf0 100644 --- a/scripts/expertise/expertise_engineering_droid_keen_understanding_1.py +++ b/scripts/expertise/expertise_engineering_droid_keen_understanding_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_droid_keen_understanding_1') - - actor.addSkillMod('expertise_complexity_decrease_droid', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_droid_keen_understanding_1') - - actor.removeSkillMod('expertise_complexity_decrease_droid', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_droid_keen_understanding_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_droid_keen_understanding_1") return diff --git a/scripts/expertise/expertise_engineering_droid_keen_understanding_2.py b/scripts/expertise/expertise_engineering_droid_keen_understanding_2.py index 5cd3dd65..c7bd1ede 100644 --- a/scripts/expertise/expertise_engineering_droid_keen_understanding_2.py +++ b/scripts/expertise/expertise_engineering_droid_keen_understanding_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_droid_keen_understanding_2') - - actor.addSkillMod('expertise_complexity_decrease_droid', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_droid_keen_understanding_2') - - actor.removeSkillMod('expertise_complexity_decrease_droid', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_droid_keen_understanding_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_droid_keen_understanding_2") return diff --git a/scripts/expertise/expertise_engineering_droid_schematic_1_1.py b/scripts/expertise/expertise_engineering_droid_schematic_1_1.py index 6340cdd7..c9a0234c 100644 --- a/scripts/expertise/expertise_engineering_droid_schematic_1_1.py +++ b/scripts/expertise/expertise_engineering_droid_schematic_1_1.py @@ -1,46 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_droid_schematic_1_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_droid_schematic_1_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_droid_schematic_1_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_droid_schematic_1_1") return diff --git a/scripts/expertise/expertise_engineering_droid_schematic_2_1.py b/scripts/expertise/expertise_engineering_droid_schematic_2_1.py index 9ade7f61..c7e1a68f 100644 --- a/scripts/expertise/expertise_engineering_droid_schematic_2_1.py +++ b/scripts/expertise/expertise_engineering_droid_schematic_2_1.py @@ -1,46 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_droid_schematic_2_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_droid_schematic_2_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_droid_schematic_2_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_droid_schematic_2_1") return diff --git a/scripts/expertise/expertise_engineering_resource_processing_1.py b/scripts/expertise/expertise_engineering_resource_processing_1.py index 6c8953a7..38aa0595 100644 --- a/scripts/expertise/expertise_engineering_resource_processing_1.py +++ b/scripts/expertise/expertise_engineering_resource_processing_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_resource_processing_1') - - actor.addSkillMod('expertise_resource_quality_increase', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_resource_processing_1') - - actor.removeSkillMod('expertise_resource_quality_increase', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_resource_processing_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_resource_processing_1") return diff --git a/scripts/expertise/expertise_engineering_resource_processing_2.py b/scripts/expertise/expertise_engineering_resource_processing_2.py index e0d9b8cf..0e561add 100644 --- a/scripts/expertise/expertise_engineering_resource_processing_2.py +++ b/scripts/expertise/expertise_engineering_resource_processing_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_resource_processing_2') - - actor.addSkillMod('expertise_resource_quality_increase', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_resource_processing_2') - - actor.removeSkillMod('expertise_resource_quality_increase', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_resource_processing_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_resource_processing_2") return diff --git a/scripts/expertise/expertise_engineering_resource_refinement_1.py b/scripts/expertise/expertise_engineering_resource_refinement_1.py index 635c1e44..476a968e 100644 --- a/scripts/expertise/expertise_engineering_resource_refinement_1.py +++ b/scripts/expertise/expertise_engineering_resource_refinement_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_resource_refinement_1') - - actor.addSkillMod('expertise_resource_quality_increase', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_resource_refinement_1') - - actor.removeSkillMod('expertise_resource_quality_increase', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_resource_refinement_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_resource_refinement_1") return diff --git a/scripts/expertise/expertise_engineering_resource_refinement_2.py b/scripts/expertise/expertise_engineering_resource_refinement_2.py index 0246b71c..80b22ec3 100644 --- a/scripts/expertise/expertise_engineering_resource_refinement_2.py +++ b/scripts/expertise/expertise_engineering_resource_refinement_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_resource_refinement_2') - - actor.addSkillMod('expertise_resource_quality_increase', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_resource_refinement_2') - - actor.removeSkillMod('expertise_resource_quality_increase', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_resource_refinement_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_resource_refinement_2") return diff --git a/scripts/expertise/expertise_engineering_weaponsmith_attachment_upgrade_1.py b/scripts/expertise/expertise_engineering_weaponsmith_attachment_upgrade_1.py index 8f59c85c..8045a598 100644 --- a/scripts/expertise/expertise_engineering_weaponsmith_attachment_upgrade_1.py +++ b/scripts/expertise/expertise_engineering_weaponsmith_attachment_upgrade_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_weaponsmith_attachment_upgrade_1') - - actor.addSkillMod('expertise_attachment_upgrade', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_weaponsmith_attachment_upgrade_1') - - actor.removeSkillMod('expertise_attachment_upgrade', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_weaponsmith_attachment_upgrade_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_weaponsmith_attachment_upgrade_1") return diff --git a/scripts/expertise/expertise_engineering_weaponsmith_socket_bonus_1.py b/scripts/expertise/expertise_engineering_weaponsmith_socket_bonus_1.py index ea4bbe96..7fbbb3d1 100644 --- a/scripts/expertise/expertise_engineering_weaponsmith_socket_bonus_1.py +++ b/scripts/expertise/expertise_engineering_weaponsmith_socket_bonus_1.py @@ -1,46 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.addSkill('expertise_engineering_weaponsmith_socket_bonus_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_eng_1a': - return - - actor.removeSkill('expertise_engineering_weaponsmith_socket_bonus_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_engineering_weaponsmith_socket_bonus_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_engineering_weaponsmith_socket_bonus_1") return diff --git a/scripts/expertise/expertise_fs_general_alacrity_1.py b/scripts/expertise/expertise_fs_general_alacrity_1.py index b9f17633..b69a7bc6 100644 --- a/scripts/expertise/expertise_fs_general_alacrity_1.py +++ b/scripts/expertise/expertise_fs_general_alacrity_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_alacrity_1') - - core.skillModService.addSkillMod(actor, 'expertise_glancing_blow_all', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_alacrity_1') - - core.skillModService.deductSkillMod(actor, 'expertise_glancing_blow_all', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_alacrity_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_alacrity_1") return diff --git a/scripts/expertise/expertise_fs_general_alacrity_2.py b/scripts/expertise/expertise_fs_general_alacrity_2.py index c1a3f4b0..3c5d3f66 100644 --- a/scripts/expertise/expertise_fs_general_alacrity_2.py +++ b/scripts/expertise/expertise_fs_general_alacrity_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_alacrity_2') - - core.skillModService.addSkillMod(actor, 'expertise_glancing_blow_all', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_alacrity_2') - - core.skillModService.deductSkillMod(actor, 'expertise_glancing_blow_all', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_alacrity_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_alacrity_2") return diff --git a/scripts/expertise/expertise_fs_general_alacrity_3.py b/scripts/expertise/expertise_fs_general_alacrity_3.py index bf182038..58282db9 100644 --- a/scripts/expertise/expertise_fs_general_alacrity_3.py +++ b/scripts/expertise/expertise_fs_general_alacrity_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_alacrity_3') - - core.skillModService.addSkillMod(actor, 'expertise_glancing_blow_all', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_alacrity_3') - - core.skillModService.deductSkillMod(actor, 'expertise_glancing_blow_all', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_alacrity_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_alacrity_3") return diff --git a/scripts/expertise/expertise_fs_general_alacrity_4.py b/scripts/expertise/expertise_fs_general_alacrity_4.py index 1c89b7dc..641990c1 100644 --- a/scripts/expertise/expertise_fs_general_alacrity_4.py +++ b/scripts/expertise/expertise_fs_general_alacrity_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_alacrity_4') - - core.skillModService.addSkillMod(actor, 'expertise_glancing_blow_all', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_alacrity_4') - - core.skillModService.deductSkillMod(actor, 'expertise_glancing_blow_all', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_alacrity_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_alacrity_4") return diff --git a/scripts/expertise/expertise_fs_general_enhanced_agility_1.py b/scripts/expertise/expertise_fs_general_enhanced_agility_1.py index 1ed244d3..b4133b1b 100644 --- a/scripts/expertise/expertise_fs_general_enhanced_agility_1.py +++ b/scripts/expertise/expertise_fs_general_enhanced_agility_1.py @@ -1,47 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_enhanced_agility_1') - - core.skillModService.addSkillMod(actor, 'agility_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_enhanced_agility_1') - - core.skillModService.deductSkillMod(actor, 'agility_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - + actor.addAbility("expertise_fs_general_enhanced_agility_1") return def removeAbilities(core, actor, player): - + actor.removeAbility("expertise_fs_general_enhanced_agility_1") return - diff --git a/scripts/expertise/expertise_fs_general_enhanced_agility_2.py b/scripts/expertise/expertise_fs_general_enhanced_agility_2.py index e9e90307..48301d52 100644 --- a/scripts/expertise/expertise_fs_general_enhanced_agility_2.py +++ b/scripts/expertise/expertise_fs_general_enhanced_agility_2.py @@ -1,47 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_enhanced_agility_2') - - core.skillModService.addSkillMod(actor, 'agility_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_enhanced_agility_2') - - core.skillModService.deductSkillMod(actor, 'agility_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - + actor.addAbility("expertise_fs_general_enhanced_agility_2") return def removeAbilities(core, actor, player): - + actor.removeAbility("expertise_fs_general_enhanced_agility_2") return - diff --git a/scripts/expertise/expertise_fs_general_enhanced_constitution_1.py b/scripts/expertise/expertise_fs_general_enhanced_constitution_1.py index 9db9e638..5521929c 100644 --- a/scripts/expertise/expertise_fs_general_enhanced_constitution_1.py +++ b/scripts/expertise/expertise_fs_general_enhanced_constitution_1.py @@ -1,47 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_enhanced_constitution_1') - - core.skillModService.addSkillMod(actor, 'constitution_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_enhanced_constitution_1') - - core.skillModService.deductSkillMod(actor, 'constitution_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - + actor.addAbility("expertise_fs_general_enhanced_constitution_1") return def removeAbilities(core, actor, player): - + actor.removeAbility("expertise_fs_general_enhanced_constitution_1") return - diff --git a/scripts/expertise/expertise_fs_general_enhanced_constitution_2.py b/scripts/expertise/expertise_fs_general_enhanced_constitution_2.py index 7dad3160..f800a526 100644 --- a/scripts/expertise/expertise_fs_general_enhanced_constitution_2.py +++ b/scripts/expertise/expertise_fs_general_enhanced_constitution_2.py @@ -1,47 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_enhanced_constitution_2') - - core.skillModService.addSkillMod(actor, 'constitution_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_enhanced_constitution_2') - - core.skillModService.addSkillMod(actor, 'constitution_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - + actor.addAbility("expertise_fs_general_enhanced_constitution_2") return def removeAbilities(core, actor, player): - + actor.removeAbility("expertise_fs_general_enhanced_constitution_2") return - diff --git a/scripts/expertise/expertise_fs_general_enhanced_stamina_1.py b/scripts/expertise/expertise_fs_general_enhanced_stamina_1.py index 7c760888..28be7fc3 100644 --- a/scripts/expertise/expertise_fs_general_enhanced_stamina_1.py +++ b/scripts/expertise/expertise_fs_general_enhanced_stamina_1.py @@ -1,47 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_enhanced_stamina_1') - - core.skillModService.addSkillMod(actor, 'stamina_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_enhanced_stamina_1') - - core.skillModService.deductSkillMod(actor, 'stamina_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - + actor.addAbility("expertise_fs_general_enhanced_stamina_1") return def removeAbilities(core, actor, player): - + actor.removeAbility("expertise_fs_general_enhanced_stamina_1") return - diff --git a/scripts/expertise/expertise_fs_general_enhanced_stamina_2.py b/scripts/expertise/expertise_fs_general_enhanced_stamina_2.py index 1dc31c3d..57ad1cd6 100644 --- a/scripts/expertise/expertise_fs_general_enhanced_stamina_2.py +++ b/scripts/expertise/expertise_fs_general_enhanced_stamina_2.py @@ -1,47 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_enhanced_stamina_2') - - core.skillModService.addSkillMod(actor, 'stamina_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_enhanced_stamina_2') - - core.skillModService.deductSkillMod(actor, 'stamina_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - + actor.addAbility("expertise_fs_general_enhanced_stamina_2") return def removeAbilities(core, actor, player): - + actor.removeAbility("expertise_fs_general_enhanced_stamina_2") return - diff --git a/scripts/expertise/expertise_fs_general_enhanced_strength_1.py b/scripts/expertise/expertise_fs_general_enhanced_strength_1.py index e4419423..881f9819 100644 --- a/scripts/expertise/expertise_fs_general_enhanced_strength_1.py +++ b/scripts/expertise/expertise_fs_general_enhanced_strength_1.py @@ -1,47 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_enhanced_strength_1') - - core.skillModService.addSkillMod(actor, 'strength_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_enhanced_strength_1') - - core.skillModService.deductSkillMod(actor, 'strength_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - + actor.addAbility("expertise_fs_general_enhanced_strength_1") return def removeAbilities(core, actor, player): - + actor.removeAbility("expertise_fs_general_enhanced_strength_1") return - diff --git a/scripts/expertise/expertise_fs_general_enhanced_strength_2.py b/scripts/expertise/expertise_fs_general_enhanced_strength_2.py index b5193a5f..fed1b59a 100644 --- a/scripts/expertise/expertise_fs_general_enhanced_strength_2.py +++ b/scripts/expertise/expertise_fs_general_enhanced_strength_2.py @@ -1,47 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_enhanced_strength_2') - - core.skillModService.addSkillMod(actor, 'strength_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_enhanced_strength_2') - - core.skillModService.deductSkillMod(actor, 'strength_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - + actor.addAbility("expertise_fs_general_enhanced_strength_2") return def removeAbilities(core, actor, player): - + actor.removeAbility("expertise_fs_general_enhanced_strength_2") return - diff --git a/scripts/expertise/expertise_fs_general_exacting_strikes_1.py b/scripts/expertise/expertise_fs_general_exacting_strikes_1.py index 2236311e..91ea8275 100644 --- a/scripts/expertise/expertise_fs_general_exacting_strikes_1.py +++ b/scripts/expertise/expertise_fs_general_exacting_strikes_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_exacting_strikes_1') - - actor.addSkillMod('expertise_damage_line_fs_sweep', 2) - actor.addSkillMod('expertise_damage_line_fs_dm', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_exacting_strikes_1') - - actor.removeSkillMod('expertise_damage_line_fs_sweep', 2) - actor.removeSkillMod('expertise_damage_line_fs_dm', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_exacting_strike_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_exacting_strike_1") return diff --git a/scripts/expertise/expertise_fs_general_exacting_strikes_2.py b/scripts/expertise/expertise_fs_general_exacting_strikes_2.py index 2b4161b2..c28e666c 100644 --- a/scripts/expertise/expertise_fs_general_exacting_strikes_2.py +++ b/scripts/expertise/expertise_fs_general_exacting_strikes_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_exacting_strikes_2') - - actor.addSkillMod('expertise_damage_line_fs_sweep', 2) - actor.addSkillMod('expertise_damage_line_fs_dm', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_exacting_strikes_2') - - actor.removeSkillMod('expertise_damage_line_fs_sweep', 2) - actor.removeSkillMod('expertise_damage_line_fs_dm', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_exacting_strike_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_exacting_strike_2") return diff --git a/scripts/expertise/expertise_fs_general_exacting_strikes_3.py b/scripts/expertise/expertise_fs_general_exacting_strikes_3.py index cc542875..5e711192 100644 --- a/scripts/expertise/expertise_fs_general_exacting_strikes_3.py +++ b/scripts/expertise/expertise_fs_general_exacting_strikes_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_exacting_strikes_3') - - actor.addSkillMod('expertise_damage_line_fs_sweep', 2) - actor.addSkillMod('expertise_damage_line_fs_dm', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_exacting_strikes_3') - - actor.removeSkillMod('expertise_damage_line_fs_sweep', 2) - actor.removeSkillMod('expertise_damage_line_fs_dm', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_exacting_strike_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_exacting_strike_3") return diff --git a/scripts/expertise/expertise_fs_general_exacting_strikes_4.py b/scripts/expertise/expertise_fs_general_exacting_strikes_4.py index 448389c0..86f573c0 100644 --- a/scripts/expertise/expertise_fs_general_exacting_strikes_4.py +++ b/scripts/expertise/expertise_fs_general_exacting_strikes_4.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_exacting_strikes_4') - - actor.addSkillMod('expertise_damage_line_fs_sweep', 2) - actor.addSkillMod('expertise_damage_line_fs_dm', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_exacting_strikes_4') - - actor.removeSkillMod('expertise_damage_line_fs_sweep', 2) - actor.removeSkillMod('expertise_damage_line_fs_dm', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_exacting_strike_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_exacting_strike_4") return diff --git a/scripts/expertise/expertise_fs_general_fidelity_1.py b/scripts/expertise/expertise_fs_general_fidelity_1.py index 7e78aef6..9817071f 100644 --- a/scripts/expertise/expertise_fs_general_fidelity_1.py +++ b/scripts/expertise/expertise_fs_general_fidelity_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_fidelity_1') - - core.skillModService.addSkillMod(actor, 'expertise_damage_melee', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_fidelity_1') - - core.skillModService.deductSkillMod(actor, 'expertise_damage_melee', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_fidelity_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_fidelity_1") return diff --git a/scripts/expertise/expertise_fs_general_fidelity_2.py b/scripts/expertise/expertise_fs_general_fidelity_2.py index db68b4f5..19abb94c 100644 --- a/scripts/expertise/expertise_fs_general_fidelity_2.py +++ b/scripts/expertise/expertise_fs_general_fidelity_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_fidelity_2') - - core.skillModService.addSkillMod(actor, 'expertise_damage_melee', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_fidelity_2') - - core.skillModService.deductSkillMod(actor, 'expertise_damage_melee', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_fidelity_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_fidelity_2") return diff --git a/scripts/expertise/expertise_fs_general_force_cloak_1.py b/scripts/expertise/expertise_fs_general_force_cloak_1.py index fd748f6d..5f9fc9d4 100644 --- a/scripts/expertise/expertise_fs_general_force_cloak_1.py +++ b/scripts/expertise/expertise_fs_general_force_cloak_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_force_cloak_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_force_cloak_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('fs_buff_invis_1') - + actor.addAbility("fs_buff_invis_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('fs_buff_invis_1') - + actor.removeAbility("fs_buff_invis_1") return diff --git a/scripts/expertise/expertise_fs_general_force_shockwave_1.py b/scripts/expertise/expertise_fs_general_force_shockwave_1.py index 05f5873a..bd222493 100644 --- a/scripts/expertise/expertise_fs_general_force_shockwave_1.py +++ b/scripts/expertise/expertise_fs_general_force_shockwave_1.py @@ -1,48 +1,25 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_force_shockwave_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_force_shockwave_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('fs_dm_cc_crit_1') - + if actor.getLevel() >= 26: + actor.addAbility("fs_ae_dm_cc_1") + if actor.getLevel() >= 34: + actor.addAbility("fs_ae_dm_cc_2") + if actor.getLevel() >= 48: + actor.addAbility("fs_ae_dm_cc_3") + if actor.getLevel() >= 62: + actor.addAbility("fs_ae_dm_cc_4") + if actor.getLevel() >= 76: + actor.addAbility("fs_ae_dm_cc_5") + if actor.getLevel() >= 90: + actor.addAbility("fs_ae_dm_cc_6") return def removeAbilities(core, actor, player): - - actor.removeAbility('fs_dm_cc_crit_1') - + actor.removeAbility("fs_ae_dm_cc_1") + actor.removeAbility("fs_ae_dm_cc_2") + actor.removeAbility("fs_ae_dm_cc_3") + actor.removeAbility("fs_ae_dm_cc_4") + actor.removeAbility("fs_ae_dm_cc_5") + actor.removeAbility("fs_ae_dm_cc_6") return diff --git a/scripts/expertise/expertise_fs_general_grace_in_motion_1.py b/scripts/expertise/expertise_fs_general_grace_in_motion_1.py index e2207030..1bc3e355 100644 --- a/scripts/expertise/expertise_fs_general_grace_in_motion_1.py +++ b/scripts/expertise/expertise_fs_general_grace_in_motion_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_grace_in_motion_1') - - actor.addSkillMod('expertise_action_lightsaber', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_grace_in_motion_1') - - actor.removeSkillMod('expertise_action_lightsaber', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_grace_in_motion_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_grace_in_motion_1") return diff --git a/scripts/expertise/expertise_fs_general_grace_in_motion_2.py b/scripts/expertise/expertise_fs_general_grace_in_motion_2.py index 9b520c39..fa2a708a 100644 --- a/scripts/expertise/expertise_fs_general_grace_in_motion_2.py +++ b/scripts/expertise/expertise_fs_general_grace_in_motion_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_grace_in_motion_2') - - actor.addSkillMod('expertise_action_lightsaber', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_grace_in_motion_2') - - actor.removeSkillMod('expertise_action_lightsaber', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_grace_in_motion_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_grace_in_motion_2") return diff --git a/scripts/expertise/expertise_fs_general_grace_in_motion_3.py b/scripts/expertise/expertise_fs_general_grace_in_motion_3.py index acedaa7a..ea60fbe1 100644 --- a/scripts/expertise/expertise_fs_general_grace_in_motion_3.py +++ b/scripts/expertise/expertise_fs_general_grace_in_motion_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_grace_in_motion_3') - - actor.addSkillMod('expertise_action_lightsaber', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_grace_in_motion_3') - - actor.removeSkillMod('expertise_action_lightsaber', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_grace_in_motion_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_grace_in_motion_3") return diff --git a/scripts/expertise/expertise_fs_general_heightened_speed_1.py b/scripts/expertise/expertise_fs_general_heightened_speed_1.py index 1f410c98..aa3be1b3 100644 --- a/scripts/expertise/expertise_fs_general_heightened_speed_1.py +++ b/scripts/expertise/expertise_fs_general_heightened_speed_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_heightened_speed_1') - - actor.addSkillMod('expertise_movement_buff_fs_force_run', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_heightened_speed_1') - - actor.removeSkillMod('expertise_movement_buff_fs_force_run', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_heightened_speed_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_heightened_speed_1") return diff --git a/scripts/expertise/expertise_fs_general_heightened_speed_2.py b/scripts/expertise/expertise_fs_general_heightened_speed_2.py index 7aed8948..245c3478 100644 --- a/scripts/expertise/expertise_fs_general_heightened_speed_2.py +++ b/scripts/expertise/expertise_fs_general_heightened_speed_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_heightened_speed_2') - - actor.addSkillMod('expertise_movement_buff_fs_force_run', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_heightened_speed_2') - - actor.removeSkillMod('expertise_movement_buff_fs_force_run', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_heightened_speed_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_heightened_speed_2") return diff --git a/scripts/expertise/expertise_fs_general_heightened_speed_3.py b/scripts/expertise/expertise_fs_general_heightened_speed_3.py index 847e3c06..e5517964 100644 --- a/scripts/expertise/expertise_fs_general_heightened_speed_3.py +++ b/scripts/expertise/expertise_fs_general_heightened_speed_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_heightened_speed_3') - - actor.addSkillMod('expertise_movement_buff_fs_force_run', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_heightened_speed_3') - - actor.removeSkillMod('expertise_movement_buff_fs_force_run', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_heightened_speed_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_heightened_speed_3") return diff --git a/scripts/expertise/expertise_fs_general_heightened_speed_4.py b/scripts/expertise/expertise_fs_general_heightened_speed_4.py index 878c1750..e49ae9b4 100644 --- a/scripts/expertise/expertise_fs_general_heightened_speed_4.py +++ b/scripts/expertise/expertise_fs_general_heightened_speed_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_heightened_speed_4') - - actor.addSkillMod('expertise_movement_buff_fs_force_run', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_heightened_speed_4') - - actor.removeSkillMod('expertise_movement_buff_fs_force_run', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_heightened_speed_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_heightened_speed_4") return diff --git a/scripts/expertise/expertise_fs_general_improved_crippling_accuracy_1.py b/scripts/expertise/expertise_fs_general_improved_crippling_accuracy_1.py index 7339e6cf..16c4a122 100644 --- a/scripts/expertise/expertise_fs_general_improved_crippling_accuracy_1.py +++ b/scripts/expertise/expertise_fs_general_improved_crippling_accuracy_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_improved_crippling_accuracy_1') - - actor.addSkillMod('expertise_buff_duration_line_fs_force_throw', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_improved_crippling_accuracy_1') - - actor.removeSkillMod('expertise_buff_duration_line_fs_force_throw', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_improved_crippling_accuracy_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_improved_crippling_accuracy_1") return diff --git a/scripts/expertise/expertise_fs_general_improved_crippling_accuracy_2.py b/scripts/expertise/expertise_fs_general_improved_crippling_accuracy_2.py index 1535e2c6..1ca0b65b 100644 --- a/scripts/expertise/expertise_fs_general_improved_crippling_accuracy_2.py +++ b/scripts/expertise/expertise_fs_general_improved_crippling_accuracy_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_improved_crippling_accuracy_2') - - actor.addSkillMod('expertise_buff_duration_line_fs_force_throw', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_improved_crippling_accuracy_2') - - actor.removeSkillMod('expertise_buff_duration_line_fs_force_throw', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_improved_crippling_accuracy_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_improved_crippling_accuracy_2") return diff --git a/scripts/expertise/expertise_fs_general_improved_crippling_accuracy_3.py b/scripts/expertise/expertise_fs_general_improved_crippling_accuracy_3.py index fb5ffa62..51018497 100644 --- a/scripts/expertise/expertise_fs_general_improved_crippling_accuracy_3.py +++ b/scripts/expertise/expertise_fs_general_improved_crippling_accuracy_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_improved_crippling_accuracy_3') - - actor.addSkillMod('expertise_buff_duration_line_fs_force_throw', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_improved_crippling_accuracy_3') - - actor.removeSkillMod('expertise_buff_duration_line_fs_force_throw', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_improved_crippling_accuracy_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_improved_crippling_accuracy_3") return diff --git a/scripts/expertise/expertise_fs_general_improved_force_cloak_1.py b/scripts/expertise/expertise_fs_general_improved_force_cloak_1.py index 29eb5f11..bd140591 100644 --- a/scripts/expertise/expertise_fs_general_improved_force_cloak_1.py +++ b/scripts/expertise/expertise_fs_general_improved_force_cloak_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_improved_force_cloak_1') - - actor.addSkillMod('expertise_force_cloak_combat_escape', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_improved_force_cloak_1') - - actor.removeSkillMod('expertise_force_cloak_combat_escape', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_improved_force_cloak_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_improved_force_cloak_1") return diff --git a/scripts/expertise/expertise_fs_general_improved_force_shockwave_1.py b/scripts/expertise/expertise_fs_general_improved_force_shockwave_1.py index 9eab98c3..0c675358 100644 --- a/scripts/expertise/expertise_fs_general_improved_force_shockwave_1.py +++ b/scripts/expertise/expertise_fs_general_improved_force_shockwave_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_improved_force_shockwave_1') - - actor.addSkillMod('expertise_damage_line_fs_cc_crit', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_improved_force_shockwave_1') - - actor.removeSkillMod('expertise_damage_line_fs_cc_crit', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_improved_force_shockwave_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_improved_force_shockwave_1") return diff --git a/scripts/expertise/expertise_fs_general_improved_force_shockwave_2.py b/scripts/expertise/expertise_fs_general_improved_force_shockwave_2.py index f51b5f9e..e47b87b3 100644 --- a/scripts/expertise/expertise_fs_general_improved_force_shockwave_2.py +++ b/scripts/expertise/expertise_fs_general_improved_force_shockwave_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_improved_force_shockwave_2') - - actor.addSkillMod('expertise_damage_line_fs_cc_crit', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_improved_force_shockwave_2') - - actor.removeSkillMod('expertise_damage_line_fs_cc_crit', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_improved_force_shockwave_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_improved_force_shockwave_2") return diff --git a/scripts/expertise/expertise_fs_general_improved_force_shockwave_3.py b/scripts/expertise/expertise_fs_general_improved_force_shockwave_3.py index 85d26f98..c7293502 100644 --- a/scripts/expertise/expertise_fs_general_improved_force_shockwave_3.py +++ b/scripts/expertise/expertise_fs_general_improved_force_shockwave_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_improved_force_shockwave_3') - - actor.addSkillMod('expertise_damage_line_fs_cc_crit', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_improved_force_shockwave_3') - - actor.removeSkillMod('expertise_damage_line_fs_cc_crit', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_improved_force_shockwave_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_improved_force_shockwave_3") return diff --git a/scripts/expertise/expertise_fs_general_improved_force_throw_1.py b/scripts/expertise/expertise_fs_general_improved_force_throw_1.py index 982a4921..07264c82 100644 --- a/scripts/expertise/expertise_fs_general_improved_force_throw_1.py +++ b/scripts/expertise/expertise_fs_general_improved_force_throw_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_improved_force_throw_1') - - actor.addSkillMod('expertise_damage_line_fs_force_throw', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_improved_force_throw_1') - - actor.removeSkillMod('expertise_damage_line_fs_force_throw', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_improved_force_throw_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_improved_force_throw_1") return diff --git a/scripts/expertise/expertise_fs_general_improved_force_throw_2.py b/scripts/expertise/expertise_fs_general_improved_force_throw_2.py index 303292ef..1d5d428b 100644 --- a/scripts/expertise/expertise_fs_general_improved_force_throw_2.py +++ b/scripts/expertise/expertise_fs_general_improved_force_throw_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_improved_force_throw_2') - - actor.addSkillMod('expertise_damage_line_fs_force_throw', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_improved_force_throw_2') - - actor.removeSkillMod('expertise_damage_line_fs_force_throw', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_improved_force_throw_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_improved_force_throw_2") return diff --git a/scripts/expertise/expertise_fs_general_improved_saber_block_1.py b/scripts/expertise/expertise_fs_general_improved_saber_block_1.py index 25d545c9..41596ad9 100644 --- a/scripts/expertise/expertise_fs_general_improved_saber_block_1.py +++ b/scripts/expertise/expertise_fs_general_improved_saber_block_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_improved_saber_block_1') - - actor.addSkillMod('expertise_saber_block', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_improved_saber_block_1') - - actor.removeSkillMod('expertise_saber_block', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_improved_saber_block_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_improved_saber_block_1") return diff --git a/scripts/expertise/expertise_fs_general_improved_saber_block_2.py b/scripts/expertise/expertise_fs_general_improved_saber_block_2.py index 066a2128..abc2f012 100644 --- a/scripts/expertise/expertise_fs_general_improved_saber_block_2.py +++ b/scripts/expertise/expertise_fs_general_improved_saber_block_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_improved_saber_block_2') - - actor.addSkillMod('expertise_saber_block', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_improved_saber_block_2') - - actor.removeSkillMod('expertise_saber_block', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_improved_saber_block_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_improved_saber_block_2") return diff --git a/scripts/expertise/expertise_fs_general_improved_saber_block_3.py b/scripts/expertise/expertise_fs_general_improved_saber_block_3.py index 75e6e32b..37892890 100644 --- a/scripts/expertise/expertise_fs_general_improved_saber_block_3.py +++ b/scripts/expertise/expertise_fs_general_improved_saber_block_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_improved_saber_block_3') - - actor.addSkillMod('expertise_saber_block', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_improved_saber_block_3') - - actor.removeSkillMod('expertise_saber_block', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_improved_saber_block_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_improved_saber_block_3") return diff --git a/scripts/expertise/expertise_fs_general_incisiveness_1.py b/scripts/expertise/expertise_fs_general_incisiveness_1.py index 9e171eca..b872f06e 100644 --- a/scripts/expertise/expertise_fs_general_incisiveness_1.py +++ b/scripts/expertise/expertise_fs_general_incisiveness_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_incisiveness_1') - - core.skillModService.addSkillMod(actor, 'expertise_critical_niche_all', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_incisiveness_1') - - core.skillModService.deductSkillMod(actor, 'expertise_critical_niche_all', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_incisiveness_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_incisiveness_1") return diff --git a/scripts/expertise/expertise_fs_general_incisiveness_2.py b/scripts/expertise/expertise_fs_general_incisiveness_2.py index 97a54475..7d397ae3 100644 --- a/scripts/expertise/expertise_fs_general_incisiveness_2.py +++ b/scripts/expertise/expertise_fs_general_incisiveness_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_incisiveness_2') - - core.skillModService.addSkillMod(actor, 'expertise_critical_niche_all', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_incisiveness_2') - - core.skillModService.deductSkillMod(actor, 'expertise_critical_niche_all', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_incisiveness_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_incisiveness_2") return diff --git a/scripts/expertise/expertise_fs_general_incisiveness_3.py b/scripts/expertise/expertise_fs_general_incisiveness_3.py index 773b7bee..58ea449d 100644 --- a/scripts/expertise/expertise_fs_general_incisiveness_3.py +++ b/scripts/expertise/expertise_fs_general_incisiveness_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_incisiveness_3') - - core.skillModService.addSkillMod(actor, 'expertise_critical_niche_all', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_incisiveness_3') - - core.skillModService.deductSkillMod(actor, 'expertise_critical_niche_all', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_incisiveness_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_incisiveness_3") return diff --git a/scripts/expertise/expertise_fs_general_premonition_1.py b/scripts/expertise/expertise_fs_general_premonition_1.py index 95553815..c5510629 100644 --- a/scripts/expertise/expertise_fs_general_premonition_1.py +++ b/scripts/expertise/expertise_fs_general_premonition_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_premonition_1') - - core.skillModService.addSkillMod(actor, 'expertise_evasion_chance', 2) - core.skillModService.addSkillMod(actor, 'expertise_evasion_value', 8) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_premonition_1') - - core.skillModService.deductSkillMod(actor, 'expertise_evasion_chance', 2) - core.skillModService.deductSkillMod(actor, 'expertise_evasion_value', 8) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_premonition_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_premonition_1") return diff --git a/scripts/expertise/expertise_fs_general_premonition_2.py b/scripts/expertise/expertise_fs_general_premonition_2.py index 329f1496..ac6cbe24 100644 --- a/scripts/expertise/expertise_fs_general_premonition_2.py +++ b/scripts/expertise/expertise_fs_general_premonition_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_premonition_2') - - core.skillModService.addSkillMod(actor, 'expertise_evasion_chance', 2) - core.skillModService.addSkillMod(actor, 'expertise_evasion_value', 8) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_premonition_2') - - core.skillModService.deductSkillMod(actor, 'expertise_evasion_chance', 2) - core.skillModService.deductSkillMod(actor, 'expertise_evasion_value', 8) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_premonition_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_premonition_2") return diff --git a/scripts/expertise/expertise_fs_general_premonition_3.py b/scripts/expertise/expertise_fs_general_premonition_3.py index 7c1ae35e..4bfaf6eb 100644 --- a/scripts/expertise/expertise_fs_general_premonition_3.py +++ b/scripts/expertise/expertise_fs_general_premonition_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_premonition_3') - - core.skillModService.addSkillMod(actor, 'expertise_evasion_chance', 2) - core.skillModService.addSkillMod(actor, 'expertise_evasion_value', 8) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_premonition_3') - - core.skillModService.deductSkillMod(actor, 'expertise_evasion_chance', 2) - core.skillModService.deductSkillMod(actor, 'expertise_evasion_value', 8) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_premonition_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_premonition_3") return diff --git a/scripts/expertise/expertise_fs_general_premonition_4.py b/scripts/expertise/expertise_fs_general_premonition_4.py index ffc6fe53..751255e1 100644 --- a/scripts/expertise/expertise_fs_general_premonition_4.py +++ b/scripts/expertise/expertise_fs_general_premonition_4.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_premonition_4') - - core.skillModService.addSkillMod(actor, 'expertise_evasion_chance', 2) - core.skillModService.addSkillMod(actor, 'expertise_evasion_value', 8) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_premonition_4') - - core.skillModService.deductSkillMod(actor, 'expertise_evasion_chance', 2) - core.skillModService.deductSkillMod(actor, 'expertise_evasion_value', 8) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_premonition_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_premonition_4") return diff --git a/scripts/expertise/expertise_fs_general_second_wind_1.py b/scripts/expertise/expertise_fs_general_second_wind_1.py index e2bf66c3..90120855 100644 --- a/scripts/expertise/expertise_fs_general_second_wind_1.py +++ b/scripts/expertise/expertise_fs_general_second_wind_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_second_wind_1') - - actor.addSkillMod('expertise_buff_duration_line_fs_force_run', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_second_wind_1') - - actor.removeSkillMod('expertise_buff_duration_line_fs_force_run', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_second_wind_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_second_wind_1") return diff --git a/scripts/expertise/expertise_fs_general_second_wind_2.py b/scripts/expertise/expertise_fs_general_second_wind_2.py index ed634e1a..5dc1cf7a 100644 --- a/scripts/expertise/expertise_fs_general_second_wind_2.py +++ b/scripts/expertise/expertise_fs_general_second_wind_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_second_wind_2') - - actor.addSkillMod('expertise_buff_duration_line_fs_force_run', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_second_wind_2') - - actor.removeSkillMod('expertise_buff_duration_line_fs_force_run', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_general_second_wind_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_general_second_wind_2") return diff --git a/scripts/expertise/expertise_fs_general_stance_saber_block_1.py b/scripts/expertise/expertise_fs_general_stance_saber_block_1.py index 15799877..01313e59 100644 --- a/scripts/expertise/expertise_fs_general_stance_saber_block_1.py +++ b/scripts/expertise/expertise_fs_general_stance_saber_block_1.py @@ -1,46 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_general_stance_saber_block_1') - - actor.addSkillMod('display_only_parry', 1000) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_general_stance_saber_block_1') - - actor.removeSkillMod('display_only_parry', 1000) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - + actor.addAbility("saberBlock") return def removeAbilities(core, actor, player): - + actor.removeAbility("saberBlock") return diff --git a/scripts/expertise/expertise_fs_path_anticipate_aggression_1.py b/scripts/expertise/expertise_fs_path_anticipate_aggression_1.py index ab29d84c..ac447738 100644 --- a/scripts/expertise/expertise_fs_path_anticipate_aggression_1.py +++ b/scripts/expertise/expertise_fs_path_anticipate_aggression_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_anticipate_aggression_1') - - actor.addSkillMod('expertise_stance_anticipate_aggression', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_anticipate_aggression_1') - - actor.removeSkillMod('expertise_stance_anticipate_aggression', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_anticipate_aggression_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_anticipate_aggression_1") return diff --git a/scripts/expertise/expertise_fs_path_anticipate_aggression_2.py b/scripts/expertise/expertise_fs_path_anticipate_aggression_2.py index 89805eca..da421e8b 100644 --- a/scripts/expertise/expertise_fs_path_anticipate_aggression_2.py +++ b/scripts/expertise/expertise_fs_path_anticipate_aggression_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_anticipate_aggression_2') - - actor.addSkillMod('expertise_stance_anticipate_aggression', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_anticipate_aggression_2') - - actor.removeSkillMod('expertise_stance_anticipate_aggression', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_anticipate_aggression_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_anticipate_aggression_2") return diff --git a/scripts/expertise/expertise_fs_path_brutality_1.py b/scripts/expertise/expertise_fs_path_brutality_1.py index 2bddedf4..b583d402 100644 --- a/scripts/expertise/expertise_fs_path_brutality_1.py +++ b/scripts/expertise/expertise_fs_path_brutality_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_brutality_1') - - core.skillModService.addSkillMod(actor, 'expertise_focus_critical_buff_line', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_brutality_1') - - core.skillModService.deductSkillMod(actor, 'expertise_focus_critical_buff_line', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_brutality_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_brutality_1") return diff --git a/scripts/expertise/expertise_fs_path_brutality_2.py b/scripts/expertise/expertise_fs_path_brutality_2.py index 56aa4679..06c05ccd 100644 --- a/scripts/expertise/expertise_fs_path_brutality_2.py +++ b/scripts/expertise/expertise_fs_path_brutality_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_brutality_2') - - core.skillModService.addSkillMod(actor, 'expertise_focus_critical_buff_line', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_brutality_2') - - core.skillModService.deductSkillMod(actor, 'expertise_focus_critical_buff_line', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_brutality_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_brutality_2") return diff --git a/scripts/expertise/expertise_fs_path_brutality_3.py b/scripts/expertise/expertise_fs_path_brutality_3.py index ae385f2c..63954836 100644 --- a/scripts/expertise/expertise_fs_path_brutality_3.py +++ b/scripts/expertise/expertise_fs_path_brutality_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_brutality_3') - - core.skillModService.addSkillMod(actor, 'expertise_focus_critical_buff_line', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_brutality_3') - - core.skillModService.deductSkillMod(actor, 'expertise_focus_critical_buff_line', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_brutality_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_brutality_3") return diff --git a/scripts/expertise/expertise_fs_path_brutality_4.py b/scripts/expertise/expertise_fs_path_brutality_4.py index 7170710f..c922074e 100644 --- a/scripts/expertise/expertise_fs_path_brutality_4.py +++ b/scripts/expertise/expertise_fs_path_brutality_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_brutality_4') - - core.skillModService.addSkillMod(actor, 'expertise_focus_critical_buff_line', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_brutality_4') - - core.skillModService.deductSkillMod(actor, 'expertise_focus_critical_buff_line', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_brutality_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_brutality_4") return diff --git a/scripts/expertise/expertise_fs_path_cautious_nature_1.py b/scripts/expertise/expertise_fs_path_cautious_nature_1.py index 84c462c0..d4d90133 100644 --- a/scripts/expertise/expertise_fs_path_cautious_nature_1.py +++ b/scripts/expertise/expertise_fs_path_cautious_nature_1.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_cautious_nature_1') - - core.skillModService.addSkillMod(actor, 'expertise_stance_constitution', 10) - core.skillModService.addSkillMod(actor, 'expertise_stance_parry', 1) - core.skillModService.addSkillMod(actor, 'expertise_stance_evasion', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_cautious_nature_1') - - core.skillModService.deductSkillMod(actor, 'expertise_stance_constitution', 10) - core.skillModService.deductSkillMod(actor, 'expertise_stance_parry', 1) - core.skillModService.deductSkillMod(actor, 'expertise_stance_evasion', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_cautious_nature_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_cautious_nature_1") return diff --git a/scripts/expertise/expertise_fs_path_cautious_nature_2.py b/scripts/expertise/expertise_fs_path_cautious_nature_2.py index 42d67d98..112514fd 100644 --- a/scripts/expertise/expertise_fs_path_cautious_nature_2.py +++ b/scripts/expertise/expertise_fs_path_cautious_nature_2.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_cautious_nature_2') - - core.skillModService.addSkillMod(actor, 'expertise_stance_constitution', 10) - core.skillModService.addSkillMod(actor, 'expertise_stance_parry', 1) - core.skillModService.addSkillMod(actor, 'expertise_stance_evasion', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_cautious_nature_2') - - core.skillModService.deductSkillMod(actor, 'expertise_stance_constitution', 10) - core.skillModService.deductSkillMod(actor, 'expertise_stance_parry', 1) - core.skillModService.deductSkillMod(actor, 'expertise_stance_evasion', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_cautious_nature_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_cautious_nature_2") return diff --git a/scripts/expertise/expertise_fs_path_cautious_nature_3.py b/scripts/expertise/expertise_fs_path_cautious_nature_3.py index dfcc3c24..05183a16 100644 --- a/scripts/expertise/expertise_fs_path_cautious_nature_3.py +++ b/scripts/expertise/expertise_fs_path_cautious_nature_3.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_cautious_nature_3') - - core.skillModService.addSkillMod(actor, 'expertise_stance_constitution', 10) - core.skillModService.addSkillMod(actor, 'expertise_stance_parry', 1) - core.skillModService.addSkillMod(actor, 'expertise_stance_evasion', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_cautious_nature_3') - - core.skillModService.deductSkillMod(actor, 'expertise_stance_constitution', 10) - core.skillModService.deductSkillMod(actor, 'expertise_stance_parry', 1) - core.skillModService.deductSkillMod(actor, 'expertise_stance_evasion', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_cautious_nature_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_cautious_nature_3") return diff --git a/scripts/expertise/expertise_fs_path_cautious_nature_4.py b/scripts/expertise/expertise_fs_path_cautious_nature_4.py index fa3a2980..d5f122dd 100644 --- a/scripts/expertise/expertise_fs_path_cautious_nature_4.py +++ b/scripts/expertise/expertise_fs_path_cautious_nature_4.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_cautious_nature_4') - - core.skillModService.addSkillMod(actor, 'expertise_stance_constitution', 10) - core.skillModService.addSkillMod(actor, 'expertise_stance_parry', 1) - core.skillModService.addSkillMod(actor, 'expertise_stance_evasion', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_cautious_nature_4') - - core.skillModService.deductSkillMod(actor, 'expertise_stance_constitution', 10) - core.skillModService.deductSkillMod(actor, 'expertise_stance_parry', 1) - core.skillModService.deductSkillMod(actor, 'expertise_stance_evasion', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_cautious_nature_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_cautious_nature_4") return diff --git a/scripts/expertise/expertise_fs_path_cloud_minds_1.py b/scripts/expertise/expertise_fs_path_cloud_minds_1.py index 6fa583aa..7b839729 100644 --- a/scripts/expertise/expertise_fs_path_cloud_minds_1.py +++ b/scripts/expertise/expertise_fs_path_cloud_minds_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_cloud_minds_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_cloud_minds_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('fs_mind_trick_2') - + actor.addAbility("fs_mind_trick_2") return def removeAbilities(core, actor, player): - - actor.removeAbility('fs_mind_trick_2') - + actor.removeAbility("fs_mind_trick_2") return diff --git a/scripts/expertise/expertise_fs_path_dark_lightning_1.py b/scripts/expertise/expertise_fs_path_dark_lightning_1.py index 6bea7d3e..0e8503fd 100644 --- a/scripts/expertise/expertise_fs_path_dark_lightning_1.py +++ b/scripts/expertise/expertise_fs_path_dark_lightning_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_dark_lightning_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_dark_lightning_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('fs_ae_dm_cc_1') - + actor.addAbility("fs_ae_dm_cc_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('fs_ae_dm_cc_1') - + actor.removeAbility("fs_ae_dm_cc_1") return diff --git a/scripts/expertise/expertise_fs_path_expansive_trickery_1.py b/scripts/expertise/expertise_fs_path_expansive_trickery_1.py index 4e48ff9c..f58232ed 100644 --- a/scripts/expertise/expertise_fs_path_expansive_trickery_1.py +++ b/scripts/expertise/expertise_fs_path_expansive_trickery_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_expansive_trickery_1') - - actor.addSkillMod('expertise_area_size_single_fs_mind_trick_2', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_expansive_trickery_1') - - actor.removeSkillMod('expertise_area_size_single_fs_mind_trick_2', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_expensive_trickery_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_expensive_trickery_2") return diff --git a/scripts/expertise/expertise_fs_path_flurry.py b/scripts/expertise/expertise_fs_path_flurry.py index 0c9dbb88..1fc0486f 100644 --- a/scripts/expertise/expertise_fs_path_flurry.py +++ b/scripts/expertise/expertise_fs_path_flurry.py @@ -1,48 +1,29 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_flurry') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_flurry') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('fs_flurry_1') - + if actor.getLevel() >= 4: + actor.addAbility("fs_flurry_1") + if actor.getLevel() >= 12: + actor.addAbility("fs_flurry_2") + if actor.getLevel() >= 20: + actor.addAbility("fs_flurry_3") + if actor.getLevel() >= 30: + actor.addAbility("fs_flurry_4") + if actor.getLevel() >= 38: + actor.addAbility("fs_flurry_5") + if actor.getLevel() >= 52: + actor.addAbility("fs_flurry_6") + if actor.getLevel() >= 62: + actor.addAbility("fs_flurry_7") return def removeAbilities(core, actor, player): - - actor.removeAbility('fs_flurry_1') + actor.removeAbility("fs_flurry_1") + actor.removeAbility("fs_flurry_2") + actor.removeAbility("fs_flurry_3") + actor.removeAbility("fs_flurry_4") + actor.removeAbility("fs_flurry_5") + actor.removeAbility("fs_flurry_6") + actor.removeAbility("fs_flurry_7") return diff --git a/scripts/expertise/expertise_fs_path_force_choke_1.py b/scripts/expertise/expertise_fs_path_force_choke_1.py index b38da3a8..7ceb9e53 100644 --- a/scripts/expertise/expertise_fs_path_force_choke_1.py +++ b/scripts/expertise/expertise_fs_path_force_choke_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_force_choke_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_force_choke_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('fs_dm_cc_1') - + actor.addAbility("fs_dm_cc_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('fs_dm_cc_1') - + actor.removeAbility("fs_dm_cc_1") return diff --git a/scripts/expertise/expertise_fs_path_force_clarity_1.py b/scripts/expertise/expertise_fs_path_force_clarity_1.py index 651153f9..f511c020 100644 --- a/scripts/expertise/expertise_fs_path_force_clarity_1.py +++ b/scripts/expertise/expertise_fs_path_force_clarity_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_force_clarity_1') - - actor.addSkillMod('expertise_stance_fs_force_clarity', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_force_clarity_1') - - actor.removeSkillMod('expertise_stance_fs_force_clarity', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_force_clarity_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_force_clarity_1") return diff --git a/scripts/expertise/expertise_fs_path_force_drain_1.py b/scripts/expertise/expertise_fs_path_force_drain_1.py index e8c5fee3..1ec21f58 100644 --- a/scripts/expertise/expertise_fs_path_force_drain_1.py +++ b/scripts/expertise/expertise_fs_path_force_drain_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_force_drain_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_force_drain_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('fs_drain_1') - + actor.addAbility("fs_drain_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('fs_drain_1') - + actor.removeAbility("fs_drain_1") return diff --git a/scripts/expertise/expertise_fs_path_forsake_fear_1.py b/scripts/expertise/expertise_fs_path_forsake_fear_1.py index 6ef13e11..8ef08232 100644 --- a/scripts/expertise/expertise_fs_path_forsake_fear_1.py +++ b/scripts/expertise/expertise_fs_path_forsake_fear_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_forsake_fear_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_forsake_fear_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('fs_forsake_fear') - + actor.addAbility("fs_forsake_fear") return def removeAbilities(core, actor, player): - - actor.removeAbility('fs_forsake_fear') - + actor.removeAbility("fs_forsake_fear") return diff --git a/scripts/expertise/expertise_fs_path_hermetic_touch_1.py b/scripts/expertise/expertise_fs_path_hermetic_touch_1.py index 8361fe7d..4e681b4e 100644 --- a/scripts/expertise/expertise_fs_path_hermetic_touch_1.py +++ b/scripts/expertise/expertise_fs_path_hermetic_touch_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_hermetic_touch_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_hermetic_touch_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('fs_hermetic_touch') - + actor.addAbility("fs_hermetic_touch") return def removeAbilities(core, actor, player): - - actor.removeAbility('fs_hermetic_touch') - + actor.removeAbility("fs_hermetic_touch") return diff --git a/scripts/expertise/expertise_fs_path_improved_force_choke_1.py b/scripts/expertise/expertise_fs_path_improved_force_choke_1.py index e01d7586..6aef5ed0 100644 --- a/scripts/expertise/expertise_fs_path_improved_force_choke_1.py +++ b/scripts/expertise/expertise_fs_path_improved_force_choke_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_improved_force_choke_1') - - actor.addSkillMod('expertise_damage_line_fs_dm_cc', 10) - actor.addSkillMod('expertise_dot_damage_line_fs_dm_cc', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_improved_force_choke_1') - - actor.removeSkillMod('expertise_damage_line_fs_dm_cc', 10) - actor.removeSkillMod('expertise_dot_damage_line_fs_dm_cc', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_improved_force_choke_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_improved_force_choke_1") return diff --git a/scripts/expertise/expertise_fs_path_improved_force_choke_2.py b/scripts/expertise/expertise_fs_path_improved_force_choke_2.py index 53971b85..dc0cb249 100644 --- a/scripts/expertise/expertise_fs_path_improved_force_choke_2.py +++ b/scripts/expertise/expertise_fs_path_improved_force_choke_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_improved_force_choke_2') - - actor.addSkillMod('expertise_damage_line_fs_dm_cc', 10) - actor.addSkillMod('expertise_dot_damage_line_fs_dm_cc', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_improved_force_choke_2') - - actor.removeSkillMod('expertise_damage_line_fs_dm_cc', 10) - actor.removeSkillMod('expertise_dot_damage_line_fs_dm_cc', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_improved_force_choke_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_improved_force_choke_2") return diff --git a/scripts/expertise/expertise_fs_path_improved_force_drain_1.py b/scripts/expertise/expertise_fs_path_improved_force_drain_1.py index 2665853a..425f98c3 100644 --- a/scripts/expertise/expertise_fs_path_improved_force_drain_1.py +++ b/scripts/expertise/expertise_fs_path_improved_force_drain_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_improved_force_drain_1') - - actor.addSkillMod('expertise_fs_imp_drain', 33) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_improved_force_drain_1') - - actor.removeSkillMod('expertise_fs_imp_drain', 33) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_improved_force_drain_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_improved_force_drain_1") return diff --git a/scripts/expertise/expertise_fs_path_improved_force_drain_2.py b/scripts/expertise/expertise_fs_path_improved_force_drain_2.py index 61d92bb5..a155578f 100644 --- a/scripts/expertise/expertise_fs_path_improved_force_drain_2.py +++ b/scripts/expertise/expertise_fs_path_improved_force_drain_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_improved_force_drain_2') - - actor.addSkillMod('expertise_fs_imp_drain', 33) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_improved_force_drain_2') - - actor.removeSkillMod('expertise_fs_imp_drain', 33) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_improved_force_drain_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_improved_force_drain_2") return diff --git a/scripts/expertise/expertise_fs_path_improved_force_drain_3.py b/scripts/expertise/expertise_fs_path_improved_force_drain_3.py index 4ecb65bf..9fc7a049 100644 --- a/scripts/expertise/expertise_fs_path_improved_force_drain_3.py +++ b/scripts/expertise/expertise_fs_path_improved_force_drain_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_improved_force_drain_3') - - actor.addSkillMod('expertise_fs_imp_drain', 34) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_improved_force_drain_3') - - actor.removeSkillMod('expertise_fs_imp_drain', 34) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_improved_force_drain_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_improved_force_drain_3") return diff --git a/scripts/expertise/expertise_fs_path_improved_saber_reflect_1.py b/scripts/expertise/expertise_fs_path_improved_saber_reflect_1.py index f68eb3ae..fcd8dab3 100644 --- a/scripts/expertise/expertise_fs_path_improved_saber_reflect_1.py +++ b/scripts/expertise/expertise_fs_path_improved_saber_reflect_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_improved_saber_reflect_1') - - actor.addSkillMod('expertise_damage_line_fs_saber_reflect', 50) - actor.addSkillMod('expertise_force_alacrity', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_improved_saber_reflect_1') - - actor.removeSkillMod('expertise_damage_line_fs_saber_reflect', 50) - actor.removeSkillMod('expertise_force_alacrity', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_improved_saber_reflect_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_improved_saber_reflect_1") return diff --git a/scripts/expertise/expertise_fs_path_improved_saber_reflect_2.py b/scripts/expertise/expertise_fs_path_improved_saber_reflect_2.py index 6d95b6e7..dc7a3f46 100644 --- a/scripts/expertise/expertise_fs_path_improved_saber_reflect_2.py +++ b/scripts/expertise/expertise_fs_path_improved_saber_reflect_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_improved_saber_reflect_2') - - actor.addSkillMod('expertise_damage_line_fs_saber_reflect', 50) - actor.addSkillMod('expertise_force_alacrity', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_improved_saber_reflect_2') - - actor.removeSkillMod('expertise_damage_line_fs_saber_reflect', 50) - actor.removeSkillMod('expertise_force_alacrity', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_improved_saber_reflect_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_improved_saber_reflect_2") return diff --git a/scripts/expertise/expertise_fs_path_lethargy_1.py b/scripts/expertise/expertise_fs_path_lethargy_1.py index 7039b6d8..a214883f 100644 --- a/scripts/expertise/expertise_fs_path_lethargy_1.py +++ b/scripts/expertise/expertise_fs_path_lethargy_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_lethargy_1') - - actor.addSkillMod('expertise_buff_duration_line_fs_mind_trick', 2) - actor.addSkillMod('expertise_action_damage_line_fs_mind_trick', 250) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_lethargy_1') - - actor.removeSkillMod('expertise_buff_duration_line_fs_mind_trick', 2) - actor.removeSkillMod('expertise_action_damage_line_fs_mind_trick', 250) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_lethargy_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_lethargy_1") return diff --git a/scripts/expertise/expertise_fs_path_lethargy_2.py b/scripts/expertise/expertise_fs_path_lethargy_2.py index 6b294600..b3191ac1 100644 --- a/scripts/expertise/expertise_fs_path_lethargy_2.py +++ b/scripts/expertise/expertise_fs_path_lethargy_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_lethargy_2') - - actor.addSkillMod('expertise_buff_duration_line_fs_mind_trick', 2) - actor.addSkillMod('expertise_action_damage_line_fs_mind_trick', 250) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_lethargy_2') - - actor.removeSkillMod('expertise_buff_duration_line_fs_mind_trick', 2) - actor.removeSkillMod('expertise_action_damage_line_fs_mind_trick', 250) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_lethargy_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_lethargy_2") return diff --git a/scripts/expertise/expertise_fs_path_lethargy_3.py b/scripts/expertise/expertise_fs_path_lethargy_3.py index 9966bbad..833037e2 100644 --- a/scripts/expertise/expertise_fs_path_lethargy_3.py +++ b/scripts/expertise/expertise_fs_path_lethargy_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_lethargy_3') - - actor.addSkillMod('expertise_buff_duration_line_fs_mind_trick', 2) - actor.addSkillMod('expertise_action_damage_line_fs_mind_trick', 250) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_lethargy_3') - - actor.removeSkillMod('expertise_buff_duration_line_fs_mind_trick', 2) - actor.removeSkillMod('expertise_action_damage_line_fs_mind_trick', 250) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_lethargy_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_lethargy_3") return diff --git a/scripts/expertise/expertise_fs_path_lethargy_4.py b/scripts/expertise/expertise_fs_path_lethargy_4.py index ca3b2e10..6fb09b25 100644 --- a/scripts/expertise/expertise_fs_path_lethargy_4.py +++ b/scripts/expertise/expertise_fs_path_lethargy_4.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_lethargy_4') - - actor.addSkillMod('expertise_buff_duration_line_fs_mind_trick', 2) - actor.addSkillMod('expertise_action_damage_line_fs_mind_trick', 250) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_lethargy_4') - - actor.removeSkillMod('expertise_buff_duration_line_fs_mind_trick', 2) - actor.removeSkillMod('expertise_action_damage_line_fs_mind_trick', 250) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_lethargy_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_lethargy_4") return diff --git a/scripts/expertise/expertise_fs_path_maelstrom_1.py b/scripts/expertise/expertise_fs_path_maelstrom_1.py index 39b07550..3fbdb051 100644 --- a/scripts/expertise/expertise_fs_path_maelstrom_1.py +++ b/scripts/expertise/expertise_fs_path_maelstrom_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_maelstrom_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_maelstrom_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('fs_maelstrom_1') - + actor.addAbility("fs_maelstrom_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('fs_maelstrom_1') - + actor.removeAbility("fs_maelstrom_1") return diff --git a/scripts/expertise/expertise_fs_path_perceptive_sentinel_1.py b/scripts/expertise/expertise_fs_path_perceptive_sentinel_1.py index 3803bf98..c2bb199d 100644 --- a/scripts/expertise/expertise_fs_path_perceptive_sentinel_1.py +++ b/scripts/expertise/expertise_fs_path_perceptive_sentinel_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_perceptive_sentinel_1') - - actor.addSkillMod('expertise_stance_perceptive_sentinel', 1) - actor.addSkillMod('expertise_stance_perceptive_sentinel_pvp', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_perceptive_sentinel_1') - - actor.removeSkillMod('expertise_stance_perceptive_sentinel', 1) - actor.removeSkillMod('expertise_stance_perceptive_sentinel_pvp', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_perceptive_sentinel_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_perceptive_sentinel_1") return diff --git a/scripts/expertise/expertise_fs_path_perceptive_sentinel_2.py b/scripts/expertise/expertise_fs_path_perceptive_sentinel_2.py index e8944848..04c69b17 100644 --- a/scripts/expertise/expertise_fs_path_perceptive_sentinel_2.py +++ b/scripts/expertise/expertise_fs_path_perceptive_sentinel_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_perceptive_sentinel_2') - - actor.addSkillMod('expertise_stance_perceptive_sentinel', 1) - actor.addSkillMod('expertise_stance_perceptive_sentinel_pvp', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_perceptive_sentinel_2') - - actor.removeSkillMod('expertise_stance_perceptive_sentinel', 1) - actor.removeSkillMod('expertise_stance_perceptive_sentinel_pvp', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_perceptive_sentinel_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_perceptive_sentinel_2") return diff --git a/scripts/expertise/expertise_fs_path_perceptive_sentinel_3.py b/scripts/expertise/expertise_fs_path_perceptive_sentinel_3.py index a4bd42b0..83c4131f 100644 --- a/scripts/expertise/expertise_fs_path_perceptive_sentinel_3.py +++ b/scripts/expertise/expertise_fs_path_perceptive_sentinel_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_perceptive_sentinel_3') - - actor.addSkillMod('expertise_stance_perceptive_sentinel', 1) - actor.addSkillMod('expertise_stance_perceptive_sentinel_pvp', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_perceptive_sentinel_3') - - actor.removeSkillMod('expertise_stance_perceptive_sentinel', 1) - actor.removeSkillMod('expertise_stance_perceptive_sentinel_pvp', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_perceptive_sentinel_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_perceptive_sentinel_3") return diff --git a/scripts/expertise/expertise_fs_path_perceptive_sentinel_4.py b/scripts/expertise/expertise_fs_path_perceptive_sentinel_4.py index f3a94bb6..0f6276dc 100644 --- a/scripts/expertise/expertise_fs_path_perceptive_sentinel_4.py +++ b/scripts/expertise/expertise_fs_path_perceptive_sentinel_4.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_perceptive_sentinel_4') - - actor.addSkillMod('expertise_stance_perceptive_sentinel', 1) - actor.addSkillMod('expertise_stance_perceptive_sentinel_pvp', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_perceptive_sentinel_4') - - actor.removeSkillMod('expertise_stance_perceptive_sentinel', 1) - actor.removeSkillMod('expertise_stance_perceptive_sentinel_pvp', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_perceptive_sentinel_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_perceptive_sentinel_4") return diff --git a/scripts/expertise/expertise_fs_path_reactive_response_1.py b/scripts/expertise/expertise_fs_path_reactive_response_1.py index 7742793f..816c657d 100644 --- a/scripts/expertise/expertise_fs_path_reactive_response_1.py +++ b/scripts/expertise/expertise_fs_path_reactive_response_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_reactive_response_1') - - actor.addSkillMod('expertise_stance_damage_add_to_action', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_reactive_response_1') - - actor.removeSkillMod('expertise_stance_damage_add_to_action', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_reactive_response_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_reactive_response_1") return diff --git a/scripts/expertise/expertise_fs_path_reactive_response_2.py b/scripts/expertise/expertise_fs_path_reactive_response_2.py index a46db04e..3a79b265 100644 --- a/scripts/expertise/expertise_fs_path_reactive_response_2.py +++ b/scripts/expertise/expertise_fs_path_reactive_response_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_reactive_response_2') - - actor.addSkillMod('expertise_stance_damage_add_to_action', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_reactive_response_2') - - actor.removeSkillMod('expertise_stance_damage_add_to_action', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_reactive_response_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_reactive_response_2") return diff --git a/scripts/expertise/expertise_fs_path_remorseless_nature_1.py b/scripts/expertise/expertise_fs_path_remorseless_nature_1.py index a155f97c..1c4bee8a 100644 --- a/scripts/expertise/expertise_fs_path_remorseless_nature_1.py +++ b/scripts/expertise/expertise_fs_path_remorseless_nature_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_remorseless_nature_1') - - actor.addSkillMod('expertise_focus_stamina', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_remorseless_nature_1') - - actor.removeSkillMod('expertise_focus_stamina', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_remorseless_nature_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_remorseless_nature_1") return diff --git a/scripts/expertise/expertise_fs_path_remorseless_nature_2.py b/scripts/expertise/expertise_fs_path_remorseless_nature_2.py index 28db8826..85d986d8 100644 --- a/scripts/expertise/expertise_fs_path_remorseless_nature_2.py +++ b/scripts/expertise/expertise_fs_path_remorseless_nature_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_remorseless_nature_2') - - actor.addSkillMod('expertise_focus_stamina', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_remorseless_nature_2') - - actor.removeSkillMod('expertise_focus_stamina', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_remorseless_nature_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_remorseless_nature_2") return diff --git a/scripts/expertise/expertise_fs_path_remorseless_nature_3.py b/scripts/expertise/expertise_fs_path_remorseless_nature_3.py index 7089a65c..19dfa6fd 100644 --- a/scripts/expertise/expertise_fs_path_remorseless_nature_3.py +++ b/scripts/expertise/expertise_fs_path_remorseless_nature_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_remorseless_nature_3') - - actor.addSkillMod('expertise_focus_stamina', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_remorseless_nature_3') - - actor.removeSkillMod('expertise_focus_stamina', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_remorseless_nature_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_remorseless_nature_3") return diff --git a/scripts/expertise/expertise_fs_path_remorseless_nature_4.py b/scripts/expertise/expertise_fs_path_remorseless_nature_4.py index 49440a2d..8d505b2f 100644 --- a/scripts/expertise/expertise_fs_path_remorseless_nature_4.py +++ b/scripts/expertise/expertise_fs_path_remorseless_nature_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_remorseless_nature_4') - - actor.addSkillMod('expertise_focus_stamina', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_remorseless_nature_4') - - actor.removeSkillMod('expertise_focus_stamina', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_remorseless_nature_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_remorseless_nature_4") return diff --git a/scripts/expertise/expertise_fs_path_riposte_1.py b/scripts/expertise/expertise_fs_path_riposte_1.py index b7470a65..5ffa3594 100644 --- a/scripts/expertise/expertise_fs_path_riposte_1.py +++ b/scripts/expertise/expertise_fs_path_riposte_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_riposte_1') - - actor.addSkillMod('expertise_stance_riposte', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_riposte_1') - - actor.removeSkillMod('expertise_stance_riposte', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_riposte_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_riposte_1") return diff --git a/scripts/expertise/expertise_fs_path_riposte_2.py b/scripts/expertise/expertise_fs_path_riposte_2.py index de7b4623..7704424c 100644 --- a/scripts/expertise/expertise_fs_path_riposte_2.py +++ b/scripts/expertise/expertise_fs_path_riposte_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_riposte_2') - - actor.addSkillMod('expertise_stance_riposte', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_riposte_2') - - actor.removeSkillMod('expertise_stance_riposte', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_riposte_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_riposte_2") return diff --git a/scripts/expertise/expertise_fs_path_ruthless_precision_1.py b/scripts/expertise/expertise_fs_path_ruthless_precision_1.py index c90c209a..ad47cf20 100644 --- a/scripts/expertise/expertise_fs_path_ruthless_precision_1.py +++ b/scripts/expertise/expertise_fs_path_ruthless_precision_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_ruthless_precision_1') - - core.skillModService.addSkillMod(actor, 'expertise_focus_damage_increase', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_ruthless_precision_1') - - core.skillModService.deductSkillMod(actor, 'expertise_focus_damage_increase', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_ruthless_precision_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_ruthless_precision_1") return diff --git a/scripts/expertise/expertise_fs_path_ruthless_precision_2.py b/scripts/expertise/expertise_fs_path_ruthless_precision_2.py index 87ad2d2d..c4ccc5ae 100644 --- a/scripts/expertise/expertise_fs_path_ruthless_precision_2.py +++ b/scripts/expertise/expertise_fs_path_ruthless_precision_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_ruthless_precision_2') - - core.skillModService.addSkillMod(actor, 'expertise_focus_damage_increase', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_ruthless_precision_2') - - core.skillModService.deductSkillMod(actor, 'expertise_focus_damage_increase', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_ruthless_precision_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_ruthless_precision_2") return diff --git a/scripts/expertise/expertise_fs_path_ruthless_precision_3.py b/scripts/expertise/expertise_fs_path_ruthless_precision_3.py index b802e602..01546884 100644 --- a/scripts/expertise/expertise_fs_path_ruthless_precision_3.py +++ b/scripts/expertise/expertise_fs_path_ruthless_precision_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_ruthless_precision_3') - - core.skillModService.addSkillMod(actor, 'expertise_focus_damage_increase', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_ruthless_precision_3') - - core.skillModService.deductSkillMod(actor, 'expertise_focus_damage_increase', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_ruthless_precision_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_ruthless_precision_3") return diff --git a/scripts/expertise/expertise_fs_path_ruthless_precision_4.py b/scripts/expertise/expertise_fs_path_ruthless_precision_4.py index f0f94fe5..6292bfe5 100644 --- a/scripts/expertise/expertise_fs_path_ruthless_precision_4.py +++ b/scripts/expertise/expertise_fs_path_ruthless_precision_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_ruthless_precision_4') - - core.skillModService.addSkillMod(actor, 'expertise_focus_damage_increase', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_ruthless_precision_4') - - core.skillModService.deductSkillMod(actor, 'expertise_focus_damage_increase', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_ruthless_precision_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_ruthless_precision_4") return diff --git a/scripts/expertise/expertise_fs_path_saber_reflect_1.py b/scripts/expertise/expertise_fs_path_saber_reflect_1.py index 2895ccac..ff019b2d 100644 --- a/scripts/expertise/expertise_fs_path_saber_reflect_1.py +++ b/scripts/expertise/expertise_fs_path_saber_reflect_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_saber_reflect_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_saber_reflect_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('fs_saber_reflect_buff') - + actor.addAbility("fs_saber_reflect_buff") return def removeAbilities(core, actor, player): - - actor.removeAbility('fs_saber_reflect_buff') - + actor.removeAbility("fs_saber_reflect_buff") return diff --git a/scripts/expertise/expertise_fs_path_saber_shackle_1.py b/scripts/expertise/expertise_fs_path_saber_shackle_1.py index 9f2fe63f..e7115fa0 100644 --- a/scripts/expertise/expertise_fs_path_saber_shackle_1.py +++ b/scripts/expertise/expertise_fs_path_saber_shackle_1.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_saber_shackle_1') - - actor.addSkillMod('expertise_stance_saber_throw_snare_chance', 25) - actor.addSkillMod('expertise_stance_saber_throw_root_chance', 2) - actor.addSkillMod('expertise_damage_line_fs_dm', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_saber_shackle_1') - - actor.removeSkillMod('expertise_stance_saber_throw_snare_chance', 25) - actor.removeSkillMod('expertise_stance_saber_throw_root_chance', 2) - actor.removeSkillMod('expertise_damage_line_fs_dm', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_saber_shackle_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_saber_shackle_1") return diff --git a/scripts/expertise/expertise_fs_path_saber_shackle_2.py b/scripts/expertise/expertise_fs_path_saber_shackle_2.py index 76d3d5fa..cc2cdab9 100644 --- a/scripts/expertise/expertise_fs_path_saber_shackle_2.py +++ b/scripts/expertise/expertise_fs_path_saber_shackle_2.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_saber_shackle_2') - - actor.addSkillMod('expertise_stance_saber_throw_snare_chance', 25) - actor.addSkillMod('expertise_stance_saber_throw_root_chance', 2) - actor.addSkillMod('expertise_damage_line_fs_dm', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_saber_shackle_2') - - actor.removeSkillMod('expertise_stance_saber_throw_snare_chance', 25) - actor.removeSkillMod('expertise_stance_saber_throw_root_chance', 2) - actor.removeSkillMod('expertise_damage_line_fs_dm', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_saber_shackle_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_saber_shackle_2") return diff --git a/scripts/expertise/expertise_fs_path_saber_shackle_3.py b/scripts/expertise/expertise_fs_path_saber_shackle_3.py index 7c4b0c3e..426199d1 100644 --- a/scripts/expertise/expertise_fs_path_saber_shackle_3.py +++ b/scripts/expertise/expertise_fs_path_saber_shackle_3.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_saber_shackle_3') - - actor.addSkillMod('expertise_stance_saber_throw_snare_chance', 25) - actor.addSkillMod('expertise_stance_saber_throw_root_chance', 2) - actor.addSkillMod('expertise_damage_line_fs_dm', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_saber_shackle_3') - - actor.removeSkillMod('expertise_stance_saber_throw_snare_chance', 25) - actor.removeSkillMod('expertise_stance_saber_throw_root_chance', 2) - actor.removeSkillMod('expertise_damage_line_fs_dm', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_saber_shackle_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_saber_shackle_3") return diff --git a/scripts/expertise/expertise_fs_path_saber_shackle_4.py b/scripts/expertise/expertise_fs_path_saber_shackle_4.py index 889e106d..a20668d8 100644 --- a/scripts/expertise/expertise_fs_path_saber_shackle_4.py +++ b/scripts/expertise/expertise_fs_path_saber_shackle_4.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_saber_shackle_4') - - actor.addSkillMod('expertise_stance_saber_throw_snare_chance', 25) - actor.addSkillMod('expertise_stance_saber_throw_root_chance', 2) - actor.addSkillMod('expertise_damage_line_fs_dm', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_saber_shackle_4') - - actor.removeSkillMod('expertise_stance_saber_throw_snare_chance', 25) - actor.removeSkillMod('expertise_stance_saber_throw_root_chance', 2) - actor.removeSkillMod('expertise_damage_line_fs_dm', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_saber_shackle_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_saber_shackle_4") return diff --git a/scripts/expertise/expertise_fs_path_soothing_aura_1.py b/scripts/expertise/expertise_fs_path_soothing_aura_1.py index d2ce8171..ab8c5c6b 100644 --- a/scripts/expertise/expertise_fs_path_soothing_aura_1.py +++ b/scripts/expertise/expertise_fs_path_soothing_aura_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_soothing_aura_1') - - actor.addSkillMod('expertise_stance_healing_line_fs_heal', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_soothing_aura_1') - - actor.removeSkillMod('expertise_stance_healing_line_fs_heal', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_soothing_aura_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_soothing_aura_1") return diff --git a/scripts/expertise/expertise_fs_path_soothing_aura_2.py b/scripts/expertise/expertise_fs_path_soothing_aura_2.py index eb134506..e04ed993 100644 --- a/scripts/expertise/expertise_fs_path_soothing_aura_2.py +++ b/scripts/expertise/expertise_fs_path_soothing_aura_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_soothing_aura_2') - - actor.addSkillMod('expertise_stance_healing_line_fs_heal', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_soothing_aura_2') - - actor.removeSkillMod('expertise_stance_healing_line_fs_heal', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_soothing_aura_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_soothing_aura_2") return diff --git a/scripts/expertise/expertise_fs_path_soothing_aura_3.py b/scripts/expertise/expertise_fs_path_soothing_aura_3.py index ea794b23..c7ec3e0b 100644 --- a/scripts/expertise/expertise_fs_path_soothing_aura_3.py +++ b/scripts/expertise/expertise_fs_path_soothing_aura_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_soothing_aura_3') - - actor.addSkillMod('expertise_stance_healing_line_fs_heal', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_soothing_aura_3') - - actor.removeSkillMod('expertise_stance_healing_line_fs_heal', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_soothing_aura_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_soothing_aura_3") return diff --git a/scripts/expertise/expertise_fs_path_soothing_aura_4.py b/scripts/expertise/expertise_fs_path_soothing_aura_4.py index b209ea53..0e3bc9a1 100644 --- a/scripts/expertise/expertise_fs_path_soothing_aura_4.py +++ b/scripts/expertise/expertise_fs_path_soothing_aura_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_soothing_aura_4') - - actor.addSkillMod('expertise_stance_healing_line_fs_heal', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_soothing_aura_4') - - actor.removeSkillMod('expertise_stance_healing_line_fs_heal', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_soothing_aura_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_soothing_aura_4") return diff --git a/scripts/expertise/expertise_fs_path_strangulation_1.py b/scripts/expertise/expertise_fs_path_strangulation_1.py index 7e57f9af..b1db621b 100644 --- a/scripts/expertise/expertise_fs_path_strangulation_1.py +++ b/scripts/expertise/expertise_fs_path_strangulation_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_strangulation_1') - - actor.addSkillMod('expertise_fs_imp_choke', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_strangulation_1') - - actor.removeSkillMod('expertise_fs_imp_choke', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_strangulation_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_strangulation_1") return diff --git a/scripts/expertise/expertise_fs_path_strangulation_2.py b/scripts/expertise/expertise_fs_path_strangulation_2.py index 40534bff..43c05ab8 100644 --- a/scripts/expertise/expertise_fs_path_strangulation_2.py +++ b/scripts/expertise/expertise_fs_path_strangulation_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_strangulation_2') - - actor.addSkillMod('expertise_fs_imp_choke', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_strangulation_2') - - actor.removeSkillMod('expertise_fs_imp_choke', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_strangulation_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_strangulation_2") return diff --git a/scripts/expertise/expertise_fs_path_tempt_hatred_1.py b/scripts/expertise/expertise_fs_path_tempt_hatred_1.py index 7bf99377..c8260021 100644 --- a/scripts/expertise/expertise_fs_path_tempt_hatred_1.py +++ b/scripts/expertise/expertise_fs_path_tempt_hatred_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_tempt_hatred_1') - - actor.addSkillMod('expertise_focus_damage_add_to_action', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_tempt_hatred_1') - - actor.removeSkillMod('expertise_focus_damage_add_to_action', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_tempt_hatred_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_tempt_hatred_1") return diff --git a/scripts/expertise/expertise_fs_path_tempt_hatred_2.py b/scripts/expertise/expertise_fs_path_tempt_hatred_2.py index 9abf4c24..cced0afd 100644 --- a/scripts/expertise/expertise_fs_path_tempt_hatred_2.py +++ b/scripts/expertise/expertise_fs_path_tempt_hatred_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_tempt_hatred_2') - - actor.addSkillMod('expertise_focus_damage_add_to_action', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_tempt_hatred_2') - - actor.removeSkillMod('expertise_focus_damage_add_to_action', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_tempt_hatred_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_tempt_hatred_2") return diff --git a/scripts/expertise/expertise_fs_path_wracking_energy_1.py b/scripts/expertise/expertise_fs_path_wracking_energy_1.py index 425b7931..25e70e11 100644 --- a/scripts/expertise/expertise_fs_path_wracking_energy_1.py +++ b/scripts/expertise/expertise_fs_path_wracking_energy_1.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_wracking_energy_1') - - actor.addSkillMod('expertise_fs_dm_armor_bypass', 25) - actor.addSkillMod('expertise_buff_duration_line_fs_ae_dm_cc', 2) - actor.addSkillMod('expertise_buff_chance_line_fs_ae_dm_cc', 100) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_wracking_energy_1') - - actor.removeSkillMod('expertise_fs_dm_armor_bypass', 25) - actor.removeSkillMod('expertise_buff_duration_line_fs_ae_dm_cc', 2) - actor.removeSkillMod('expertise_buff_chance_line_fs_ae_dm_cc', 100) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_wracking_energy_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_wracking_energy_1") return diff --git a/scripts/expertise/expertise_fs_path_wracking_energy_2.py b/scripts/expertise/expertise_fs_path_wracking_energy_2.py index 298130bc..cd1ed137 100644 --- a/scripts/expertise/expertise_fs_path_wracking_energy_2.py +++ b/scripts/expertise/expertise_fs_path_wracking_energy_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_wracking_energy_2') - - actor.addSkillMod('expertise_fs_dm_armor_bypass', 25) - actor.addSkillMod('expertise_buff_duration_line_fs_ae_dm_cc', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_wracking_energy_2') - - actor.removeSkillMod('expertise_fs_dm_armor_bypass', 25) - actor.removeSkillMod('expertise_buff_duration_line_fs_ae_dm_cc', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_wracking_energy_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_wracking_energy_2") return diff --git a/scripts/expertise/expertise_fs_path_wracking_energy_3.py b/scripts/expertise/expertise_fs_path_wracking_energy_3.py index 7ebb9e6a..00b73ffc 100644 --- a/scripts/expertise/expertise_fs_path_wracking_energy_3.py +++ b/scripts/expertise/expertise_fs_path_wracking_energy_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_wracking_energy_3') - - actor.addSkillMod('expertise_fs_dm_armor_bypass', 25) - actor.addSkillMod('expertise_buff_duration_line_fs_ae_dm_cc', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_wracking_energy_3') - - actor.removeSkillMod('expertise_fs_dm_armor_bypass', 25) - actor.removeSkillMod('expertise_buff_duration_line_fs_ae_dm_cc', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_wracking_energy_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_wracking_energy_3") return diff --git a/scripts/expertise/expertise_fs_path_wracking_energy_4.py b/scripts/expertise/expertise_fs_path_wracking_energy_4.py index 6818335f..86641a26 100644 --- a/scripts/expertise/expertise_fs_path_wracking_energy_4.py +++ b/scripts/expertise/expertise_fs_path_wracking_energy_4.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.addSkill('expertise_fs_path_wracking_energy_4') - - actor.addSkillMod('expertise_fs_dm_armor_bypass', 25) - actor.addSkillMod('expertise_buff_duration_line_fs_ae_dm_cc', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'force_sensitive_1a': - return - - actor.removeSkill('expertise_fs_path_wracking_energy_4') - - actor.removeSkillMod('expertise_fs_dm_armor_bypass', 25) - actor.removeSkillMod('expertise_buff_duration_line_fs_ae_dm_cc', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_fs_path_wracking_energy_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_fs_path_wracking_energy_4") return diff --git a/scripts/expertise/expertise_me_agility_1.py b/scripts/expertise/expertise_me_agility_1.py index 29ea50ff..62abf270 100644 --- a/scripts/expertise/expertise_me_agility_1.py +++ b/scripts/expertise/expertise_me_agility_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_agility_1') - - actor.addSkillMod('agility_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_agility_1') - - actor.removeSkillMod('agility_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_agility_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_agility_1") return diff --git a/scripts/expertise/expertise_me_agility_2.py b/scripts/expertise/expertise_me_agility_2.py index f92f5a4b..d9f1bc7b 100644 --- a/scripts/expertise/expertise_me_agility_2.py +++ b/scripts/expertise/expertise_me_agility_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_agility_2') - - actor.addSkillMod('agility_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_agility_2') - - actor.removeSkillMod('agility_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_agility_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_agility_2") return diff --git a/scripts/expertise/expertise_me_agility_3.py b/scripts/expertise/expertise_me_agility_3.py index 7441af33..1d58506f 100644 --- a/scripts/expertise/expertise_me_agility_3.py +++ b/scripts/expertise/expertise_me_agility_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_agility_3') - - actor.addSkillMod('agility_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_agility_3') - - actor.removeSkillMod('agility_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_agility_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_agility_3") return diff --git a/scripts/expertise/expertise_me_agility_4.py b/scripts/expertise/expertise_me_agility_4.py index 89603b75..ab6d2201 100644 --- a/scripts/expertise/expertise_me_agility_4.py +++ b/scripts/expertise/expertise_me_agility_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_agility_4') - - actor.addSkillMod('agility_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_agility_4') - - actor.removeSkillMod('agility_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_agility_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_agility_4") return diff --git a/scripts/expertise/expertise_me_agro_healing_1.py b/scripts/expertise/expertise_me_agro_healing_1.py index 5e44ee56..35bcdccc 100644 --- a/scripts/expertise/expertise_me_agro_healing_1.py +++ b/scripts/expertise/expertise_me_agro_healing_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_agro_healing_1') - - actor.addSkillMod('expertise_agro_healing', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_agro_healing_1') - - actor.removeSkillMod('expertise_agro_healing', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_agro_healing_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_agro_healing_1") return diff --git a/scripts/expertise/expertise_me_agro_healing_2.py b/scripts/expertise/expertise_me_agro_healing_2.py index 454ce643..40fbc169 100644 --- a/scripts/expertise/expertise_me_agro_healing_2.py +++ b/scripts/expertise/expertise_me_agro_healing_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_agro_healing_2') - - actor.addSkillMod('expertise_agro_healing', 20) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_agro_healing_2') - - actor.removeSkillMod('expertise_agro_healing', 20) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_agro_healing_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_agro_healing_2") return diff --git a/scripts/expertise/expertise_me_agro_healing_3.py b/scripts/expertise/expertise_me_agro_healing_3.py index b795406e..4deaea9a 100644 --- a/scripts/expertise/expertise_me_agro_healing_3.py +++ b/scripts/expertise/expertise_me_agro_healing_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_agro_healing_3') - - actor.addSkillMod('expertise_agro_healing', 20) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_agro_healing_3') - - actor.removeSkillMod('expertise_agro_healing', 20) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_agro_healing_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_agro_healing_3") return diff --git a/scripts/expertise/expertise_me_bacta_bomb_1.py b/scripts/expertise/expertise_me_bacta_bomb_1.py index 64d190c5..40336997 100644 --- a/scripts/expertise/expertise_me_bacta_bomb_1.py +++ b/scripts/expertise/expertise_me_bacta_bomb_1.py @@ -1,48 +1,22 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_bacta_bomb_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_bacta_bomb_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('me_bacta_bomb_1') - + if actor.getLevel() >= 26: + actor.addAbility("me_bacta_bomb_1") + if actor.getLevel() >= 34: + actor.addAbility("me_bacta_bomb_2") + if actor.getLevel() >= 48: + actor.addAbility("me_bacta_bomb_3") + if actor.getLevel() >= 62: + actor.addAbility("me_bacta_bomb_4") + if actor.getLevel() >= 76: + actor.addAbility("me_bacta_bomb_5") return def removeAbilities(core, actor, player): - - actor.removeAbility('me_bacta_bomb_1') - + actor.removeAbility("me_bacta_bomb_1") + actor.removeAbility("me_bacta_bomb_2") + actor.removeAbility("me_bacta_bomb_3") + actor.removeAbility("me_bacta_bomb_4") + actor.removeAbility("me_bacta_bomb_5") return diff --git a/scripts/expertise/expertise_me_bacta_grenade_1.py b/scripts/expertise/expertise_me_bacta_grenade_1.py index 2f16ef84..762bbabc 100644 --- a/scripts/expertise/expertise_me_bacta_grenade_1.py +++ b/scripts/expertise/expertise_me_bacta_grenade_1.py @@ -1,48 +1,22 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_bacta_grenade_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_bacta_grenade_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('me_bacta_grenade_1') - + if actor.getLevel() >= 26: + actor.addAbility("me_bacta_grenade_1") + if actor.getLevel() >= 34: + actor.addAbility("me_bacta_grenade_2") + if actor.getLevel() >= 48: + actor.addAbility("me_bacta_grenade_3") + if actor.getLevel() >= 62: + actor.addAbility("me_bacta_grenade_4") + if actor.getLevel() >= 76: + actor.addAbility("me_bacta_grenade_5") return def removeAbilities(core, actor, player): - - actor.removeAbility('me_bacta_grenade_1') - + actor.removeAbility("me_bacta_grenade_1") + actor.removeAbility("me_bacta_grenade_2") + actor.removeAbility("me_bacta_grenade_3") + actor.removeAbility("me_bacta_grenade_4") + actor.removeAbility("me_bacta_grenade_5") return diff --git a/scripts/expertise/expertise_me_bacta_resistance_1.py b/scripts/expertise/expertise_me_bacta_resistance_1.py index 1c26ade5..f35efe8f 100644 --- a/scripts/expertise/expertise_me_bacta_resistance_1.py +++ b/scripts/expertise/expertise_me_bacta_resistance_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_bacta_resistance_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_bacta_resistance_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('me_bacta_resistance_1') - + actor.addAbility("me_bacta_resistance_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('me_bacta_resistance_1') - + actor.removeAbility("me_bacta_resistance_1") return diff --git a/scripts/expertise/expertise_me_blood_cleaners_1.py b/scripts/expertise/expertise_me_blood_cleaners_1.py index b4de82c1..7405f78d 100644 --- a/scripts/expertise/expertise_me_blood_cleaners_1.py +++ b/scripts/expertise/expertise_me_blood_cleaners_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_blood_cleaners_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_blood_cleaners_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('me_blood_cleaners_1') - + actor.addAbility("me_blood_cleaners_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('me_blood_cleaners_1') - + actor.removeAbility("me_blood_clearners_1") return diff --git a/scripts/expertise/expertise_me_burst_1.py b/scripts/expertise/expertise_me_burst_1.py index f9b65f16..2fff6848 100644 --- a/scripts/expertise/expertise_me_burst_1.py +++ b/scripts/expertise/expertise_me_burst_1.py @@ -1,48 +1,22 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_burst_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_burst_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('me_burst_1') - + if actor.getLevel() >= 26: + actor.addAbility("me_burst_1") + if actor.getLevel() >= 34: + actor.addAbility("me_burst_2") + if actor.getLevel() >= 48: + actor.addAbility("me_burst_3") + if actor.getLevel() >= 62: + actor.addAbility("me_burst_4") + if actor.getLevel() >= 76: + actor.addAbility("me_burst_5") return def removeAbilities(core, actor, player): - - actor.removeAbility('me_burst_1') - + actor.removeAbility("me_burst_1") + actor.removeAbility("me_burst_2") + actor.removeAbility("me_burst_3") + actor.removeAbility("me_burst_4") + actor.removeAbility("me_burst_5") return diff --git a/scripts/expertise/expertise_me_carbine_damage_1.py b/scripts/expertise/expertise_me_carbine_damage_1.py index ae18ecf9..4cdfd0d0 100644 --- a/scripts/expertise/expertise_me_carbine_damage_1.py +++ b/scripts/expertise/expertise_me_carbine_damage_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_carbine_damage_1') - - actor.addSkillMod('expertise_damage_weapon_1', 2) - actor.addSkillMod('expertise_damage_weapon_2', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_carbine_damage_1') - - actor.removeSkillMod('expertise_damage_weapon_1', 2) - actor.removeSkillMod('expertise_damage_weapon_2', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_carbine_damage_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_carbine_damage_1") return diff --git a/scripts/expertise/expertise_me_carbine_damage_2.py b/scripts/expertise/expertise_me_carbine_damage_2.py index 50bd5fa2..2ca975d7 100644 --- a/scripts/expertise/expertise_me_carbine_damage_2.py +++ b/scripts/expertise/expertise_me_carbine_damage_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_carbine_damage_2') - - actor.addSkillMod('expertise_damage_weapon_1', 2) - actor.addSkillMod('expertise_damage_weapon_2', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_carbine_damage_2') - - actor.removeSkillMod('expertise_damage_weapon_1', 2) - actor.removeSkillMod('expertise_damage_weapon_2', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_carbine_damage_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_carbine_damage_2") return diff --git a/scripts/expertise/expertise_me_carbine_damage_3.py b/scripts/expertise/expertise_me_carbine_damage_3.py index 8a65e510..0fec9aac 100644 --- a/scripts/expertise/expertise_me_carbine_damage_3.py +++ b/scripts/expertise/expertise_me_carbine_damage_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_carbine_damage_3') - - actor.addSkillMod('expertise_damage_weapon_1', 3) - actor.addSkillMod('expertise_damage_weapon_2', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_carbine_damage_3') - - actor.removeSkillMod('expertise_damage_weapon_1', 3) - actor.removeSkillMod('expertise_damage_weapon_2', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_carbine_damage_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_carbine_damage_3") return diff --git a/scripts/expertise/expertise_me_carbine_damage_4.py b/scripts/expertise/expertise_me_carbine_damage_4.py index ddd1ca17..23dd0479 100644 --- a/scripts/expertise/expertise_me_carbine_damage_4.py +++ b/scripts/expertise/expertise_me_carbine_damage_4.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_carbine_damage_4') - - actor.addSkillMod('expertise_damage_weapon_1', 3) - actor.addSkillMod('expertise_damage_weapon_2', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_carbine_damage_4') - - actor.removeSkillMod('expertise_damage_weapon_1', 3) - actor.removeSkillMod('expertise_damage_weapon_2', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_carbine_damage_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_carbine_damage_4") return diff --git a/scripts/expertise/expertise_me_cranial_smash_1.py b/scripts/expertise/expertise_me_cranial_smash_1.py index 98d77547..220198de 100644 --- a/scripts/expertise/expertise_me_cranial_smash_1.py +++ b/scripts/expertise/expertise_me_cranial_smash_1.py @@ -1,48 +1,22 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_cranial_smash_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_cranial_smash_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('me_cranial_smash_1') - + if actor.getLevel() >= 26: + actor.addAbility("me_cranial_smash_1") + if actor.getLevel() >= 34: + actor.addAbility("me_cranial_smash_2") + if actor.getLevel() >= 48: + actor.addAbility("me_cranial_smash_3) + if actor.getLevel() >= 62: + actor.addAbility("me_cranial_smash_4") + if actor.getLevel() >= 76: + actor.addAbility("me_cranial_smash_5") return def removeAbilities(core, actor, player): - - actor.removeAbility('me_cranial_smash_1') - + actor.removeAbility("me_cranial_smash_1") + actor.removeAbility("me_cranial_smash_2") + actor.removeAbility("me_cranial_smash_3") + actor.removeAbility("me_cranial_smash_4") + actor.removeAbility("me_cranial_smash_5") return diff --git a/scripts/expertise/expertise_me_cure_affliction_1.py b/scripts/expertise/expertise_me_cure_affliction_1.py index 6a794b64..7a783eea 100644 --- a/scripts/expertise/expertise_me_cure_affliction_1.py +++ b/scripts/expertise/expertise_me_cure_affliction_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_cure_affliction_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_cure_affliction_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('me_cure_affliction_1') - + actor.addAbility("me_cure_affliction_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('me_cure_affliction_1') - + actor.removeAbility("me_cure_affliction_1") return diff --git a/scripts/expertise/expertise_me_dot_damage_1.py b/scripts/expertise/expertise_me_dot_damage_1.py index 3251e445..163a8d86 100644 --- a/scripts/expertise/expertise_me_dot_damage_1.py +++ b/scripts/expertise/expertise_me_dot_damage_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_dot_damage_1') - - actor.addSkillMod('expertise_dot_increase', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_dot_damage_1') - - actor.removeSkillMod('expertise_dot_increase', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_dot_damage_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_dot_damage_1") return diff --git a/scripts/expertise/expertise_me_dot_damage_2.py b/scripts/expertise/expertise_me_dot_damage_2.py index 4c361396..0deae54e 100644 --- a/scripts/expertise/expertise_me_dot_damage_2.py +++ b/scripts/expertise/expertise_me_dot_damage_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_dot_damage_2') - - actor.addSkillMod('expertise_dot_increase', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_dot_damage_2') - - actor.removeSkillMod('expertise_dot_increase', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_dot_damage_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_dot_damage_2") return diff --git a/scripts/expertise/expertise_me_dot_damage_3.py b/scripts/expertise/expertise_me_dot_damage_3.py index 84865714..11ff1f05 100644 --- a/scripts/expertise/expertise_me_dot_damage_3.py +++ b/scripts/expertise/expertise_me_dot_damage_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_dot_damage_3') - - actor.addSkillMod('expertise_dot_increase', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_dot_damage_3') - - actor.removeSkillMod('expertise_dot_increase', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_dot_damage_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_dot_damage_3") return diff --git a/scripts/expertise/expertise_me_dot_duration_1.py b/scripts/expertise/expertise_me_dot_duration_1.py index b7962f70..c3a9b6a5 100644 --- a/scripts/expertise/expertise_me_dot_duration_1.py +++ b/scripts/expertise/expertise_me_dot_duration_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_dot_duration_1') - - actor.addSkillMod('expertise_dot_duration_line_me_dot', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_dot_duration_1') - - actor.removeSkillMod('expertise_dot_duration_line_me_dot', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_dot_duration_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_dot_duration_1") return diff --git a/scripts/expertise/expertise_me_dot_duration_2.py b/scripts/expertise/expertise_me_dot_duration_2.py index 7a514071..61309ba1 100644 --- a/scripts/expertise/expertise_me_dot_duration_2.py +++ b/scripts/expertise/expertise_me_dot_duration_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_dot_duration_2') - - actor.addSkillMod('expertise_dot_duration_line_me_dot', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_dot_duration_2') - - actor.removeSkillMod('expertise_dot_duration_line_me_dot', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_dot_duration_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_dot_duration_2") return diff --git a/scripts/expertise/expertise_me_dot_duration_3.py b/scripts/expertise/expertise_me_dot_duration_3.py index 8b2bb169..6f7b45eb 100644 --- a/scripts/expertise/expertise_me_dot_duration_3.py +++ b/scripts/expertise/expertise_me_dot_duration_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_dot_duration_3') - - actor.addSkillMod('expertise_dot_duration_line_me_dot', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_dot_duration_3') - - actor.removeSkillMod('expertise_dot_duration_line_me_dot', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_dot_duration_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_dot_duration_3") return diff --git a/scripts/expertise/expertise_me_dueterium_rounds_1.py b/scripts/expertise/expertise_me_dueterium_rounds_1.py index b7d57e44..ed57795c 100644 --- a/scripts/expertise/expertise_me_dueterium_rounds_1.py +++ b/scripts/expertise/expertise_me_dueterium_rounds_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_dueterium_rounds_1') - - actor.addSkillMod('expertise_dueterium_rounds_proc', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_dueterium_rounds_1') - - actor.removeSkillMod('expertise_dueterium_rounds_proc', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_dueterium_rounds_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_dueterium_rounds_1") return diff --git a/scripts/expertise/expertise_me_electrolyte_drain_1.py b/scripts/expertise/expertise_me_electrolyte_drain_1.py index d7eb33ac..1daa98a3 100644 --- a/scripts/expertise/expertise_me_electrolyte_drain_1.py +++ b/scripts/expertise/expertise_me_electrolyte_drain_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_electrolyte_drain_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_electrolyte_drain_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('me_electrolyte_drain_1') - + actor.addAbility("me_electrolyte_drain_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('me_electrolyte_drain_1') - + actor.removeAbility("me_electrolyte_drain_1") return diff --git a/scripts/expertise/expertise_me_energy_armor_1.py b/scripts/expertise/expertise_me_energy_armor_1.py index 2fc984be..fd7c40f9 100644 --- a/scripts/expertise/expertise_me_energy_armor_1.py +++ b/scripts/expertise/expertise_me_energy_armor_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_energy_armor_1') - - actor.addSkillMod('expertise_innate_protection_all', 225) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_energy_armor_1') - - actor.removeSkillMod('expertise_innate_protection_all', 225) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_energy_armor_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_energy_armor_1") return diff --git a/scripts/expertise/expertise_me_energy_armor_2.py b/scripts/expertise/expertise_me_energy_armor_2.py index 0d02a8a1..ace09ed5 100644 --- a/scripts/expertise/expertise_me_energy_armor_2.py +++ b/scripts/expertise/expertise_me_energy_armor_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_energy_armor_2') - - actor.addSkillMod('expertise_innate_protection_all', 225) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_energy_armor_2') - - actor.removeSkillMod('expertise_innate_protection_all', 225) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_energy_armor_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_energy_armor_2") return diff --git a/scripts/expertise/expertise_me_energy_armor_3.py b/scripts/expertise/expertise_me_energy_armor_3.py index cfc6f250..1d161f38 100644 --- a/scripts/expertise/expertise_me_energy_armor_3.py +++ b/scripts/expertise/expertise_me_energy_armor_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_energy_armor_3') - - actor.addSkillMod('expertise_innate_protection_all', 225) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_energy_armor_3') - - actor.removeSkillMod('expertise_innate_protection_all', 225) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_energy_armor_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_energy_armor_3") return diff --git a/scripts/expertise/expertise_me_energy_armor_4.py b/scripts/expertise/expertise_me_energy_armor_4.py index 76181747..84fad199 100644 --- a/scripts/expertise/expertise_me_energy_armor_4.py +++ b/scripts/expertise/expertise_me_energy_armor_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_energy_armor_4') - - actor.addSkillMod('expertise_innate_protection_all', 225) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_energy_armor_4') - - actor.removeSkillMod('expertise_innate_protection_all', 225) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_energy_armor_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_energy_armor_4") return diff --git a/scripts/expertise/expertise_me_enhance_agility_1.py b/scripts/expertise/expertise_me_enhance_agility_1.py index fd112eb9..4b49ecc9 100644 --- a/scripts/expertise/expertise_me_enhance_agility_1.py +++ b/scripts/expertise/expertise_me_enhance_agility_1.py @@ -1,48 +1,16 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_enhance_agility_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_enhance_agility_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('me_enhance_agility_1') - + if actor.getLevel() >= 10: + actor.addAbility("me_enhance_agility_1") + if actor.getLevel() >= 34: + actor.addAbility("me_enhance_agility_2") + if actor.getLevel() >= 62: + actor.addAbility("me_enhance_agility_3") return def removeAbilities(core, actor, player): - - actor.removeAbility('me_enhance_agility_1') - + actor.removeAbility("me_enhance_agility_1") + actor.removeAbility("me_enhance_agility_2") + actor.removeAbility("me_enhance_agility_3") return diff --git a/scripts/expertise/expertise_me_enhance_block_1.py b/scripts/expertise/expertise_me_enhance_block_1.py index 962c59d5..e6d4a3c6 100644 --- a/scripts/expertise/expertise_me_enhance_block_1.py +++ b/scripts/expertise/expertise_me_enhance_block_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_enhance_block_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_enhance_block_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('me_enhance_block_1') - + actor.addAbility("me_enhance_block_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('me_enhance_block_1') - + actor.removeAbility("me_enhance_block_1") return diff --git a/scripts/expertise/expertise_me_enhance_dodge_1.py b/scripts/expertise/expertise_me_enhance_dodge_1.py index 60af46b2..60b97cd6 100644 --- a/scripts/expertise/expertise_me_enhance_dodge_1.py +++ b/scripts/expertise/expertise_me_enhance_dodge_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_enhance_dodge_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_enhance_dodge_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('me_enhance_dodge_1') - + actor.addAbility("me_enhance_dodge_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('me_enhance_dodge_1') - + actor.removeAbility("me_enhance_dodge_1") return diff --git a/scripts/expertise/expertise_me_enhance_duration_1.py b/scripts/expertise/expertise_me_enhance_duration_1.py index 9b54c0a7..85c5c455 100644 --- a/scripts/expertise/expertise_me_enhance_duration_1.py +++ b/scripts/expertise/expertise_me_enhance_duration_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_enhance_duration_1') - - actor.addSkillMod('expertise_buff_duration_line_me_enhance', 300) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_enhance_duration_1') - - actor.removeSkillMod('expertise_buff_duration_line_me_enhance', 300) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_enhance_duration_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_enhance_duration_1") return diff --git a/scripts/expertise/expertise_me_enhance_duration_2.py b/scripts/expertise/expertise_me_enhance_duration_2.py index 4b66e476..ffb8e438 100644 --- a/scripts/expertise/expertise_me_enhance_duration_2.py +++ b/scripts/expertise/expertise_me_enhance_duration_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_enhance_duration_2') - - actor.addSkillMod('expertise_buff_duration_line_me_enhance', 300) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_enhance_duration_2') - - actor.removeSkillMod('expertise_buff_duration_line_me_enhance', 300) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_enhance_duration_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_enhance_duration_2") return diff --git a/scripts/expertise/expertise_me_enhance_duration_3.py b/scripts/expertise/expertise_me_enhance_duration_3.py index 336b9d27..53442947 100644 --- a/scripts/expertise/expertise_me_enhance_duration_3.py +++ b/scripts/expertise/expertise_me_enhance_duration_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_enhance_duration_3') - - actor.addSkillMod('expertise_buff_duration_line_me_enhance', 600) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_enhance_duration_3') - - actor.removeSkillMod('expertise_buff_duration_line_me_enhance', 600) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_enhance_duration_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_enhance_duration_3") return diff --git a/scripts/expertise/expertise_me_enhance_precision_1.py b/scripts/expertise/expertise_me_enhance_precision_1.py index f12da671..c099937d 100644 --- a/scripts/expertise/expertise_me_enhance_precision_1.py +++ b/scripts/expertise/expertise_me_enhance_precision_1.py @@ -1,48 +1,16 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_enhance_precision_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_enhance_precision_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('me_enhance_precision_1') - + if actor.getLevel() >= 10: + actor.addAbility("me_enhance_precision_1") + if actor.getLevel() >= 34: + actor.addAbility("me_enhance_precision_2") + if actor.getLevel() >= 62: + actor.addAbility("me_enhance_precision_3") return def removeAbilities(core, actor, player): - - actor.removeAbility('me_enhance_precision_1') - + actor.removeAbility("me_enhance_precision_1") + actor.removeAbility("me_enhance_precision_2") + actor.removeAbility("me_enhance_precision_3") return diff --git a/scripts/expertise/expertise_me_enhance_strength_1.py b/scripts/expertise/expertise_me_enhance_strength_1.py index 29bab818..693b0121 100644 --- a/scripts/expertise/expertise_me_enhance_strength_1.py +++ b/scripts/expertise/expertise_me_enhance_strength_1.py @@ -1,48 +1,16 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_enhance_strength_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_enhance_strength_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('me_enhance_strength_1') - + if actor.getLevel() >= 10: + actor.addAbility("me_enhance_strength_1") + if actor.getLevel() >= 34: + actor.addAbility("me_enhance_strength_2") + if actor.getLevel() >= 62: + actor.addAbility("me_enhance_strength_3") return def removeAbilities(core, actor, player): - - actor.removeAbility('me_enhance_strength_1') - + actor.removeAbility("me_enhance_strength_1") + actor.removeAbility("me_enhance_strength_2") + actor.removeAbility("me_enhance_strength_3") return diff --git a/scripts/expertise/expertise_me_enhancement_specialist_1.py b/scripts/expertise/expertise_me_enhancement_specialist_1.py index 145b50e9..4c9429e5 100644 --- a/scripts/expertise/expertise_me_enhancement_specialist_1.py +++ b/scripts/expertise/expertise_me_enhancement_specialist_1.py @@ -1,48 +1,16 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_enhancement_specialist_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_enhancement_specialist_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('me_enhance_action_1') - + if actor.getLevel() >= 10: + actor.addAbility("me_enhance_action_1") + if actor.getLevel() >= 34: + actor.addAbility("me_enhance_action_2") + if actor.getLevel() >= 62: + actor.addAbility("me_enhance_action_3") return def removeAbilities(core, actor, player): - - actor.removeAbility('me_enhance_action_1') - + actor.removeAbility("me_enhance_action_1") + actor.removeAbility("me_enhance_action_2") + actor.removeAbility("me_enhance_action_3") return diff --git a/scripts/expertise/expertise_me_evasion_1.py b/scripts/expertise/expertise_me_evasion_1.py index 7e62f496..2bbcfee2 100644 --- a/scripts/expertise/expertise_me_evasion_1.py +++ b/scripts/expertise/expertise_me_evasion_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_evasion_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_evasion_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('me_evasion_1') - + actor.addAbility("me_evasion_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('me_evasion_1') - + actor.removeAbility("me_evasion_1") return diff --git a/scripts/expertise/expertise_me_heal_action_1.py b/scripts/expertise/expertise_me_heal_action_1.py index 984b1b6e..33f3254f 100644 --- a/scripts/expertise/expertise_me_heal_action_1.py +++ b/scripts/expertise/expertise_me_heal_action_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_heal_action_1') - - actor.addSkillMod('expertise_action_line_me_heal', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_heal_action_1') - - actor.removeSkillMod('expertise_action_line_me_heal', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_heal_action_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_heal_action_1") return diff --git a/scripts/expertise/expertise_me_heal_action_2.py b/scripts/expertise/expertise_me_heal_action_2.py index e650d1e5..b10d3548 100644 --- a/scripts/expertise/expertise_me_heal_action_2.py +++ b/scripts/expertise/expertise_me_heal_action_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_heal_action_2') - - actor.addSkillMod('expertise_action_line_me_heal', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_heal_action_2') - - actor.removeSkillMod('expertise_action_line_me_heal', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_heal_action_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_heal_action_2") return diff --git a/scripts/expertise/expertise_me_heal_action_3.py b/scripts/expertise/expertise_me_heal_action_3.py index a5457655..c009d1ae 100644 --- a/scripts/expertise/expertise_me_heal_action_3.py +++ b/scripts/expertise/expertise_me_heal_action_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_heal_action_3') - - actor.addSkillMod('expertise_action_line_me_heal', 15) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_heal_action_3') - - actor.removeSkillMod('expertise_action_line_me_heal', 15) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_heal_action_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_heal_action_3") return diff --git a/scripts/expertise/expertise_me_heal_damage_1.py b/scripts/expertise/expertise_me_heal_damage_1.py index 59b07cdf..ba2a72a5 100644 --- a/scripts/expertise/expertise_me_heal_damage_1.py +++ b/scripts/expertise/expertise_me_heal_damage_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_heal_damage_1') - - actor.addSkillMod('expertise_healing_line_me_heal', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_heal_damage_1') - - actor.removeSkillMod('expertise_healing_line_me_heal', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_heal_damage_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_heal_damage_1") return diff --git a/scripts/expertise/expertise_me_heal_damage_2.py b/scripts/expertise/expertise_me_heal_damage_2.py index c059fc9b..050ba76f 100644 --- a/scripts/expertise/expertise_me_heal_damage_2.py +++ b/scripts/expertise/expertise_me_heal_damage_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_heal_damage_2') - - actor.addSkillMod('expertise_healing_line_me_heal', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_heal_damage_2') - - actor.removeSkillMod('expertise_healing_line_me_heal', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_heal_damage_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_heal_damage_2") return diff --git a/scripts/expertise/expertise_me_heal_damage_3.py b/scripts/expertise/expertise_me_heal_damage_3.py index 94eb5732..3b85bde4 100644 --- a/scripts/expertise/expertise_me_heal_damage_3.py +++ b/scripts/expertise/expertise_me_heal_damage_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_heal_damage_3') - - actor.addSkillMod('expertise_healing_line_me_heal', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_heal_damage_3') - - actor.removeSkillMod('expertise_healing_line_me_heal', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_heal_damage_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_heal_damage_3") return diff --git a/scripts/expertise/expertise_me_heal_damage_4.py b/scripts/expertise/expertise_me_heal_damage_4.py index 85a946e6..e58ddb1a 100644 --- a/scripts/expertise/expertise_me_heal_damage_4.py +++ b/scripts/expertise/expertise_me_heal_damage_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_heal_damage_4') - - actor.addSkillMod('expertise_healing_line_me_heal', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_heal_damage_4') - - actor.removeSkillMod('expertise_healing_line_me_heal', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_heal_damage_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_heal_damage_4") return diff --git a/scripts/expertise/expertise_me_hot_duration_1.py b/scripts/expertise/expertise_me_hot_duration_1.py index dcdd6ac2..c18a4e36 100644 --- a/scripts/expertise/expertise_me_hot_duration_1.py +++ b/scripts/expertise/expertise_me_hot_duration_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_hot_duration_1') - - actor.addSkillMod('expertise_healing_line_me_hot', 10) - actor.addSkillMod('expertise_healing_line_me_hot_ae', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_hot_duration_1') - - actor.removeSkillMod('expertise_healing_line_me_hot', 10) - actor.removeSkillMod('expertise_healing_line_me_hot_ae', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_hot_duration_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_hot_duration_1") return diff --git a/scripts/expertise/expertise_me_hot_duration_2.py b/scripts/expertise/expertise_me_hot_duration_2.py index dccbe005..e89e515c 100644 --- a/scripts/expertise/expertise_me_hot_duration_2.py +++ b/scripts/expertise/expertise_me_hot_duration_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_hot_duration_2') - - actor.addSkillMod('expertise_healing_line_me_hot', 10) - actor.addSkillMod('expertise_healing_line_me_hot_ae', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_hot_duration_2') - - actor.removeSkillMod('expertise_healing_line_me_hot', 10) - actor.removeSkillMod('expertise_healing_line_me_hot_ae', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_hot_duration_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_hot_duration_2") return diff --git a/scripts/expertise/expertise_me_hot_duration_3.py b/scripts/expertise/expertise_me_hot_duration_3.py index 558430c1..ef238d8d 100644 --- a/scripts/expertise/expertise_me_hot_duration_3.py +++ b/scripts/expertise/expertise_me_hot_duration_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_hot_duration_3') - - actor.addSkillMod('expertise_healing_line_me_hot', 15) - actor.addSkillMod('expertise_healing_line_me_hot_ae', 15) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_hot_duration_3') - - actor.removeSkillMod('expertise_healing_line_me_hot', 15) - actor.removeSkillMod('expertise_healing_line_me_hot_ae', 15) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_hot_duration_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_hot_duration_3") return diff --git a/scripts/expertise/expertise_me_hot_duration_4.py b/scripts/expertise/expertise_me_hot_duration_4.py index 9783531f..16368742 100644 --- a/scripts/expertise/expertise_me_hot_duration_4.py +++ b/scripts/expertise/expertise_me_hot_duration_4.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_hot_duration_4') - - actor.addSkillMod('expertise_healing_line_me_hot', 15) - actor.addSkillMod('expertise_healing_line_me_hot_ae', 15) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_hot_duration_4') - - actor.removeSkillMod('expertise_healing_line_me_hot', 15) - actor.removeSkillMod('expertise_healing_line_me_hot_ae', 15) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_hot_duration_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_hot_duration_4") return diff --git a/scripts/expertise/expertise_me_humanoid_crits_1.py b/scripts/expertise/expertise_me_humanoid_crits_1.py index 4176b559..482342f3 100644 --- a/scripts/expertise/expertise_me_humanoid_crits_1.py +++ b/scripts/expertise/expertise_me_humanoid_crits_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_humanoid_crits_1') - - actor.addSkillMod('expertise_critical_niche_pvp', 1) - actor.addSkillMod('expertise_critical_niche_npc', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_humanoid_crits_1') - - actor.removeSkillMod('expertise_critical_niche_pvp', 1) - actor.removeSkillMod('expertise_critical_niche_npc', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_humanoid_crits_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_humanoid_crits_1") return diff --git a/scripts/expertise/expertise_me_humanoid_crits_2.py b/scripts/expertise/expertise_me_humanoid_crits_2.py index dd7995cb..085396cc 100644 --- a/scripts/expertise/expertise_me_humanoid_crits_2.py +++ b/scripts/expertise/expertise_me_humanoid_crits_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_humanoid_crits_2') - - actor.addSkillMod('expertise_critical_niche_pvp', 2) - actor.addSkillMod('expertise_critical_niche_npc', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_humanoid_crits_2') - - actor.removeSkillMod('expertise_critical_niche_pvp', 2) - actor.removeSkillMod('expertise_critical_niche_npc', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_humanoid_crits_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_humanoid_crits_2") return diff --git a/scripts/expertise/expertise_me_humanoid_crits_3.py b/scripts/expertise/expertise_me_humanoid_crits_3.py index 2351be93..7392d917 100644 --- a/scripts/expertise/expertise_me_humanoid_crits_3.py +++ b/scripts/expertise/expertise_me_humanoid_crits_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_humanoid_crits_3') - - actor.addSkillMod('expertise_critical_niche_pvp', 2) - actor.addSkillMod('expertise_critical_niche_npc', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_humanoid_crits_3') - - actor.removeSkillMod('expertise_critical_niche_pvp', 2) - actor.removeSkillMod('expertise_critical_niche_npc', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_humanoid_crits_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_humanoid_crits_3") return diff --git a/scripts/expertise/expertise_me_induce_insanity_1.py b/scripts/expertise/expertise_me_induce_insanity_1.py index 10f45c55..2817bc0a 100644 --- a/scripts/expertise/expertise_me_induce_insanity_1.py +++ b/scripts/expertise/expertise_me_induce_insanity_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_induce_insanity_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_induce_insanity_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('me_induce_insanity_1') - + actor.addAbility("me_induce_insanity_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('me_induce_insanity_1') - + actor.removeAbility("me_induce_insanity_1") return diff --git a/scripts/expertise/expertise_me_kinetic_armor_1.py b/scripts/expertise/expertise_me_kinetic_armor_1.py index 26b5dea7..8d78e253 100644 --- a/scripts/expertise/expertise_me_kinetic_armor_1.py +++ b/scripts/expertise/expertise_me_kinetic_armor_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_kinetic_armor_1') - - actor.addSkillMod('expertise_innate_protection_all', 225) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_kinetic_armor_1') - - actor.removeSkillMod('expertise_innate_protection_all', 225) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_kinetic_armor_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_kinetic_armor_1") return diff --git a/scripts/expertise/expertise_me_kinetic_armor_2.py b/scripts/expertise/expertise_me_kinetic_armor_2.py index 72f3ba66..ab5c5e71 100644 --- a/scripts/expertise/expertise_me_kinetic_armor_2.py +++ b/scripts/expertise/expertise_me_kinetic_armor_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_kinetic_armor_2') - - actor.addSkillMod('expertise_innate_protection_all', 225) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_kinetic_armor_2') - - actor.removeSkillMod('expertise_innate_protection_all', 225) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_kinetic_armor_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_kinetic_armor_2") return diff --git a/scripts/expertise/expertise_me_kinetic_armor_3.py b/scripts/expertise/expertise_me_kinetic_armor_3.py index 794c9185..dcdb9751 100644 --- a/scripts/expertise/expertise_me_kinetic_armor_3.py +++ b/scripts/expertise/expertise_me_kinetic_armor_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_kinetic_armor_3') - - actor.addSkillMod('expertise_innate_protection_all', 225) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_kinetic_armor_3') - - actor.removeSkillMod('expertise_innate_protection_all', 225) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_kinetic_armor_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_kinetic_armor_3") return diff --git a/scripts/expertise/expertise_me_kinetic_armor_4.py b/scripts/expertise/expertise_me_kinetic_armor_4.py index 722e4b58..1982a785 100644 --- a/scripts/expertise/expertise_me_kinetic_armor_4.py +++ b/scripts/expertise/expertise_me_kinetic_armor_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_kinetic_armor_4') - - actor.addSkillMod('expertise_innate_protection_all', 225) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_kinetic_armor_4') - - actor.removeSkillMod('expertise_innate_protection_all', 225) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_kinetic_armor_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_kinetic_armor_4") return diff --git a/scripts/expertise/expertise_me_poison_knuckle_1.py b/scripts/expertise/expertise_me_poison_knuckle_1.py index 2b6b617e..7b436d7b 100644 --- a/scripts/expertise/expertise_me_poison_knuckle_1.py +++ b/scripts/expertise/expertise_me_poison_knuckle_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_poison_knuckle_1') - - actor.addSkillMod('expertise_poison_knuckle_proc', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_poison_knuckle_1') - - actor.removeSkillMod('expertise_poison_knuckle_proc', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_poison_knuckle_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_poison_knuckle_1") return diff --git a/scripts/expertise/expertise_me_precision_1.py b/scripts/expertise/expertise_me_precision_1.py index 8c6f96ed..0d344061 100644 --- a/scripts/expertise/expertise_me_precision_1.py +++ b/scripts/expertise/expertise_me_precision_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_precision_1') - - actor.addSkillMod('precision_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_precision_1') - - actor.removeSkillMod('precision_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_precision_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_precision_1") return diff --git a/scripts/expertise/expertise_me_precision_2.py b/scripts/expertise/expertise_me_precision_2.py index 2873f46c..6857d3a2 100644 --- a/scripts/expertise/expertise_me_precision_2.py +++ b/scripts/expertise/expertise_me_precision_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_precision_2') - - actor.addSkillMod('precision_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_precision_2') - - actor.removeSkillMod('precision_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_precision_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_precision_2") return diff --git a/scripts/expertise/expertise_me_precision_3.py b/scripts/expertise/expertise_me_precision_3.py index d8996229..bb36eea4 100644 --- a/scripts/expertise/expertise_me_precision_3.py +++ b/scripts/expertise/expertise_me_precision_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_precision_3') - - actor.addSkillMod('precision_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_precision_3') - - actor.removeSkillMod('precision_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_precision_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_precision_3") return diff --git a/scripts/expertise/expertise_me_precision_4.py b/scripts/expertise/expertise_me_precision_4.py index 2a2643bb..c32b63ff 100644 --- a/scripts/expertise/expertise_me_precision_4.py +++ b/scripts/expertise/expertise_me_precision_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_precision_4') - - actor.addSkillMod('precision_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_precision_4') - - actor.removeSkillMod('precision_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_precision_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_precision_4") return diff --git a/scripts/expertise/expertise_me_reckless_stimulation_1.py b/scripts/expertise/expertise_me_reckless_stimulation_1.py index d8085f3b..0be74ed4 100644 --- a/scripts/expertise/expertise_me_reckless_stimulation_1.py +++ b/scripts/expertise/expertise_me_reckless_stimulation_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_reckless_stimulation_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_reckless_stimulation_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('me_reckless_stimulation_1') - + actor.addAbility("me_reckless_stimulation_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('me_reckless_stimulation_1') - + actor.removeAbility("me_reckless_stimulation_1") return diff --git a/scripts/expertise/expertise_me_revive_duration_1.py b/scripts/expertise/expertise_me_revive_duration_1.py index 17a19551..d2bcc4ba 100644 --- a/scripts/expertise/expertise_me_revive_duration_1.py +++ b/scripts/expertise/expertise_me_revive_duration_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_revive_duration_1') - - actor.addSkillMod('expertise_cooldown_line_me_revive', 5) - actor.addSkillMod('expertise_cooldown_line_me_aoe_revive', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_revive_duration_1') - - actor.removeSkillMod('expertise_cooldown_line_me_revive', 5) - actor.removeSkillMod('expertise_cooldown_line_me_aoe_revive', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_revive_duration_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_revive_duration_1") return diff --git a/scripts/expertise/expertise_me_revive_duration_2.py b/scripts/expertise/expertise_me_revive_duration_2.py index ffe5144d..5c8a9035 100644 --- a/scripts/expertise/expertise_me_revive_duration_2.py +++ b/scripts/expertise/expertise_me_revive_duration_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_revive_duration_2') - - actor.addSkillMod('expertise_cooldown_line_me_revive', 5) - actor.addSkillMod('expertise_cooldown_line_me_aoe_revive', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_revive_duration_2') - - actor.removeSkillMod('expertise_cooldown_line_me_revive', 5) - actor.removeSkillMod('expertise_cooldown_line_me_aoe_revive', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_revive_duration_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_revive_duration_2") return diff --git a/scripts/expertise/expertise_me_revive_duration_3.py b/scripts/expertise/expertise_me_revive_duration_3.py index 4d89125e..0ed33a9b 100644 --- a/scripts/expertise/expertise_me_revive_duration_3.py +++ b/scripts/expertise/expertise_me_revive_duration_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_revive_duration_3') - - actor.addSkillMod('expertise_cooldown_line_me_revive', 5) - actor.addSkillMod('expertise_cooldown_line_me_aoe_revive', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_revive_duration_3') - - actor.removeSkillMod('expertise_cooldown_line_me_revive', 5) - actor.removeSkillMod('expertise_cooldown_line_me_aoe_revive', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_revive_duration_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_revive_duration_3") return diff --git a/scripts/expertise/expertise_me_serotonin_boost_1.py b/scripts/expertise/expertise_me_serotonin_boost_1.py index be920b81..13420734 100644 --- a/scripts/expertise/expertise_me_serotonin_boost_1.py +++ b/scripts/expertise/expertise_me_serotonin_boost_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_serotonin_boost_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_serotonin_boost_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('me_serotonin_boost_1') - + actor.addAbility("me_serotonin_boost_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('me_serotonin_boost_1') - + actor.removeAbility("me_serotonin_boost_1") return diff --git a/scripts/expertise/expertise_me_serotonin_purge_1.py b/scripts/expertise/expertise_me_serotonin_purge_1.py index 34a60137..54972a5b 100644 --- a/scripts/expertise/expertise_me_serotonin_purge_1.py +++ b/scripts/expertise/expertise_me_serotonin_purge_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_serotonin_purge_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_serotonin_purge_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('me_serotonin_purge_1') - + actor.addAbility("me_serotonin_purge_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('me_serotonin_purge_1') - + actor.removeAbility("me_serotonin_purge_1") return diff --git a/scripts/expertise/expertise_me_stasis_1.py b/scripts/expertise/expertise_me_stasis_1.py index f174c539..746687ba 100644 --- a/scripts/expertise/expertise_me_stasis_1.py +++ b/scripts/expertise/expertise_me_stasis_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_stasis_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_stasis_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('me_stasis_1') - + actor.addAbility("me_stasis_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('me_stasis_1') - + actor.removeAbility("me_stasis_1") return diff --git a/scripts/expertise/expertise_me_strength_1.py b/scripts/expertise/expertise_me_strength_1.py index b266ed84..9c3faac3 100644 --- a/scripts/expertise/expertise_me_strength_1.py +++ b/scripts/expertise/expertise_me_strength_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_strength_1') - - actor.addSkillMod('strength_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_strength_1') - - actor.removeSkillMod('strength_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_strength_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_strength_1") return diff --git a/scripts/expertise/expertise_me_strength_2.py b/scripts/expertise/expertise_me_strength_2.py index 99f72bb5..fa2bc7b7 100644 --- a/scripts/expertise/expertise_me_strength_2.py +++ b/scripts/expertise/expertise_me_strength_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_strength_2') - - actor.addSkillMod('strength_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_strength_2') - - actor.removeSkillMod('strength_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_strength_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_strength_2") return diff --git a/scripts/expertise/expertise_me_strength_3.py b/scripts/expertise/expertise_me_strength_3.py index f677cd7e..89f7a7a1 100644 --- a/scripts/expertise/expertise_me_strength_3.py +++ b/scripts/expertise/expertise_me_strength_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_strength_3') - - actor.addSkillMod('strength_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_strength_3') - - actor.removeSkillMod('strength_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_strength_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_strength_3") return diff --git a/scripts/expertise/expertise_me_strength_4.py b/scripts/expertise/expertise_me_strength_4.py index 6da9d910..d3e48b21 100644 --- a/scripts/expertise/expertise_me_strength_4.py +++ b/scripts/expertise/expertise_me_strength_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_strength_4') - - actor.addSkillMod('strength_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_strength_4') - - actor.removeSkillMod('strength_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_strength_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_strength_4") return diff --git a/scripts/expertise/expertise_me_thyroid_rupture_1.py b/scripts/expertise/expertise_me_thyroid_rupture_1.py index 229a2796..895d8882 100644 --- a/scripts/expertise/expertise_me_thyroid_rupture_1.py +++ b/scripts/expertise/expertise_me_thyroid_rupture_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_thyroid_rupture_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_thyroid_rupture_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('me_thyroid_rupture_1') - + actor.addAbility("me_thyroid_rupture_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('me_thyroid_rupture_1') - + actor.removeAbility("me_thyroid_rupture_1") return diff --git a/scripts/expertise/expertise_me_traumatize_1.py b/scripts/expertise/expertise_me_traumatize_1.py index 69856b36..4269ec8e 100644 --- a/scripts/expertise/expertise_me_traumatize_1.py +++ b/scripts/expertise/expertise_me_traumatize_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_traumatize_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_traumatize_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('me_traumatize_1') - + actor.addAbility("me_traumatize_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('me_traumatize_1') - + actor.removeAbility("me_traumatize_1") return diff --git a/scripts/expertise/expertise_me_unarmed_crit_1.py b/scripts/expertise/expertise_me_unarmed_crit_1.py index 77d9b653..529ff739 100644 --- a/scripts/expertise/expertise_me_unarmed_crit_1.py +++ b/scripts/expertise/expertise_me_unarmed_crit_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_unarmed_crit_1') - - actor.addSkillMod('expertise_undiminished_critical_melee', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_unarmed_crit_1') - - actor.removeSkillMod('expertise_undiminished_critical_melee', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_unarmed_crit_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_unarmed_crit_1") return diff --git a/scripts/expertise/expertise_me_unarmed_crit_2.py b/scripts/expertise/expertise_me_unarmed_crit_2.py index 5a6bb469..4b18402e 100644 --- a/scripts/expertise/expertise_me_unarmed_crit_2.py +++ b/scripts/expertise/expertise_me_unarmed_crit_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_unarmed_crit_2') - - actor.addSkillMod('expertise_undiminished_critical_melee', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_unarmed_crit_2') - - actor.removeSkillMod('expertise_undiminished_critical_melee', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_unarmed_crit_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_unarmed_crit_2") return diff --git a/scripts/expertise/expertise_me_unarmed_crit_3.py b/scripts/expertise/expertise_me_unarmed_crit_3.py index f5c332ea..8ba3de99 100644 --- a/scripts/expertise/expertise_me_unarmed_crit_3.py +++ b/scripts/expertise/expertise_me_unarmed_crit_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_unarmed_crit_3') - - actor.addSkillMod('expertise_undiminished_critical_melee', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_unarmed_crit_3') - - actor.removeSkillMod('expertise_undiminished_critical_melee', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_unarmed_crit_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_unarmed_crit_3") return diff --git a/scripts/expertise/expertise_me_unarmed_damage_1.py b/scripts/expertise/expertise_me_unarmed_damage_1.py index aa61fb7e..6b81c0bb 100644 --- a/scripts/expertise/expertise_me_unarmed_damage_1.py +++ b/scripts/expertise/expertise_me_unarmed_damage_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_unarmed_damage_1') - - actor.addSkillMod('expertise_damage_melee', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_unarmed_damage_1') - - actor.removeSkillMod('expertise_damage_melee', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_unarmed_damage_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_unarmed_damage_1") return diff --git a/scripts/expertise/expertise_me_unarmed_damage_2.py b/scripts/expertise/expertise_me_unarmed_damage_2.py index 7a11aedc..9bb4a83d 100644 --- a/scripts/expertise/expertise_me_unarmed_damage_2.py +++ b/scripts/expertise/expertise_me_unarmed_damage_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_unarmed_damage_2') - - actor.addSkillMod('expertise_damage_melee', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_unarmed_damage_2') - - actor.removeSkillMod('expertise_damage_melee', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_unarmed_damage_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_unarmed_damage_2") return diff --git a/scripts/expertise/expertise_me_unarmed_damage_3.py b/scripts/expertise/expertise_me_unarmed_damage_3.py index 9ca773ae..cd4660fa 100644 --- a/scripts/expertise/expertise_me_unarmed_damage_3.py +++ b/scripts/expertise/expertise_me_unarmed_damage_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_unarmed_damage_3') - - actor.addSkillMod('expertise_damage_melee', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_unarmed_damage_3') - - actor.removeSkillMod('expertise_damage_melee', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_unarmed_damage_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_unarmed_damage_3") return diff --git a/scripts/expertise/expertise_me_unarmed_damage_4.py b/scripts/expertise/expertise_me_unarmed_damage_4.py index 8164d9c5..8df37d4d 100644 --- a/scripts/expertise/expertise_me_unarmed_damage_4.py +++ b/scripts/expertise/expertise_me_unarmed_damage_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_unarmed_damage_4') - - actor.addSkillMod('expertise_damage_melee', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_unarmed_damage_4') - - actor.removeSkillMod('expertise_damage_melee', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_unarmed_damage_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_unarmed_damage_4") return diff --git a/scripts/expertise/expertise_me_vital_action_1.py b/scripts/expertise/expertise_me_vital_action_1.py index ac935c5d..60a8e9e4 100644 --- a/scripts/expertise/expertise_me_vital_action_1.py +++ b/scripts/expertise/expertise_me_vital_action_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_vital_action_1') - - actor.addSkillMod('expertise_action_line_me_dm', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_vital_action_1') - - actor.removeSkillMod('expertise_action_line_me_dm', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_vital_action_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_vital_action_1") return diff --git a/scripts/expertise/expertise_me_vital_action_2.py b/scripts/expertise/expertise_me_vital_action_2.py index a3614ac8..a8d0ea03 100644 --- a/scripts/expertise/expertise_me_vital_action_2.py +++ b/scripts/expertise/expertise_me_vital_action_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_vital_action_2') - - actor.addSkillMod('expertise_action_line_me_dm', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_vital_action_2') - - actor.removeSkillMod('expertise_action_line_me_dm', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_vital_action_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_vital_action_2") return diff --git a/scripts/expertise/expertise_me_vital_action_3.py b/scripts/expertise/expertise_me_vital_action_3.py index cfdcac09..bd0965c7 100644 --- a/scripts/expertise/expertise_me_vital_action_3.py +++ b/scripts/expertise/expertise_me_vital_action_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_vital_action_3') - - actor.addSkillMod('expertise_action_line_me_dm', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_vital_action_3') - - actor.removeSkillMod('expertise_action_line_me_dm', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_vital_action_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_vital_action_3") return diff --git a/scripts/expertise/expertise_me_vital_action_4.py b/scripts/expertise/expertise_me_vital_action_4.py index df14ebf9..ffcab6ff 100644 --- a/scripts/expertise/expertise_me_vital_action_4.py +++ b/scripts/expertise/expertise_me_vital_action_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_vital_action_4') - - actor.addSkillMod('expertise_action_line_me_dm', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_vital_action_4') - - actor.removeSkillMod('expertise_action_line_me_dm', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_vital_action_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_vital_action_4") return diff --git a/scripts/expertise/expertise_me_vital_damage_1.py b/scripts/expertise/expertise_me_vital_damage_1.py index a3b86e64..8783041a 100644 --- a/scripts/expertise/expertise_me_vital_damage_1.py +++ b/scripts/expertise/expertise_me_vital_damage_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_vital_damage_1') - - actor.addSkillMod('expertise_damage_line_me_dm', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_vital_damage_1') - - actor.removeSkillMod('expertise_damage_line_me_dm', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_vital_damage_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_vital_damage_1") return diff --git a/scripts/expertise/expertise_me_vital_damage_2.py b/scripts/expertise/expertise_me_vital_damage_2.py index 425891d3..727ee2fd 100644 --- a/scripts/expertise/expertise_me_vital_damage_2.py +++ b/scripts/expertise/expertise_me_vital_damage_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_vital_damage_2') - - actor.addSkillMod('expertise_damage_line_me_dm', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_vital_damage_2') - - actor.removeSkillMod('expertise_damage_line_me_dm', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_vital_damage_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_vital_damage_2") return diff --git a/scripts/expertise/expertise_me_vital_damage_3.py b/scripts/expertise/expertise_me_vital_damage_3.py index d1c6b17d..0e35314c 100644 --- a/scripts/expertise/expertise_me_vital_damage_3.py +++ b/scripts/expertise/expertise_me_vital_damage_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_vital_damage_3') - - actor.addSkillMod('expertise_damage_line_me_dm', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_vital_damage_3') - - actor.removeSkillMod('expertise_damage_line_me_dm', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_vital_damage_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_vital_damage_3") return diff --git a/scripts/expertise/expertise_me_vital_damage_4.py b/scripts/expertise/expertise_me_vital_damage_4.py index fbeb571c..bb634713 100644 --- a/scripts/expertise/expertise_me_vital_damage_4.py +++ b/scripts/expertise/expertise_me_vital_damage_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.addSkill('expertise_me_vital_damage_4') - - actor.addSkillMod('expertise_damage_line_me_dm', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'medic_1a': - return - - actor.removeSkill('expertise_me_vital_damage_4') - - actor.removeSkillMod('expertise_damage_line_me_dm', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_me_vital_damage_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_me_vital_damage_4") return diff --git a/scripts/expertise/expertise_munition_armorsmith_advanced_theory_1.py b/scripts/expertise/expertise_munition_armorsmith_advanced_theory_1.py index c7b03de3..dd347899 100644 --- a/scripts/expertise/expertise_munition_armorsmith_advanced_theory_1.py +++ b/scripts/expertise/expertise_munition_armorsmith_advanced_theory_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_armorsmith_advanced_theory_1') - - actor.addSkillMod('armor_experimentation', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_armorsmith_advanced_theory_1') - - actor.removeSkillMod('armor_experimentation', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_armorsmith_advanced_theory_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_armorsmith_advanced_theory_1") return diff --git a/scripts/expertise/expertise_munition_armorsmith_attachment_upgrade_1.py b/scripts/expertise/expertise_munition_armorsmith_attachment_upgrade_1.py index 00e4e545..4f4ae755 100644 --- a/scripts/expertise/expertise_munition_armorsmith_attachment_upgrade_1.py +++ b/scripts/expertise/expertise_munition_armorsmith_attachment_upgrade_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_armorsmith_attachment_upgrade_1') - - actor.addSkillMod('expertise_attachment_upgrade', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_armorsmith_attachment_upgrade_1') - - actor.removeSkillMod('expertise_attachment_upgrade', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_armorsmith_attachment_upgrade_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_armorsmith_attachment_upgrade_1") return diff --git a/scripts/expertise/expertise_munition_armorsmith_dexterity_1.py b/scripts/expertise/expertise_munition_armorsmith_dexterity_1.py index 81d08c77..60cea356 100644 --- a/scripts/expertise/expertise_munition_armorsmith_dexterity_1.py +++ b/scripts/expertise/expertise_munition_armorsmith_dexterity_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_armorsmith_dexterity_1') - - actor.addSkillMod('armor_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_armorsmith_dexterity_1') - - actor.removeSkillMod('armor_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_armorsmith_dexterity_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_armorsmith_dexterity_1") return diff --git a/scripts/expertise/expertise_munition_armorsmith_dexterity_2.py b/scripts/expertise/expertise_munition_armorsmith_dexterity_2.py index 9c217bba..1cfed98e 100644 --- a/scripts/expertise/expertise_munition_armorsmith_dexterity_2.py +++ b/scripts/expertise/expertise_munition_armorsmith_dexterity_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_armorsmith_dexterity_2') - - actor.addSkillMod('armor_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_armorsmith_dexterity_2') - - actor.removeSkillMod('armor_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_armorsmith_dexterity_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_armorsmith_dexterity_2") return diff --git a/scripts/expertise/expertise_munition_armorsmith_dexterity_3.py b/scripts/expertise/expertise_munition_armorsmith_dexterity_3.py index e26013a5..550545ec 100644 --- a/scripts/expertise/expertise_munition_armorsmith_dexterity_3.py +++ b/scripts/expertise/expertise_munition_armorsmith_dexterity_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_armorsmith_dexterity_3') - - actor.addSkillMod('armor_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_armorsmith_dexterity_3') - - actor.removeSkillMod('armor_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_armorsmith_dexterity_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_armorsmith_dexterity_3") return diff --git a/scripts/expertise/expertise_munition_armorsmith_dexterity_4.py b/scripts/expertise/expertise_munition_armorsmith_dexterity_4.py index 96c50f98..0467db0c 100644 --- a/scripts/expertise/expertise_munition_armorsmith_dexterity_4.py +++ b/scripts/expertise/expertise_munition_armorsmith_dexterity_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_armorsmith_dexterity_4') - - actor.addSkillMod('armor_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_armorsmith_dexterity_4') - - actor.removeSkillMod('armor_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_armorsmith_dexterity_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_armorsmith_dexterity_4") return diff --git a/scripts/expertise/expertise_munition_armorsmith_hypothesis_1.py b/scripts/expertise/expertise_munition_armorsmith_hypothesis_1.py index df25bf70..a813988d 100644 --- a/scripts/expertise/expertise_munition_armorsmith_hypothesis_1.py +++ b/scripts/expertise/expertise_munition_armorsmith_hypothesis_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_armorsmith_hypothesis_1') - - actor.addSkillMod('expertise_experimentation_increase_armorsmith', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_armorsmith_hypothesis_1') - - actor.removeSkillMod('expertise_experimentation_increase_armorsmith', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_armorsmith_hypothesis_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_armorsmith_hypothesis_1") return diff --git a/scripts/expertise/expertise_munition_armorsmith_hypothesis_2.py b/scripts/expertise/expertise_munition_armorsmith_hypothesis_2.py index 03d1cd9e..3e1df126 100644 --- a/scripts/expertise/expertise_munition_armorsmith_hypothesis_2.py +++ b/scripts/expertise/expertise_munition_armorsmith_hypothesis_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_armorsmith_hypothesis_2') - - actor.addSkillMod('expertise_experimentation_increase_armorsmith', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_armorsmith_hypothesis_2') - - actor.removeSkillMod('expertise_experimentation_increase_armorsmith', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_armorsmith_hypothesis_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_armorsmith_hypothesis_2") return diff --git a/scripts/expertise/expertise_munition_armorsmith_hypothesis_3.py b/scripts/expertise/expertise_munition_armorsmith_hypothesis_3.py index 31e3d0a5..641c52c8 100644 --- a/scripts/expertise/expertise_munition_armorsmith_hypothesis_3.py +++ b/scripts/expertise/expertise_munition_armorsmith_hypothesis_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_armorsmith_hypothesis_3') - - actor.addSkillMod('expertise_experimentation_increase_armorsmith', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_armorsmith_hypothesis_3') - - actor.removeSkillMod('expertise_experimentation_increase_armorsmith', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_armorsmith_hypothesis_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_armorsmith_hypothesis_3") return diff --git a/scripts/expertise/expertise_munition_armorsmith_hypothesis_4.py b/scripts/expertise/expertise_munition_armorsmith_hypothesis_4.py index 3aaf3ca5..94bf9c1e 100644 --- a/scripts/expertise/expertise_munition_armorsmith_hypothesis_4.py +++ b/scripts/expertise/expertise_munition_armorsmith_hypothesis_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_armorsmith_hypothesis_4') - - actor.addSkillMod('expertise_experimentation_increase_armorsmith', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_armorsmith_hypothesis_4') - - actor.removeSkillMod('expertise_experimentation_increase_armorsmith', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_armorsmith_hypothesis_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_armorsmith_hypothesis_4") return diff --git a/scripts/expertise/expertise_munition_armorsmith_insight_1.py b/scripts/expertise/expertise_munition_armorsmith_insight_1.py index f4836dd3..682413ee 100644 --- a/scripts/expertise/expertise_munition_armorsmith_insight_1.py +++ b/scripts/expertise/expertise_munition_armorsmith_insight_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_armorsmith_insight_1') - - actor.addSkillMod('expertise_complexity_decrease_armorsmith', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_armorsmith_insight_1') - - actor.removeSkillMod('expertise_complexity_decrease_armorsmith', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_armorsmith_insight_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_armorsmith_insight_1") return diff --git a/scripts/expertise/expertise_munition_armorsmith_insight_2.py b/scripts/expertise/expertise_munition_armorsmith_insight_2.py index d0b5d3b0..a1ddebae 100644 --- a/scripts/expertise/expertise_munition_armorsmith_insight_2.py +++ b/scripts/expertise/expertise_munition_armorsmith_insight_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_armorsmith_insight_2') - - actor.addSkillMod('expertise_complexity_decrease_armorsmith', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_armorsmith_insight_2') - - actor.removeSkillMod('expertise_complexity_decrease_armorsmith', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_armorsmith_insight_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_armorsmith_insight_2") return diff --git a/scripts/expertise/expertise_munition_armorsmith_keen_understanding_1.py b/scripts/expertise/expertise_munition_armorsmith_keen_understanding_1.py index 9b7863bb..4b919776 100644 --- a/scripts/expertise/expertise_munition_armorsmith_keen_understanding_1.py +++ b/scripts/expertise/expertise_munition_armorsmith_keen_understanding_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_armorsmith_keen_understanding_1') - - actor.addSkillMod('expertise_complexity_decrease_armorsmith', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_armorsmith_keen_understanding_1') - - actor.removeSkillMod('expertise_complexity_decrease_armorsmith', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_armorsmith_keen_understanding_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_armorsmith_keen_understanding_1") return diff --git a/scripts/expertise/expertise_munition_armorsmith_keen_understanding_2.py b/scripts/expertise/expertise_munition_armorsmith_keen_understanding_2.py index 9671c726..68063fba 100644 --- a/scripts/expertise/expertise_munition_armorsmith_keen_understanding_2.py +++ b/scripts/expertise/expertise_munition_armorsmith_keen_understanding_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_armorsmith_keen_understanding_2') - - actor.addSkillMod('expertise_complexity_decrease_armorsmith', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_armorsmith_keen_understanding_2') - - actor.removeSkillMod('expertise_complexity_decrease_armorsmith', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_armorsmith_keen_understand_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_armorsmith_keen_understand_2") return diff --git a/scripts/expertise/expertise_munition_armorsmith_socket_bonus_1.py b/scripts/expertise/expertise_munition_armorsmith_socket_bonus_1.py index 31a4bf81..87f97e77 100644 --- a/scripts/expertise/expertise_munition_armorsmith_socket_bonus_1.py +++ b/scripts/expertise/expertise_munition_armorsmith_socket_bonus_1.py @@ -1,46 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_armorsmith_socket_bonus_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_armorsmith_socket_bonus_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_armorsmith_socket_bonus_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_armorsmith_socket_bonus_1") return diff --git a/scripts/expertise/expertise_munition_artisan_advanced_theory_1.py b/scripts/expertise/expertise_munition_artisan_advanced_theory_1.py index 1e5fe723..52843271 100644 --- a/scripts/expertise/expertise_munition_artisan_advanced_theory_1.py +++ b/scripts/expertise/expertise_munition_artisan_advanced_theory_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_artisan_advanced_theory_1') - - actor.addSkillMod('general_experimentation', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_artisan_advanced_theory_1') - - actor.removeSkillMod('general_experimentation', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_artisan_advanced_theory_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_artisan_advanced_theory_1") return diff --git a/scripts/expertise/expertise_munition_artisan_dexterity_1.py b/scripts/expertise/expertise_munition_artisan_dexterity_1.py index 638088a7..3c7654c3 100644 --- a/scripts/expertise/expertise_munition_artisan_dexterity_1.py +++ b/scripts/expertise/expertise_munition_artisan_dexterity_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_artisan_dexterity_1') - - actor.addSkillMod('general_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_artisan_dexterity_1') - - actor.removeSkillMod('general_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_artisan_dexterity_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_artisan_dexterity_1") return diff --git a/scripts/expertise/expertise_munition_artisan_dexterity_2.py b/scripts/expertise/expertise_munition_artisan_dexterity_2.py index 447143e8..100dd414 100644 --- a/scripts/expertise/expertise_munition_artisan_dexterity_2.py +++ b/scripts/expertise/expertise_munition_artisan_dexterity_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_artisan_dexterity_2') - - actor.addSkillMod('general_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_artisan_dexterity_2') - - actor.removeSkillMod('general_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_artisan_dexterity_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_artisan_dexterity_2") return diff --git a/scripts/expertise/expertise_munition_artisan_dexterity_3.py b/scripts/expertise/expertise_munition_artisan_dexterity_3.py index 2100f2c7..aa5cdd64 100644 --- a/scripts/expertise/expertise_munition_artisan_dexterity_3.py +++ b/scripts/expertise/expertise_munition_artisan_dexterity_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_artisan_dexterity_3') - - actor.addSkillMod('general_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_artisan_dexterity_3') - - actor.removeSkillMod('general_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_artisan_dexterity_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_artisan_dexterity_3") return diff --git a/scripts/expertise/expertise_munition_artisan_dexterity_4.py b/scripts/expertise/expertise_munition_artisan_dexterity_4.py index 4442f4d5..4dd8ecbb 100644 --- a/scripts/expertise/expertise_munition_artisan_dexterity_4.py +++ b/scripts/expertise/expertise_munition_artisan_dexterity_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_artisan_dexterity_4') - - actor.addSkillMod('general_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_artisan_dexterity_4') - - actor.removeSkillMod('general_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_artisan_dexterity_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_artisan_dexterity_4") return diff --git a/scripts/expertise/expertise_munition_artisan_hypothesis_1.py b/scripts/expertise/expertise_munition_artisan_hypothesis_1.py index 80d37471..24cb3aae 100644 --- a/scripts/expertise/expertise_munition_artisan_hypothesis_1.py +++ b/scripts/expertise/expertise_munition_artisan_hypothesis_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_artisan_hypothesis_1') - - actor.addSkillMod('expertise_experimentation_increase_artisan', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_artisan_hypothesis_1') - - actor.removeSkillMod('expertise_experimentation_increase_artisan', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_artisan_hypothesis_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_artisan_hypothesis_1") return diff --git a/scripts/expertise/expertise_munition_artisan_hypothesis_2.py b/scripts/expertise/expertise_munition_artisan_hypothesis_2.py index d842f507..99447075 100644 --- a/scripts/expertise/expertise_munition_artisan_hypothesis_2.py +++ b/scripts/expertise/expertise_munition_artisan_hypothesis_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_artisan_hypothesis_2') - - actor.addSkillMod('expertise_experimentation_increase_artisan', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_artisan_hypothesis_2') - - actor.removeSkillMod('expertise_experimentation_increase_artisan', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_artisan_hypothesis_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_artisan_hypothesis_2") return diff --git a/scripts/expertise/expertise_munition_artisan_hypothesis_3.py b/scripts/expertise/expertise_munition_artisan_hypothesis_3.py index c4498501..a18d8365 100644 --- a/scripts/expertise/expertise_munition_artisan_hypothesis_3.py +++ b/scripts/expertise/expertise_munition_artisan_hypothesis_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_artisan_hypothesis_3') - - actor.addSkillMod('expertise_experimentation_increase_artisan', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_artisan_hypothesis_3') - - actor.removeSkillMod('expertise_experimentation_increase_artisan', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_artisan_hypothesis_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_artisan_hypothesis_3") return diff --git a/scripts/expertise/expertise_munition_artisan_hypothesis_4.py b/scripts/expertise/expertise_munition_artisan_hypothesis_4.py index 9e217fe9..35ee3e44 100644 --- a/scripts/expertise/expertise_munition_artisan_hypothesis_4.py +++ b/scripts/expertise/expertise_munition_artisan_hypothesis_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_artisan_hypothesis_4') - - actor.addSkillMod('expertise_experimentation_increase_artisan', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_artisan_hypothesis_4') - - actor.removeSkillMod('expertise_experimentation_increase_artisan', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_artisan_hypothesis_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_artisan_hypothesis_4") return diff --git a/scripts/expertise/expertise_munition_resource_processing_1.py b/scripts/expertise/expertise_munition_resource_processing_1.py index cbbef8f6..46b265dc 100644 --- a/scripts/expertise/expertise_munition_resource_processing_1.py +++ b/scripts/expertise/expertise_munition_resource_processing_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_resource_processing_1') - - actor.addSkillMod('expertise_resource_quality_increase', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_resource_processing_1') - - actor.removeSkillMod('expertise_resource_quality_increase', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_resource_processing_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_resource_processing_1") return diff --git a/scripts/expertise/expertise_munition_resource_processing_2.py b/scripts/expertise/expertise_munition_resource_processing_2.py index 02eed65b..f188f336 100644 --- a/scripts/expertise/expertise_munition_resource_processing_2.py +++ b/scripts/expertise/expertise_munition_resource_processing_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_resource_processing_2') - - actor.addSkillMod('expertise_resource_quality_increase', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_resource_processing_2') - - actor.removeSkillMod('expertise_resource_quality_increase', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_resource_processing_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_resource_processing_2") return diff --git a/scripts/expertise/expertise_munition_resource_refinement_1.py b/scripts/expertise/expertise_munition_resource_refinement_1.py index 0d500f72..855d585b 100644 --- a/scripts/expertise/expertise_munition_resource_refinement_1.py +++ b/scripts/expertise/expertise_munition_resource_refinement_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_resource_refinement_1') - - actor.addSkillMod('expertise_resource_quality_increase', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_resource_refinement_1') - - actor.removeSkillMod('expertise_resource_quality_increase', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_resource_refinement_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_resource_refinement_1") return diff --git a/scripts/expertise/expertise_munition_resource_refinement_2.py b/scripts/expertise/expertise_munition_resource_refinement_2.py index 5b794681..e4536a48 100644 --- a/scripts/expertise/expertise_munition_resource_refinement_2.py +++ b/scripts/expertise/expertise_munition_resource_refinement_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_resource_refinement_2') - - actor.addSkillMod('expertise_resource_quality_increase', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_resource_refinement_2') - - actor.removeSkillMod('expertise_resource_quality_increase', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_resource_refinement_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_resource_refinement_2") return diff --git a/scripts/expertise/expertise_munition_weaponsmith_advanced_theory_1.py b/scripts/expertise/expertise_munition_weaponsmith_advanced_theory_1.py index bfd79df3..6b248343 100644 --- a/scripts/expertise/expertise_munition_weaponsmith_advanced_theory_1.py +++ b/scripts/expertise/expertise_munition_weaponsmith_advanced_theory_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_weaponsmith_advanced_theory_1') - - actor.addSkillMod('weapon_experimentation', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_weaponsmith_advanced_theory_1') - - actor.removeSkillMod('weapon_experimentation', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_weaponsmith_advanced_theory_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_weaponsmith_advanced_theory_1") return diff --git a/scripts/expertise/expertise_munition_weaponsmith_dexterity_1.py b/scripts/expertise/expertise_munition_weaponsmith_dexterity_1.py index fd035fd8..78a141b6 100644 --- a/scripts/expertise/expertise_munition_weaponsmith_dexterity_1.py +++ b/scripts/expertise/expertise_munition_weaponsmith_dexterity_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_weaponsmith_dexterity_1') - - actor.addSkillMod('weapon_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_weaponsmith_dexterity_1') - - actor.removeSkillMod('weapon_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_weaponsmith_dexterity_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_weaponsmith_dexterity_1") return diff --git a/scripts/expertise/expertise_munition_weaponsmith_dexterity_2.py b/scripts/expertise/expertise_munition_weaponsmith_dexterity_2.py index 6e0ace46..978ba95f 100644 --- a/scripts/expertise/expertise_munition_weaponsmith_dexterity_2.py +++ b/scripts/expertise/expertise_munition_weaponsmith_dexterity_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_weaponsmith_dexterity_2') - - actor.addSkillMod('weapon_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_weaponsmith_dexterity_2') - - actor.removeSkillMod('weapon_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_weaponsmith_dexterity_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_weaponsmith_dexterity_2") return diff --git a/scripts/expertise/expertise_munition_weaponsmith_dexterity_3.py b/scripts/expertise/expertise_munition_weaponsmith_dexterity_3.py index 7ca11203..c386a1ac 100644 --- a/scripts/expertise/expertise_munition_weaponsmith_dexterity_3.py +++ b/scripts/expertise/expertise_munition_weaponsmith_dexterity_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_weaponsmith_dexterity_3') - - actor.addSkillMod('weapon_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_weaponsmith_dexterity_3') - - actor.removeSkillMod('weapon_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_weaponsmith_dexterity_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_weaponsmith_dexterity_3") return diff --git a/scripts/expertise/expertise_munition_weaponsmith_dexterity_4.py b/scripts/expertise/expertise_munition_weaponsmith_dexterity_4.py index 492a2b7f..22d08692 100644 --- a/scripts/expertise/expertise_munition_weaponsmith_dexterity_4.py +++ b/scripts/expertise/expertise_munition_weaponsmith_dexterity_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_weaponsmith_dexterity_4') - - actor.addSkillMod('weapon_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_weaponsmith_dexterity_4') - - actor.removeSkillMod('weapon_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_weaponsmith_dexterity_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_weaponsmith_dexterity_4") return diff --git a/scripts/expertise/expertise_munition_weaponsmith_hypothesis_1.py b/scripts/expertise/expertise_munition_weaponsmith_hypothesis_1.py index 01a84b79..33a64c97 100644 --- a/scripts/expertise/expertise_munition_weaponsmith_hypothesis_1.py +++ b/scripts/expertise/expertise_munition_weaponsmith_hypothesis_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_weaponsmith_hypothesis_1') - - actor.addSkillMod('expertise_experimentation_increase_weaponsmith', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_weaponsmith_hypothesis_1') - - actor.removeSkillMod('expertise_experimentation_increase_weaponsmith', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_weaponsmith_hypothesis_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_weaponsmith_hypothesis_1") return diff --git a/scripts/expertise/expertise_munition_weaponsmith_hypothesis_2.py b/scripts/expertise/expertise_munition_weaponsmith_hypothesis_2.py index c55b807d..a38da0d9 100644 --- a/scripts/expertise/expertise_munition_weaponsmith_hypothesis_2.py +++ b/scripts/expertise/expertise_munition_weaponsmith_hypothesis_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_weaponsmith_hypothesis_2') - - actor.addSkillMod('expertise_experimentation_increase_weaponsmith', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_weaponsmith_hypothesis_2') - - actor.removeSkillMod('expertise_experimentation_increase_weaponsmith', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_weaponsmith_hypothesis_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_weaponsmith_hypothesis_2") return diff --git a/scripts/expertise/expertise_munition_weaponsmith_hypothesis_3.py b/scripts/expertise/expertise_munition_weaponsmith_hypothesis_3.py index 1236e5a7..a6ecbf5a 100644 --- a/scripts/expertise/expertise_munition_weaponsmith_hypothesis_3.py +++ b/scripts/expertise/expertise_munition_weaponsmith_hypothesis_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_weaponsmith_hypothesis_3') - - actor.addSkillMod('expertise_experimentation_increase_weaponsmith', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_weaponsmith_hypothesis_3') - - actor.removeSkillMod('expertise_experimentation_increase_weaponsmith', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_weaponsmith_hypothesis_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_weaponsmith_hypothesis_3") return diff --git a/scripts/expertise/expertise_munition_weaponsmith_hypothesis_4.py b/scripts/expertise/expertise_munition_weaponsmith_hypothesis_4.py index 233610d9..08e1855e 100644 --- a/scripts/expertise/expertise_munition_weaponsmith_hypothesis_4.py +++ b/scripts/expertise/expertise_munition_weaponsmith_hypothesis_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_weaponsmith_hypothesis_4') - - actor.addSkillMod('expertise_experimentation_increase_weaponsmith', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_weaponsmith_hypothesis_4') - - actor.removeSkillMod('expertise_experimentation_increase_weaponsmith', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_weaponsmith_hypothesis_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_weaponsmith_hypothesis_4") return diff --git a/scripts/expertise/expertise_munition_weaponsmith_insight_1.py b/scripts/expertise/expertise_munition_weaponsmith_insight_1.py index f4775f7e..02ae306a 100644 --- a/scripts/expertise/expertise_munition_weaponsmith_insight_1.py +++ b/scripts/expertise/expertise_munition_weaponsmith_insight_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_weaponsmith_insight_1') - - actor.addSkillMod('expertise_complexity_decrease_weaponsmith', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_weaponsmith_insight_1') - - actor.removeSkillMod('expertise_complexity_decrease_weaponsmith', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_weaponsmith_insight_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_weaponsmith_insight_1") return diff --git a/scripts/expertise/expertise_munition_weaponsmith_insight_2.py b/scripts/expertise/expertise_munition_weaponsmith_insight_2.py index 0bd0d617..fd8846c4 100644 --- a/scripts/expertise/expertise_munition_weaponsmith_insight_2.py +++ b/scripts/expertise/expertise_munition_weaponsmith_insight_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_weaponsmith_insight_2') - - actor.addSkillMod('expertise_complexity_decrease_weaponsmith', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_weaponsmith_insight_2') - - actor.removeSkillMod('expertise_complexity_decrease_weaponsmith', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_weaponsmith_insight_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_weaponsmith_insight_2") return diff --git a/scripts/expertise/expertise_munition_weaponsmith_keen_understanding_1.py b/scripts/expertise/expertise_munition_weaponsmith_keen_understanding_1.py index bf78a146..3a4b9071 100644 --- a/scripts/expertise/expertise_munition_weaponsmith_keen_understanding_1.py +++ b/scripts/expertise/expertise_munition_weaponsmith_keen_understanding_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_weaponsmith_keen_understanding_1') - - actor.addSkillMod('expertise_complexity_decrease_weaponsmith', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_weaponsmith_keen_understanding_1') - - actor.removeSkillMod('expertise_complexity_decrease_weaponsmith', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_weaponsmith_keen_understanding_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_weaponsmith_keen_understanding_1") return diff --git a/scripts/expertise/expertise_munition_weaponsmith_keen_understanding_2.py b/scripts/expertise/expertise_munition_weaponsmith_keen_understanding_2.py index 7bf75f62..14a0134d 100644 --- a/scripts/expertise/expertise_munition_weaponsmith_keen_understanding_2.py +++ b/scripts/expertise/expertise_munition_weaponsmith_keen_understanding_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.addSkill('expertise_munition_weaponsmith_keen_understanding_2') - - actor.addSkillMod('expertise_complexity_decrease_weaponsmith', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_mun_1a': - return - - actor.removeSkill('expertise_munition_weaponsmith_keen_understanding_2') - - actor.removeSkillMod('expertise_complexity_decrease_weaponsmith', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_munition_weaponsmith_keen_understanding_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_munition_weaponsmith_keen_understanding_2") return diff --git a/scripts/expertise/expertise_of_1h_crit_1.py b/scripts/expertise/expertise_of_1h_crit_1.py index 461ff94d..5b1de38a 100644 --- a/scripts/expertise/expertise_of_1h_crit_1.py +++ b/scripts/expertise/expertise_of_1h_crit_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_1h_crit_1') - - actor.addSkillMod('expertise_undiminished_critical_melee', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_1h_crit_1') - - actor.removeSkillMod('expertise_undiminished_critical_melee', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_1h_crit_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_1h_crit_1") return diff --git a/scripts/expertise/expertise_of_1h_crit_2.py b/scripts/expertise/expertise_of_1h_crit_2.py index 60a05278..6f5fa016 100644 --- a/scripts/expertise/expertise_of_1h_crit_2.py +++ b/scripts/expertise/expertise_of_1h_crit_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_1h_crit_2') - - actor.addSkillMod('expertise_undiminished_critical_melee', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_1h_crit_2') - - actor.removeSkillMod('expertise_undiminished_critical_melee', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_1h_crit_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_1h_crit_2") return diff --git a/scripts/expertise/expertise_of_1h_dam_1.py b/scripts/expertise/expertise_of_1h_dam_1.py index b8be4494..f143981d 100644 --- a/scripts/expertise/expertise_of_1h_dam_1.py +++ b/scripts/expertise/expertise_of_1h_dam_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_1h_dam_1') - - actor.addSkillMod('expertise_damage_melee', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_1h_dam_1') - - actor.removeSkillMod('expertise_damage_melee', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_1h_dam_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_1h_dam_1") return diff --git a/scripts/expertise/expertise_of_1h_dam_2.py b/scripts/expertise/expertise_of_1h_dam_2.py index e4edd536..65802383 100644 --- a/scripts/expertise/expertise_of_1h_dam_2.py +++ b/scripts/expertise/expertise_of_1h_dam_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_1h_dam_2') - - actor.addSkillMod('expertise_damage_melee', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_1h_dam_2') - - actor.removeSkillMod('expertise_damage_melee', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_1h_dam_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_1h_dam_2") return diff --git a/scripts/expertise/expertise_of_1h_dam_3.py b/scripts/expertise/expertise_of_1h_dam_3.py index aa845e86..e1a3c0ad 100644 --- a/scripts/expertise/expertise_of_1h_dam_3.py +++ b/scripts/expertise/expertise_of_1h_dam_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_1h_dam_3') - - actor.addSkillMod('expertise_damage_melee', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_1h_dam_3') - - actor.removeSkillMod('expertise_damage_melee', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_1h_dam_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_1h_dam_3") return diff --git a/scripts/expertise/expertise_of_1h_dam_4.py b/scripts/expertise/expertise_of_1h_dam_4.py index 8041c7e1..10539dc5 100644 --- a/scripts/expertise/expertise_of_1h_dam_4.py +++ b/scripts/expertise/expertise_of_1h_dam_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_1h_dam_4') - - actor.addSkillMod('expertise_damage_melee', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_1h_dam_4') - - actor.removeSkillMod('expertise_damage_melee', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_1h_dam_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_1h_dam_4") return diff --git a/scripts/expertise/expertise_of_advanced_paint_1.py b/scripts/expertise/expertise_of_advanced_paint_1.py index 3174e3a1..aab196f3 100644 --- a/scripts/expertise/expertise_of_advanced_paint_1.py +++ b/scripts/expertise/expertise_of_advanced_paint_1.py @@ -1,48 +1,31 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_advanced_paint_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_advanced_paint_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('of_deb_def_4') - + if actor.getLevel() >= 4: + actor.addAbility("of_deb_def_1") + if actor.getLevel() >= 12: + actor.addAbility("of_deb_def_2") + if actor.getLevel() >= 20: + actor.addAbility("of_deb_def_3") + if actor.getLevel() >= 30: + actor.addAbility("of_deb_def_4") + if actor.getLevel() >= 38: + actor.addAbility("of_deb_def_5") + if actor.getLevel() >= 52: + actor.addAbility("of_deb_def_6") + if actor.getLevel() >= 62: + actor.addAbility("of_deb_def_7") + if actor.getLevel() >= 72: + actor.addAbility("of_deb_def_8") return def removeAbilities(core, actor, player): - - actor.removeAbility('of_deb_def_4') - + actor.removeAbility("of_deb_def_1") + actor.removeAbility("of_deb_def_2") + actor.removeAbility("of_deb_def_3") + actor.removeAbility("of_deb_def_4") + actor.removeAbility("of_deb_def_5") + actor.removeAbility("of_deb_def_6") + actor.removeAbility("of_deb_def_7") + actor.removeAbility("of_deb_def_8") return diff --git a/scripts/expertise/expertise_of_advanced_tactics_1.py b/scripts/expertise/expertise_of_advanced_tactics_1.py index 1bbd138c..6a976e84 100644 --- a/scripts/expertise/expertise_of_advanced_tactics_1.py +++ b/scripts/expertise/expertise_of_advanced_tactics_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_advanced_tactics_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_advanced_tactics_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('of_buff_def_4') - + actor.addAbility("of_buff_def_4") return def removeAbilities(core, actor, player): - - actor.removeAbility('of_buff_def_4') - + actor.removeAbility("of_buff_def_4") return diff --git a/scripts/expertise/expertise_of_aggro_channel_1.py b/scripts/expertise/expertise_of_aggro_channel_1.py index 854b3726..912c1b43 100644 --- a/scripts/expertise/expertise_of_aggro_channel_1.py +++ b/scripts/expertise/expertise_of_aggro_channel_1.py @@ -1,50 +1,11 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_aggro_channel_1') - - actor.addSkillMod('expertise_aggro_channel', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_aggro_channel_1') - - actor.removeSkillMod('expertise_aggro_channel', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('of_aggro_channel') - + actor.addAbility("of_aggro_channel") + actor.addAbility("expertise_of_aggro_channel_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('of_aggro_channel') - + actor.removeAbility("of_aggro_channel") + actor.removeAbility("expertise_of_aggro_channel_1") return diff --git a/scripts/expertise/expertise_of_aggro_channel_2.py b/scripts/expertise/expertise_of_aggro_channel_2.py new file mode 100644 index 00000000..69b37a58 --- /dev/null +++ b/scripts/expertise/expertise_of_aggro_channel_2.py @@ -0,0 +1,9 @@ +import sys + +def addAbilities(core, actor, player): + actor.addAbility("expertise_of_aggro_channel_2") + return + +def removeAbilities(core, actor, player): + actor.removeAbility("expertise_of_aggro_channel_2") + return diff --git a/scripts/expertise/expertise_of_aggro_channel_3.py b/scripts/expertise/expertise_of_aggro_channel_3.py new file mode 100644 index 00000000..59bb6863 --- /dev/null +++ b/scripts/expertise/expertise_of_aggro_channel_3.py @@ -0,0 +1,9 @@ +import sys + +def addAbilities(core, actor, player): + actor.addAbility("expertise_of_aggro_channel_3") + return + +def removeAbilities(core, actor, player): + actor.removeAbility("expertise_of_aggro_channel_3") + return diff --git a/scripts/expertise/expertise_of_aoe_act_1.py b/scripts/expertise/expertise_of_aoe_act_1.py index ca6b47a6..674c7d3a 100644 --- a/scripts/expertise/expertise_of_aoe_act_1.py +++ b/scripts/expertise/expertise_of_aoe_act_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_aoe_act_1') - - actor.addSkillMod('expertise_action_line_of_aoe', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_aoe_act_1') - - actor.removeSkillMod('expertise_action_line_of_aoe', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_aoe_act_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_aoe_act_1") return diff --git a/scripts/expertise/expertise_of_aoe_act_2.py b/scripts/expertise/expertise_of_aoe_act_2.py index 7d2e2aaf..97120f62 100644 --- a/scripts/expertise/expertise_of_aoe_act_2.py +++ b/scripts/expertise/expertise_of_aoe_act_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_aoe_act_2') - - actor.addSkillMod('expertise_action_line_of_aoe', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_aoe_act_2') - - actor.removeSkillMod('expertise_action_line_of_aoe', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_aoe_act_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_aoe_act_2") return diff --git a/scripts/expertise/expertise_of_aoe_act_3.py b/scripts/expertise/expertise_of_aoe_act_3.py index a07c0839..509996aa 100644 --- a/scripts/expertise/expertise_of_aoe_act_3.py +++ b/scripts/expertise/expertise_of_aoe_act_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_aoe_act_3') - - actor.addSkillMod('expertise_action_line_of_aoe', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_aoe_act_3') - - actor.removeSkillMod('expertise_action_line_of_aoe', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_aoe_act_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_aoe_act_3") return diff --git a/scripts/expertise/expertise_of_aoe_act_4.py b/scripts/expertise/expertise_of_aoe_act_4.py index 221991d5..d6d15040 100644 --- a/scripts/expertise/expertise_of_aoe_act_4.py +++ b/scripts/expertise/expertise_of_aoe_act_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_aoe_act_4') - - actor.addSkillMod('expertise_action_line_of_aoe', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_aoe_act_4') - - actor.removeSkillMod('expertise_action_line_of_aoe', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_aoe_act_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_aoe_act_4") return diff --git a/scripts/expertise/expertise_of_aoe_crit_1.py b/scripts/expertise/expertise_of_aoe_crit_1.py index f099eb09..f87e35f3 100644 --- a/scripts/expertise/expertise_of_aoe_crit_1.py +++ b/scripts/expertise/expertise_of_aoe_crit_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_aoe_crit_1') - - actor.addSkillMod('expertise_critical_line_of_aoe', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_aoe_crit_1') - - actor.removeSkillMod('expertise_critical_line_of_aoe', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_aoe_crit_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_aoe_crit_1") return diff --git a/scripts/expertise/expertise_of_aoe_crit_2.py b/scripts/expertise/expertise_of_aoe_crit_2.py index 9c9f80e4..66c7da61 100644 --- a/scripts/expertise/expertise_of_aoe_crit_2.py +++ b/scripts/expertise/expertise_of_aoe_crit_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_aoe_crit_2') - - actor.addSkillMod('expertise_critical_line_of_aoe', 15) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_aoe_crit_2') - - actor.removeSkillMod('expertise_critical_line_of_aoe', 15) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_aoe_crit_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_aoe_crit_2") return diff --git a/scripts/expertise/expertise_of_aoe_crit_3.py b/scripts/expertise/expertise_of_aoe_crit_3.py index e8c9cfaf..500ec01d 100644 --- a/scripts/expertise/expertise_of_aoe_crit_3.py +++ b/scripts/expertise/expertise_of_aoe_crit_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_aoe_crit_3') - - actor.addSkillMod('expertise_critical_line_of_aoe', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_aoe_crit_3') - - actor.removeSkillMod('expertise_critical_line_of_aoe', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_aoe_crit_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_aoe_crit_3") return diff --git a/scripts/expertise/expertise_of_aoe_dam_1.py b/scripts/expertise/expertise_of_aoe_dam_1.py index aecafb91..89e60747 100644 --- a/scripts/expertise/expertise_of_aoe_dam_1.py +++ b/scripts/expertise/expertise_of_aoe_dam_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_aoe_dam_1') - - actor.addSkillMod('expertise_damage_line_of_aoe', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_aoe_dam_1') - - actor.removeSkillMod('expertise_damage_line_of_aoe', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_aoe_dam_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_aoe_dam_1") return diff --git a/scripts/expertise/expertise_of_aoe_dam_2.py b/scripts/expertise/expertise_of_aoe_dam_2.py index b4051206..67ec6994 100644 --- a/scripts/expertise/expertise_of_aoe_dam_2.py +++ b/scripts/expertise/expertise_of_aoe_dam_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_aoe_dam_2') - - actor.addSkillMod('expertise_damage_line_of_aoe', 15) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_aoe_dam_2') - - actor.removeSkillMod('expertise_damage_line_of_aoe', 15) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_aoe_dam_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_aoe_dam_2") return diff --git a/scripts/expertise/expertise_of_armor_eng_1.py b/scripts/expertise/expertise_of_armor_eng_1.py index bbcb6419..c5d4960e 100644 --- a/scripts/expertise/expertise_of_armor_eng_1.py +++ b/scripts/expertise/expertise_of_armor_eng_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_armor_eng_1') - - actor.addSkillMod('expertise_innate_protection_energy', 500) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_armor_eng_1') - - actor.removeSkillMod('expertise_innate_protection_energy', 500) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_armor_eng_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_armor_eng_1") return diff --git a/scripts/expertise/expertise_of_armor_eng_2.py b/scripts/expertise/expertise_of_armor_eng_2.py index a3384177..ae551145 100644 --- a/scripts/expertise/expertise_of_armor_eng_2.py +++ b/scripts/expertise/expertise_of_armor_eng_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_armor_eng_2') - - actor.addSkillMod('expertise_innate_protection_energy', 500) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_armor_eng_2') - - actor.removeSkillMod('expertise_innate_protection_energy', 500) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_armor_eng_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_armor_eng_2") return diff --git a/scripts/expertise/expertise_of_armor_kin_1.py b/scripts/expertise/expertise_of_armor_kin_1.py index 06713c28..98f1e9e7 100644 --- a/scripts/expertise/expertise_of_armor_kin_1.py +++ b/scripts/expertise/expertise_of_armor_kin_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_armor_kin_1') - - actor.addSkillMod('expertise_innate_protection_kinetic', 500) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_armor_kin_1') - - actor.removeSkillMod('expertise_innate_protection_kinetic', 500) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_armor_kin_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_armor_kin_1") return diff --git a/scripts/expertise/expertise_of_armor_kin_2.py b/scripts/expertise/expertise_of_armor_kin_2.py index b1654a38..a67cdba1 100644 --- a/scripts/expertise/expertise_of_armor_kin_2.py +++ b/scripts/expertise/expertise_of_armor_kin_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_armor_kin_2') - - actor.addSkillMod('expertise_innate_protection_kinetic', 500) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_armor_kin_2') - - actor.removeSkillMod('expertise_innate_protection_kinetic', 500) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_armor_kin_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_armor_kin_2") return diff --git a/scripts/expertise/expertise_of_charge_1.py b/scripts/expertise/expertise_of_charge_1.py index 14086fb6..5667cd17 100644 --- a/scripts/expertise/expertise_of_charge_1.py +++ b/scripts/expertise/expertise_of_charge_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_charge_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_charge_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('of_charge_1') - + actor.addAbility("of_charge_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('of_charge_1') - + actor.removeAbility("of_charge_1") return diff --git a/scripts/expertise/expertise_of_constitution_1.py b/scripts/expertise/expertise_of_constitution_1.py index 0e6e578c..33d66895 100644 --- a/scripts/expertise/expertise_of_constitution_1.py +++ b/scripts/expertise/expertise_of_constitution_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_constitution_1') - - actor.addSkillMod('constitution_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_constitution_1') - - actor.removeSkillMod('constitution_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_constution_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_constution_1") return diff --git a/scripts/expertise/expertise_of_constitution_2.py b/scripts/expertise/expertise_of_constitution_2.py index 7332ea67..5afec279 100644 --- a/scripts/expertise/expertise_of_constitution_2.py +++ b/scripts/expertise/expertise_of_constitution_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_constitution_2') - - actor.addSkillMod('constitution_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_constitution_2') - - actor.removeSkillMod('constitution_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_constution_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_constution_2") return diff --git a/scripts/expertise/expertise_of_constitution_3.py b/scripts/expertise/expertise_of_constitution_3.py index 96cb9137..eb215ec3 100644 --- a/scripts/expertise/expertise_of_constitution_3.py +++ b/scripts/expertise/expertise_of_constitution_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_constitution_3') - - actor.addSkillMod('constitution_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_constitution_3') - - actor.removeSkillMod('constitution_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_constution_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_constution_3") return diff --git a/scripts/expertise/expertise_of_constitution_4.py b/scripts/expertise/expertise_of_constitution_4.py index 0ba009e9..75679a92 100644 --- a/scripts/expertise/expertise_of_constitution_4.py +++ b/scripts/expertise/expertise_of_constitution_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_constitution_4') - - actor.addSkillMod('constitution_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_constitution_4') - - actor.removeSkillMod('constitution_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_constution_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_constution_4") return diff --git a/scripts/expertise/expertise_of_decapitate_1.py b/scripts/expertise/expertise_of_decapitate_1.py index 5cfb1494..1c6cc6ee 100644 --- a/scripts/expertise/expertise_of_decapitate_1.py +++ b/scripts/expertise/expertise_of_decapitate_1.py @@ -1,48 +1,25 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_decapitate_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_decapitate_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('of_decapitate_1') - + if actor.getLevel() >= 26: + actor.addAbility("of_decapitate_1") + if actor.getLevel() >= 34: + actor.addAbility("of_decapitate_2") + if actor.getLevel() >= 48: + actor.addAbility("of_decapitate_3") + if actor.getLevel() >= 62: + actor.addAbility("of_decapitate_4") + if actor.getLevel() >= 76: + actor.addAbility("of_decapitate_5") + if actor.getLevel() >= 90: + actor.addAbility("of_decapitate_6") return def removeAbilities(core, actor, player): - - actor.removeAbility('of_decapitate_1') - + actor.removeAbility("of_decapitate_1") + actor.removeAbility("of_decapitate_2") + actor.removeAbility("of_decapitate_3") + actor.removeAbility("of_decapitate_4") + actor.removeAbility("of_decapitate_5") + actor.removeAbility("of_decapitate_6") return diff --git a/scripts/expertise/expertise_of_dm_1.py b/scripts/expertise/expertise_of_dm_1.py index 165617c2..22659ae7 100644 --- a/scripts/expertise/expertise_of_dm_1.py +++ b/scripts/expertise/expertise_of_dm_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_dm_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_dm_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('of_pistol_dm') - + actor.addAbility("of_pistol_dm") return def removeAbilities(core, actor, player): - - actor.removeAbility('of_pistol_dm') - + actor.removeAbility("of_pistol_dm") return diff --git a/scripts/expertise/expertise_of_drillmaster_1.py b/scripts/expertise/expertise_of_drillmaster_1.py index 1216d427..1ffea25f 100644 --- a/scripts/expertise/expertise_of_drillmaster_1.py +++ b/scripts/expertise/expertise_of_drillmaster_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_drillmaster_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_drillmaster_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('of_drillmaster_1') - + actor.addAbility("of_drillmaster_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('of_drillmaster_1') - + actor.removeAbility("of_drillmaster_1") return diff --git a/scripts/expertise/expertise_of_emergency_shield.py b/scripts/expertise/expertise_of_emergency_shield.py index e3a8b519..c29afc3f 100644 --- a/scripts/expertise/expertise_of_emergency_shield.py +++ b/scripts/expertise/expertise_of_emergency_shield.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_emergency_shield') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_emergency_shield') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('of_emergency_shield') - + actor.addAbility("of_emergency_shield") return def removeAbilities(core, actor, player): - - actor.removeAbility('of_emergency_shield') - + actor.removeAbility("of_emergency_shield") return diff --git a/scripts/expertise/expertise_of_firepower_1.py b/scripts/expertise/expertise_of_firepower_1.py index ff310741..ebdd34a9 100644 --- a/scripts/expertise/expertise_of_firepower_1.py +++ b/scripts/expertise/expertise_of_firepower_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_firepower_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_firepower_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('of_firepower_1') - + actor.addAbility("of_firepower_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('of_firepower_1') - + actor.removeAbility("of_firepower_1") return diff --git a/scripts/expertise/expertise_of_firepower_cool_1.py b/scripts/expertise/expertise_of_firepower_cool_1.py index d844f5f4..028ad25c 100644 --- a/scripts/expertise/expertise_of_firepower_cool_1.py +++ b/scripts/expertise/expertise_of_firepower_cool_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_firepower_cool_1') - - actor.addSkillMod('expertise_cooldown_line_of_firepower', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_firepower_cool_1') - - actor.removeSkillMod('expertise_cooldown_line_of_firepower', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_firepower_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_firepower_1") return diff --git a/scripts/expertise/expertise_of_firepower_cool_2.py b/scripts/expertise/expertise_of_firepower_cool_2.py index b0fab74f..fdfcbaba 100644 --- a/scripts/expertise/expertise_of_firepower_cool_2.py +++ b/scripts/expertise/expertise_of_firepower_cool_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_firepower_cool_2') - - actor.addSkillMod('expertise_cooldown_line_of_firepower', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_firepower_cool_2') - - actor.removeSkillMod('expertise_cooldown_line_of_firepower', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_firepower_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_firepower_2") return diff --git a/scripts/expertise/expertise_of_firepower_cool_3.py b/scripts/expertise/expertise_of_firepower_cool_3.py index 666c9647..28c63b2a 100644 --- a/scripts/expertise/expertise_of_firepower_cool_3.py +++ b/scripts/expertise/expertise_of_firepower_cool_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_firepower_cool_3') - - actor.addSkillMod('expertise_cooldown_line_of_firepower', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_firepower_cool_3') - - actor.removeSkillMod('expertise_cooldown_line_of_firepower', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_firepower_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_firepower_3") return diff --git a/scripts/expertise/expertise_of_focus_fire_1.py b/scripts/expertise/expertise_of_focus_fire_1.py index 7b0cbaff..0dfc30c4 100644 --- a/scripts/expertise/expertise_of_focus_fire_1.py +++ b/scripts/expertise/expertise_of_focus_fire_1.py @@ -1,48 +1,25 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_focus_fire_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_focus_fire_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('of_focus_fire_1') - + if actor.getLevel() >= 26: + actor.addAbility("of_focus_fire_1") + if actor.getLevel() >= 34: + actor.addAbility("of_focus_fire_2") + if actor.getLevel() >= 48: + actor.addAbility("of_focus_fire_3") + if actor.getLevel() >= 62: + actor.addAbility("of_focus_fire_4") + if actor.getLevel() >= 76: + actor.addAbility("of_focus_fire_5") + if actor.getLevel() >= 90: + actor.addAbility("of_focus_fire_6") return def removeAbilities(core, actor, player): - - actor.removeAbility('of_focus_fire_1') - + actor.removeAbility("of_focus_fire_1") + actor.removeAbility("of_focus_fire_2") + actor.removeAbility("of_focus_fire_3") + actor.removeAbility("of_focus_fire_4") + actor.removeAbility("of_focus_fire_5") + actor.removeAbility("of_focus_fire_6") return diff --git a/scripts/expertise/expertise_of_group_buff_duration_1.py b/scripts/expertise/expertise_of_group_buff_duration_1.py index 363bd385..dd53fe02 100644 --- a/scripts/expertise/expertise_of_group_buff_duration_1.py +++ b/scripts/expertise/expertise_of_group_buff_duration_1.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_group_buff_duration_1') - - actor.addSkillMod('expertise_buff_duration_line_of_group_buff', 15) - actor.addSkillMod('expertise_aura_maintain', 1) - actor.addSkillMod('expertise_action_line_of_group_buff', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_group_buff_duration_1') - - actor.removeSkillMod('expertise_buff_duration_line_of_group_buff', 15) - actor.removeSkillMod('expertise_aura_maintain', 1) - actor.removeSkillMod('expertise_action_line_of_group_buff', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_group_buff_duration_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_group_buff_duration_1") return diff --git a/scripts/expertise/expertise_of_group_buff_duration_2.py b/scripts/expertise/expertise_of_group_buff_duration_2.py index a8e441bc..3414a208 100644 --- a/scripts/expertise/expertise_of_group_buff_duration_2.py +++ b/scripts/expertise/expertise_of_group_buff_duration_2.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_group_buff_duration_2') - - actor.addSkillMod('expertise_buff_duration_line_of_group_buff', 15) - actor.addSkillMod('expertise_aura_maintain', 1) - actor.addSkillMod('expertise_action_line_of_group_buff', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_group_buff_duration_2') - - actor.removeSkillMod('expertise_buff_duration_line_of_group_buff', 15) - actor.removeSkillMod('expertise_aura_maintain', 1) - actor.removeSkillMod('expertise_action_line_of_group_buff', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_group_buff_duration_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_group_buff_duration_2") return diff --git a/scripts/expertise/expertise_of_heal_cool_1.py b/scripts/expertise/expertise_of_heal_cool_1.py index fe729bcf..9f3a849f 100644 --- a/scripts/expertise/expertise_of_heal_cool_1.py +++ b/scripts/expertise/expertise_of_heal_cool_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_heal_cool_1') - - actor.addSkillMod('expertise_cooldown_line_of_heal', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_heal_cool_1') - - actor.removeSkillMod('expertise_cooldown_line_of_heal', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_heal_cool_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_heal_cool_1") return diff --git a/scripts/expertise/expertise_of_heal_cool_2.py b/scripts/expertise/expertise_of_heal_cool_2.py index 93d3f257..2f5a04ad 100644 --- a/scripts/expertise/expertise_of_heal_cool_2.py +++ b/scripts/expertise/expertise_of_heal_cool_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_heal_cool_2') - - actor.addSkillMod('expertise_cooldown_line_of_heal', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_heal_cool_2') - - actor.removeSkillMod('expertise_cooldown_line_of_heal', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_heal_cool_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_heal_cool_2") return diff --git a/scripts/expertise/expertise_of_heal_dam_1.py b/scripts/expertise/expertise_of_heal_dam_1.py index 5040250a..b9263761 100644 --- a/scripts/expertise/expertise_of_heal_dam_1.py +++ b/scripts/expertise/expertise_of_heal_dam_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_heal_dam_1') - - actor.addSkillMod('expertise_healing_line_of_heal', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_heal_dam_1') - - actor.removeSkillMod('expertise_healing_line_of_heal', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_heal_dam_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_heal_dam_1") return diff --git a/scripts/expertise/expertise_of_heal_dam_2.py b/scripts/expertise/expertise_of_heal_dam_2.py index 40917e3b..2975d55f 100644 --- a/scripts/expertise/expertise_of_heal_dam_2.py +++ b/scripts/expertise/expertise_of_heal_dam_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_heal_dam_2') - - actor.addSkillMod('expertise_healing_line_of_heal', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_heal_dam_2') - - actor.removeSkillMod('expertise_healing_line_of_heal', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_heal_dam_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_heal_dam_2") return diff --git a/scripts/expertise/expertise_of_inspiration_1.py b/scripts/expertise/expertise_of_inspiration_1.py index 8905b42d..201c93dd 100644 --- a/scripts/expertise/expertise_of_inspiration_1.py +++ b/scripts/expertise/expertise_of_inspiration_1.py @@ -1,48 +1,25 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_inspiration_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_inspiration_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('of_inspiration_1') - + if actor.getLevel() >= 26: + actor.addAbility("of_inspiration_1") + if actor.getLevel() >= 34: + actor.addAbility("of_inspiration_2") + if actor.getLevel() >= 48: + actor.addAbility("of_inspiration_3") + if actor.getLevel() >= 62: + actor.addAbility("of_inspiration_4") + if actor.getLevel() >= 76: + actor.addAbility("of_inspiration_5") + if actor.getLevel() >= 90: + actor.addAbility("of_inspiration_6") return def removeAbilities(core, actor, player): - - actor.removeAbility('of_inspiration_1') - + actor.removeAbility("of_inspiration_1") + actor.removeAbility("of_inspiration_2") + actor.removeAbility("of_inspiration_3") + actor.removeAbility("of_inspiration_4") + actor.removeAbility("of_inspiration_5") + actor.removeAbility("of_inspiration_6") return diff --git a/scripts/expertise/expertise_of_last_words_1.py b/scripts/expertise/expertise_of_last_words_1.py index 540a29c7..688c8727 100644 --- a/scripts/expertise/expertise_of_last_words_1.py +++ b/scripts/expertise/expertise_of_last_words_1.py @@ -1,46 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_last_words_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_last_words_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - return def removeAbilities(core, actor, player): - return diff --git a/scripts/expertise/expertise_of_leg_strike_1.py b/scripts/expertise/expertise_of_leg_strike_1.py index 3eb59a01..30612f01 100644 --- a/scripts/expertise/expertise_of_leg_strike_1.py +++ b/scripts/expertise/expertise_of_leg_strike_1.py @@ -1,48 +1,28 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_leg_strike_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_leg_strike_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('of_leg_strike_1') - + if actor.getLevel() >= 4: + actor.addAbility("of_leg_strike_1") + if actor.getLevel() >= 12: + actor.addAbility("of_leg_strike_2") + if actor.getLevel() >= 20: + actor.addAbility("of_leg_strike_3") + if actor.getLevel() >= 30: + actor.addAbility("of_leg_strike_4") + if actor.getLevel() >= 38: + actor.addAbility("of_leg_strike_5") + if actor.getLevel() >= 52: + actor.addAbility("of_leg_strike_6") + if actor.getLevel() >= 62: + actor.addAbility("of_leg_strike_7") return def removeAbilities(core, actor, player): - - actor.removeAbility('of_leg_strike_1') - + actor.removeAbility("of_leg_strike_1") + actor.removeAbility("of_leg_strike_2") + actor.removeAbility("of_leg_strike_3") + actor.removeAbility("of_leg_strike_4") + actor.removeAbility("of_leg_strike_5") + actor.removeAbility("of_leg_strike_6") + actor.removeAbility("of_leg_strike_7") return diff --git a/scripts/expertise/expertise_of_medical_sup_1.py b/scripts/expertise/expertise_of_medical_sup_1.py index 06c7287d..fe15a79d 100644 --- a/scripts/expertise/expertise_of_medical_sup_1.py +++ b/scripts/expertise/expertise_of_medical_sup_1.py @@ -1,48 +1,25 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_medical_sup_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_medical_sup_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('of_medical_sup_1') - + if actor.getLevel() >= 10: + actor.addAbility("of_medical_sup_1") + if actor.getLevel() >= 34: + actor.addAbility("of_medical_sup_2") + if actor.getLevel() >= 48: + actor.addAbility("of_medical_sup_3") + if actor.getLevel() >= 62: + actor.addAbility("of_medical_sup_4") + if actor.getLevel() >= 76: + actor.addAbility("of_medical_sup_5") + if actor.getLevel() >= 90: + actor.addAbility("of_medical_sup_6") return def removeAbilities(core, actor, player): - - actor.removeAbility('of_medical_sup_1') - + actor.removeAbility("of_medical_sup_1") + actor.removeAbility("of_medical_sup_2") + actor.removeAbility("of_medical_sup_3") + actor.removeAbility("of_medical_sup_4") + actor.removeAbility("of_medical_sup_5") + actor.removeAbility("of_medical_sup_6") return diff --git a/scripts/expertise/expertise_of_paint_dam_1.py b/scripts/expertise/expertise_of_paint_dam_1.py index ba5725e3..9ba31a9b 100644 --- a/scripts/expertise/expertise_of_paint_dam_1.py +++ b/scripts/expertise/expertise_of_paint_dam_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_paint_dam_1') - - actor.addSkillMod('expertise_damage_line_of_paint', 10) - actor.addSkillMod('expertise_action_line_of_paint', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_paint_dam_1') - - actor.removeSkillMod('expertise_damage_line_of_paint', 10) - actor.removeSkillMod('expertise_action_line_of_paint', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_paint_dam_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_paint_dam_1") return diff --git a/scripts/expertise/expertise_of_paint_dam_2.py b/scripts/expertise/expertise_of_paint_dam_2.py index 12995cae..7733a8d2 100644 --- a/scripts/expertise/expertise_of_paint_dam_2.py +++ b/scripts/expertise/expertise_of_paint_dam_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_paint_dam_2') - - actor.addSkillMod('expertise_damage_line_of_paint', 10) - actor.addSkillMod('expertise_action_line_of_paint', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_paint_dam_2') - - actor.removeSkillMod('expertise_damage_line_of_paint', 10) - actor.removeSkillMod('expertise_action_line_of_paint', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_paint_dam_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_paint_dam_2") return diff --git a/scripts/expertise/expertise_of_paint_debuff_1.py b/scripts/expertise/expertise_of_paint_debuff_1.py index 5b2ac0cd..f3529a45 100644 --- a/scripts/expertise/expertise_of_paint_debuff_1.py +++ b/scripts/expertise/expertise_of_paint_debuff_1.py @@ -1,48 +1,31 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_paint_debuff_1') - - actor.addSkillMod('expertise_of_adv_paint_debuff', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_paint_debuff_1') - - actor.removeSkillMod('expertise_of_adv_paint_debuff', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + if actor.getLevel() >= 4: + actor.addAbility("of_adv_paint_debuff_1") + if actor.getLevel() >= 12: + actor.addAbility("of_adv_paint_debuff_2") + if actor.getLevel() >= 20: + actor.addAbility("of_adv_paint_debuff_3") + if actor.getLevel() >= 30: + actor.addAbility("of_adv_paint_debuff_4") + if actor.getLevel() >= 38: + actor.addAbility("of_adv_paint_debuff_5") + if actor.getLevel() >= 52: + actor.addAbility("of_adv_paint_debuff_6") + if actor.getLevel() >= 62: + actor.addAbility("of_adv_paint_debuff_7") + if actor.getLevel() >= 72: + actor.addAbility("of_adv_paint_debuff_8") return def removeAbilities(core, actor, player): - - + actor.removeAbility("of_adv_paint_debuff_1") + actor.removeAbility("of_adv_paint_debuff_2") + actor.removeAbility("of_adv_paint_debuff_3") + actor.removeAbility("of_adv_paint_debuff_4") + actor.removeAbility("of_adv_paint_debuff_5") + actor.removeAbility("of_adv_paint_debuff_6") + actor.removeAbility("of_adv_paint_debuff_7") + actor.removeAbility("of_adv_paint_debuff_8") return diff --git a/scripts/expertise/expertise_of_paint_expose_1.py b/scripts/expertise/expertise_of_paint_expose_1.py index 91c6d84b..561882fd 100644 --- a/scripts/expertise/expertise_of_paint_expose_1.py +++ b/scripts/expertise/expertise_of_paint_expose_1.py @@ -1,48 +1,31 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_paint_expose_1') - - actor.addSkillMod('expertise_of_adv_paint_expose', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_paint_expose_1') - - actor.removeSkillMod('expertise_of_adv_paint_expose', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + if actor.getLevel() >= 4: + actor.addAbility("of_adv_paint_expose_1") + if actor.getLevel() >= 12: + actor.addAbility("of_adv_paint_expose_2") + if actor.getLevel() >= 20: + actor.addAbility("of_adv_paint_expose_3") + if actor.getLevel() >= 30: + actor.addAbility("of_adv_paint_expose_4") + if actor.getLevel() >= 38: + actor.addAbility("of_adv_paint_expose_5") + if actor.getLevel() >= 52: + actor.addAbility("of_adv_paint_expose_6") + if actor.getLevel() >= 62: + actor.addAbility("of_adv_paint_expose_7") + if actor.getLevel() >= 72: + actor.addAbility("of_adv_paint_expose_8") return def removeAbilities(core, actor, player): - - + actor.removeAbility("of_adv_paint_expose_1") + actor.removeAbility("of_adv_paint_expose_2") + actor.removeAbility("of_adv_paint_expose_3") + actor.removeAbility("of_adv_paint_expose_4") + actor.removeAbility("of_adv_paint_expose_5") + actor.removeAbility("of_adv_paint_expose_6") + actor.removeAbility("of_adv_paint_expose_7") + actor.removeAbility("of_adv_paint_expose_8") return diff --git a/scripts/expertise/expertise_of_pistol_bleed.py b/scripts/expertise/expertise_of_pistol_bleed.py index 2c9835a0..38f923f5 100644 --- a/scripts/expertise/expertise_of_pistol_bleed.py +++ b/scripts/expertise/expertise_of_pistol_bleed.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_pistol_bleed') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_pistol_bleed') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('of_pistol_bleed') - + actor.addAbility("of_pistol_bleed") return def removeAbilities(core, actor, player): - - actor.removeAbility('of_pistol_bleed') - + actor.removeAbility("of_pistol_bleed") return diff --git a/scripts/expertise/expertise_of_pistol_crit_1.py b/scripts/expertise/expertise_of_pistol_crit_1.py index bc787fd9..7e944647 100644 --- a/scripts/expertise/expertise_of_pistol_crit_1.py +++ b/scripts/expertise/expertise_of_pistol_crit_1.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_pistol_crit_1') - - actor.addSkillMod('expertise_undiminished_critical_pistol', 5) - actor.addSkillMod('expertise_undiminished_critical_carbine', 5) - actor.addSkillMod('expertise_range_bonus_pistol', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_pistol_crit_1') - - actor.removeSkillMod('expertise_undiminished_critical_pistol', 5) - actor.removeSkillMod('expertise_undiminished_critical_carbine', 5) - actor.removeSkillMod('expertise_range_bonus_pistol', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_pistol_crit_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_pistol_crit_1") return diff --git a/scripts/expertise/expertise_of_pistol_crit_2.py b/scripts/expertise/expertise_of_pistol_crit_2.py index 8d0101ba..d36a18b3 100644 --- a/scripts/expertise/expertise_of_pistol_crit_2.py +++ b/scripts/expertise/expertise_of_pistol_crit_2.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_pistol_crit_2') - - actor.addSkillMod('expertise_undiminished_critical_pistol', 5) - actor.addSkillMod('expertise_undiminished_critical_carbine', 5) - actor.addSkillMod('expertise_range_bonus_pistol', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_pistol_crit_2') - - actor.removeSkillMod('expertise_undiminished_critical_pistol', 5) - actor.removeSkillMod('expertise_undiminished_critical_carbine', 5) - actor.removeSkillMod('expertise_range_bonus_pistol', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_pistol_crit_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_pistol_crit_2") return diff --git a/scripts/expertise/expertise_of_pistol_dam_1.py b/scripts/expertise/expertise_of_pistol_dam_1.py index dc46dd87..877ac063 100644 --- a/scripts/expertise/expertise_of_pistol_dam_1.py +++ b/scripts/expertise/expertise_of_pistol_dam_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_pistol_dam_1') - - actor.addSkillMod('expertise_damage_weapon_1', 2) - actor.addSkillMod('expertise_damage_weapon_2', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_pistol_dam_1') - - actor.removeSkillMod('expertise_damage_weapon_1', 2) - actor.removeSkillMod('expertise_damage_weapon_2', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_pistol_dam_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_pistol_dam_1") return diff --git a/scripts/expertise/expertise_of_pistol_dam_2.py b/scripts/expertise/expertise_of_pistol_dam_2.py index efd000de..e01f6b55 100644 --- a/scripts/expertise/expertise_of_pistol_dam_2.py +++ b/scripts/expertise/expertise_of_pistol_dam_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_pistol_dam_2') - - actor.addSkillMod('expertise_damage_weapon_1', 2) - actor.addSkillMod('expertise_damage_weapon_2', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_pistol_dam_2') - - actor.removeSkillMod('expertise_damage_weapon_1', 2) - actor.removeSkillMod('expertise_damage_weapon_2', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_pistol_dam_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_pistol_dam_2") return diff --git a/scripts/expertise/expertise_of_pistol_dam_3.py b/scripts/expertise/expertise_of_pistol_dam_3.py index d433e2e7..8762ecfa 100644 --- a/scripts/expertise/expertise_of_pistol_dam_3.py +++ b/scripts/expertise/expertise_of_pistol_dam_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_pistol_dam_3') - - actor.addSkillMod('expertise_damage_weapon_1', 2) - actor.addSkillMod('expertise_damage_weapon_2', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_pistol_dam_3') - - actor.removeSkillMod('expertise_damage_weapon_1', 2) - actor.removeSkillMod('expertise_damage_weapon_2', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_pistol_dam_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_pistol_dam_3") return diff --git a/scripts/expertise/expertise_of_pistol_dam_4.py b/scripts/expertise/expertise_of_pistol_dam_4.py index a9dc63c6..478313ef 100644 --- a/scripts/expertise/expertise_of_pistol_dam_4.py +++ b/scripts/expertise/expertise_of_pistol_dam_4.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_pistol_dam_4') - - actor.addSkillMod('expertise_damage_weapon_1', 2) - actor.addSkillMod('expertise_damage_weapon_2', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_pistol_dam_4') - - actor.removeSkillMod('expertise_damage_weapon_1', 2) - actor.removeSkillMod('expertise_damage_weapon_2', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_pistol_dam_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_pistol_dam_4") return diff --git a/scripts/expertise/expertise_of_precision_1.py b/scripts/expertise/expertise_of_precision_1.py index 8933a340..fb5f45a2 100644 --- a/scripts/expertise/expertise_of_precision_1.py +++ b/scripts/expertise/expertise_of_precision_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_precision_1') - - actor.addSkillMod('precision_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_precision_1') - - actor.removeSkillMod('precision_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_precision_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_precision_1") return diff --git a/scripts/expertise/expertise_of_precision_2.py b/scripts/expertise/expertise_of_precision_2.py index 0d2f5a03..95ba3853 100644 --- a/scripts/expertise/expertise_of_precision_2.py +++ b/scripts/expertise/expertise_of_precision_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_precision_2') - - actor.addSkillMod('precision_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_precision_2') - - actor.removeSkillMod('precision_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_precision_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_precision_2") return diff --git a/scripts/expertise/expertise_of_precision_3.py b/scripts/expertise/expertise_of_precision_3.py index 78b48b4e..cfb27438 100644 --- a/scripts/expertise/expertise_of_precision_3.py +++ b/scripts/expertise/expertise_of_precision_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_precision_3') - - actor.addSkillMod('precision_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_precision_3') - - actor.removeSkillMod('precision_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_precision_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_precision_3") return diff --git a/scripts/expertise/expertise_of_precision_4.py b/scripts/expertise/expertise_of_precision_4.py index 04824268..9ca52db1 100644 --- a/scripts/expertise/expertise_of_precision_4.py +++ b/scripts/expertise/expertise_of_precision_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_precision_4') - - actor.addSkillMod('precision_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_precision_4') - - actor.removeSkillMod('precision_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_precision_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_precision_4") return diff --git a/scripts/expertise/expertise_of_purge_1.py b/scripts/expertise/expertise_of_purge_1.py index c6c4bdfa..36e8c855 100644 --- a/scripts/expertise/expertise_of_purge_1.py +++ b/scripts/expertise/expertise_of_purge_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_purge_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_purge_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('of_purge_1') - + actor.addAbility("expertise_of_purge_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('of_purge_1') - + actor.removeAbility("expertise_of_purge_1") return diff --git a/scripts/expertise/expertise_of_reinforcements_1.py b/scripts/expertise/expertise_of_reinforcements_1.py index 7c68a80f..06aa5cad 100644 --- a/scripts/expertise/expertise_of_reinforcements_1.py +++ b/scripts/expertise/expertise_of_reinforcements_1.py @@ -1,48 +1,22 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_reinforcements_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_reinforcements_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('of_reinforcements_1') - + if actor.getLevel() >= 10: + actor.addAbility("of_reinforcements_1") + if actor.getLevel() >= 34: + actor.addAbility("of_reinforcements_2") + if actor.getLevel() >= 48: + actor.addAbility("of_reinforcements_3") + if actor.getLevel() >= 62: + actor.addAbility("of_reinforcements_4") + if actor.getLevel() >= 76: + actor.addAbility("of_reinforcements_5") return def removeAbilities(core, actor, player): - - actor.removeAbility('of_reinforcements_1') - + actor.removeAbility("of_reinforcements_1") + actor.removeAbility("of_reinforcements_2") + actor.removeAbility("of_reinforcements_3") + actor.removeAbility("of_reinforcements_4") + actor.removeAbility("of_reinforcements_5") return diff --git a/scripts/expertise/expertise_of_scatter_1.py b/scripts/expertise/expertise_of_scatter_1.py index e9ce9565..85ab0ef8 100644 --- a/scripts/expertise/expertise_of_scatter_1.py +++ b/scripts/expertise/expertise_of_scatter_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_scatter_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_scatter_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('of_scatter_1') - + actor.addAbility("of_scatter_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('of_scatter_1') - + actor.removeAbility("of_scatter_1") return diff --git a/scripts/expertise/expertise_of_stamina_1.py b/scripts/expertise/expertise_of_stamina_1.py index deaa1e13..73155458 100644 --- a/scripts/expertise/expertise_of_stamina_1.py +++ b/scripts/expertise/expertise_of_stamina_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_stamina_1') - - actor.addSkillMod('stamina_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_stamina_1') - - actor.removeSkillMod('stamina_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_stamina_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_stamina_1") return diff --git a/scripts/expertise/expertise_of_stamina_2.py b/scripts/expertise/expertise_of_stamina_2.py index 3dcfda6b..1cc498d9 100644 --- a/scripts/expertise/expertise_of_stamina_2.py +++ b/scripts/expertise/expertise_of_stamina_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_stamina_2') - - actor.addSkillMod('stamina_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_stamina_2') - - actor.removeSkillMod('stamina_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_stamina_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_stamina_2") return diff --git a/scripts/expertise/expertise_of_stamina_3.py b/scripts/expertise/expertise_of_stamina_3.py index fa6810b5..63826671 100644 --- a/scripts/expertise/expertise_of_stamina_3.py +++ b/scripts/expertise/expertise_of_stamina_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_stamina_3') - - actor.addSkillMod('stamina_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_stamina_3') - - actor.removeSkillMod('stamina_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_stamina_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_stamina_3") return diff --git a/scripts/expertise/expertise_of_stamina_4.py b/scripts/expertise/expertise_of_stamina_4.py index 94dbeab3..22e5cea3 100644 --- a/scripts/expertise/expertise_of_stamina_4.py +++ b/scripts/expertise/expertise_of_stamina_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_stamina_4') - - actor.addSkillMod('stamina_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_stamina_4') - - actor.removeSkillMod('stamina_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_stamina_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_stamina_4") return diff --git a/scripts/expertise/expertise_of_stimulator_1.py b/scripts/expertise/expertise_of_stimulator_1.py index 6e66f3b4..10ab1e90 100644 --- a/scripts/expertise/expertise_of_stimulator_1.py +++ b/scripts/expertise/expertise_of_stimulator_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_stimulator_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_stimulator_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('of_stimulator_1') - + actor.addAbility("of_stimulator_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('of_stimulator_1') - + actor.removeAbility("of_stimulator_1") return diff --git a/scripts/expertise/expertise_of_strength_1.py b/scripts/expertise/expertise_of_strength_1.py index b2fa95d0..3decd9c7 100644 --- a/scripts/expertise/expertise_of_strength_1.py +++ b/scripts/expertise/expertise_of_strength_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_strength_1') - - actor.addSkillMod('strength_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_strength_1') - - actor.removeSkillMod('strength_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_strength_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_strength_1") return diff --git a/scripts/expertise/expertise_of_strength_2.py b/scripts/expertise/expertise_of_strength_2.py index 8a05bcc3..676d8d92 100644 --- a/scripts/expertise/expertise_of_strength_2.py +++ b/scripts/expertise/expertise_of_strength_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_strength_2') - - actor.addSkillMod('strength_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_strength_2') - - actor.removeSkillMod('strength_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_strength_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_strength_2") return diff --git a/scripts/expertise/expertise_of_strength_3.py b/scripts/expertise/expertise_of_strength_3.py index 6dbddcf1..d6780308 100644 --- a/scripts/expertise/expertise_of_strength_3.py +++ b/scripts/expertise/expertise_of_strength_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_strength_3') - - actor.addSkillMod('strength_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_strength_3') - - actor.removeSkillMod('strength_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_strength_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_strength_3") return diff --git a/scripts/expertise/expertise_of_strength_4.py b/scripts/expertise/expertise_of_strength_4.py index 067d377a..4a59b20d 100644 --- a/scripts/expertise/expertise_of_strength_4.py +++ b/scripts/expertise/expertise_of_strength_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_strength_4') - - actor.addSkillMod('strength_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_strength_4') - - actor.removeSkillMod('strength_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_strength_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_strength_4") return diff --git a/scripts/expertise/expertise_of_sup_cool_1.py b/scripts/expertise/expertise_of_sup_cool_1.py index aaa7224b..2e982ac3 100644 --- a/scripts/expertise/expertise_of_sup_cool_1.py +++ b/scripts/expertise/expertise_of_sup_cool_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_sup_cool_1') - - actor.addSkillMod('expertise_cooldown_line_of_sup', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_sup_cool_1') - - actor.removeSkillMod('expertise_cooldown_line_of_sup', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_sup_cool_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_sup_cool_1") return diff --git a/scripts/expertise/expertise_of_sup_cool_2.py b/scripts/expertise/expertise_of_sup_cool_2.py index 8beb380c..1d469433 100644 --- a/scripts/expertise/expertise_of_sup_cool_2.py +++ b/scripts/expertise/expertise_of_sup_cool_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_sup_cool_2') - - actor.addSkillMod('expertise_cooldown_line_of_sup', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_sup_cool_2') - - actor.removeSkillMod('expertise_cooldown_line_of_sup', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_sup_cool_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_sup_cool_2") return diff --git a/scripts/expertise/expertise_of_sup_cool_3.py b/scripts/expertise/expertise_of_sup_cool_3.py index 9e6e8c8d..32064d76 100644 --- a/scripts/expertise/expertise_of_sup_cool_3.py +++ b/scripts/expertise/expertise_of_sup_cool_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_sup_cool_3') - - actor.addSkillMod('expertise_cooldown_line_of_sup', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_sup_cool_3') - - actor.removeSkillMod('expertise_cooldown_line_of_sup', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_sup_cool_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_sup_cool_3") return diff --git a/scripts/expertise/expertise_of_sup_cool_4.py b/scripts/expertise/expertise_of_sup_cool_4.py index 083f92ab..3a2418dc 100644 --- a/scripts/expertise/expertise_of_sup_cool_4.py +++ b/scripts/expertise/expertise_of_sup_cool_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_sup_cool_4') - - actor.addSkillMod('expertise_cooldown_line_of_sup', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_sup_cool_4') - - actor.removeSkillMod('expertise_cooldown_line_of_sup', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_sup_cool_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_sup_cool_4") return diff --git a/scripts/expertise/expertise_of_sure_act_1.py b/scripts/expertise/expertise_of_sure_act_1.py index 14e31356..5d4f27cd 100644 --- a/scripts/expertise/expertise_of_sure_act_1.py +++ b/scripts/expertise/expertise_of_sure_act_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_sure_act_1') - - actor.addSkillMod('expertise_action_line_of_sure', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_sure_act_1') - - actor.removeSkillMod('expertise_action_line_of_sure', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_sure_act_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_sure_act_1") return diff --git a/scripts/expertise/expertise_of_sure_act_2.py b/scripts/expertise/expertise_of_sure_act_2.py index 441a8ce7..208d6135 100644 --- a/scripts/expertise/expertise_of_sure_act_2.py +++ b/scripts/expertise/expertise_of_sure_act_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_sure_act_2') - - actor.addSkillMod('expertise_action_line_of_sure', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_sure_act_2') - - actor.removeSkillMod('expertise_action_line_of_sure', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_sure_act_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_sure_act_2") return diff --git a/scripts/expertise/expertise_of_sure_act_3.py b/scripts/expertise/expertise_of_sure_act_3.py index 908d9e13..d66005c7 100644 --- a/scripts/expertise/expertise_of_sure_act_3.py +++ b/scripts/expertise/expertise_of_sure_act_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_sure_act_3') - - actor.addSkillMod('expertise_action_line_of_sure', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_sure_act_3') - - actor.removeSkillMod('expertise_action_line_of_sure', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_sure_act_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_sure_act_3") return diff --git a/scripts/expertise/expertise_of_sure_act_4.py b/scripts/expertise/expertise_of_sure_act_4.py index b876afe3..75485c39 100644 --- a/scripts/expertise/expertise_of_sure_act_4.py +++ b/scripts/expertise/expertise_of_sure_act_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_sure_act_4') - - actor.addSkillMod('expertise_action_line_of_sure', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_sure_act_4') - - actor.removeSkillMod('expertise_action_line_of_sure', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_sure_act_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_sure_act_4") return diff --git a/scripts/expertise/expertise_of_sure_dam_1.py b/scripts/expertise/expertise_of_sure_dam_1.py index 4a18bcb2..8acfba2d 100644 --- a/scripts/expertise/expertise_of_sure_dam_1.py +++ b/scripts/expertise/expertise_of_sure_dam_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_sure_dam_1') - - actor.addSkillMod('expertise_damage_line_of_sure', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_sure_dam_1') - - actor.removeSkillMod('expertise_damage_line_of_sure', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_sure_dam_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_sure_dam_1") return diff --git a/scripts/expertise/expertise_of_sure_dam_2.py b/scripts/expertise/expertise_of_sure_dam_2.py index 9d199519..740150f1 100644 --- a/scripts/expertise/expertise_of_sure_dam_2.py +++ b/scripts/expertise/expertise_of_sure_dam_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_sure_dam_2') - - actor.addSkillMod('expertise_damage_line_of_sure', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_sure_dam_2') - - actor.removeSkillMod('expertise_damage_line_of_sure', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_sure_dam_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_sure_dam_2") return diff --git a/scripts/expertise/expertise_of_sure_dam_3.py b/scripts/expertise/expertise_of_sure_dam_3.py index f39ac985..05c3d330 100644 --- a/scripts/expertise/expertise_of_sure_dam_3.py +++ b/scripts/expertise/expertise_of_sure_dam_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_sure_dam_3') - - actor.addSkillMod('expertise_damage_line_of_sure', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_sure_dam_3') - - actor.removeSkillMod('expertise_damage_line_of_sure', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_of_sure_dam_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_of_sure_dam_3") return diff --git a/scripts/expertise/expertise_of_tactical_sup_1.py b/scripts/expertise/expertise_of_tactical_sup_1.py index 451c6fbe..a3434b0e 100644 --- a/scripts/expertise/expertise_of_tactical_sup_1.py +++ b/scripts/expertise/expertise_of_tactical_sup_1.py @@ -1,44 +1,25 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_tactical_sup_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_tactical_sup_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - + if actor.getLevel() >= 10: + actor.addAbility("of_tactical_sup_1") + if actor.getLevel() >= 34: + actor.addAbility("of_tactical_sup_2") + if actor.getLevel() >= 48: + actor.addAbility("of_tactical_sup_3") + if actor.getLevel() >= 62: + actor.addAbility("of_tactical_sup_4") + if actor.getLevel() >= 76: + actor.addAbility("of_tactical_sup_5") + if actor.getLevel() >= 90: + actor.addAbility("of_tactical_sup_6") return def removeAbilities(core, actor, player): - + actor.removeAbility("of_tactical_sup_1") + actor.removeAbility("of_tactical_sup_2") + actor.removeAbility("of_tactical_sup_3") + actor.removeAbility("of_tactical_sup_4") + actor.removeAbility("of_tactical_sup_5") + actor.removeAbility("of_tactical_sup_6") return diff --git a/scripts/expertise/expertise_of_vortex_1.py b/scripts/expertise/expertise_of_vortex_1.py index e2a24f55..a4f6f04c 100644 --- a/scripts/expertise/expertise_of_vortex_1.py +++ b/scripts/expertise/expertise_of_vortex_1.py @@ -1,48 +1,22 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.addSkill('expertise_of_vortex_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'officer_1a': - return - - actor.removeSkill('expertise_of_vortex_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('of_vortex_1') - + if actor.getLevel() >= 26: + actor.addAbility("of_vortex_1") + if actor.getLevel() >= 34: + actor.addAbility("of_vortex_2") + if actor.getLevel() >= 48: + actor.addAbility("of_vortex_3") + if actor.getLevel() >= 62: + actor.addAbility("of_vortex_4") + if actor.getLevel() >= 76: + actor.addAbility("of_vortex_5") return def removeAbilities(core, actor, player): - - actor.removeAbility('of_vortex_1') - + actor.removeAbility("of_vortex_1") + actor.removeAbility("of_vortex_2") + actor.removeAbility("of_vortex_3") + actor.removeAbility("of_vortex_4") + actor.removeAbility("of_vortex_5") return diff --git a/scripts/expertise/expertise_sm_general_bad_odds_1.py b/scripts/expertise/expertise_sm_general_bad_odds_1.py index e2c44993..fa70a2fc 100644 --- a/scripts/expertise/expertise_sm_general_bad_odds_1.py +++ b/scripts/expertise/expertise_sm_general_bad_odds_1.py @@ -1,48 +1,22 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_bad_odds_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_bad_odds_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sm_bad_odds_1') - + if actor.getLevel() >= 26: + actor.addAbility("sm_bad_odds_1") + if actor.getLevel() >= 34: + actor.addAbility("sm_bad_odds_2") + if actor.getLevel() >= 48: + actor.addAbility("sm_bad_odds_3") + if actor.getLevel() >= 62: + actor.addAbility("sm_bad_odds_4") + if actor.getLevel() >= 76: + actor.addAbility("sm_bad_odds_5") return def removeAbilities(core, actor, player): - - actor.removeAbility('sm_bad_odds_1') - + actor.removeAbility("sm_bad_odds_1") + actor.removeAbility("sm_bad_odds_2") + actor.removeAbility("sm_bad_odds_3") + actor.removeAbility("sm_bad_odds_4") + actor.removeAbility("sm_bad_odds_5") return diff --git a/scripts/expertise/expertise_sm_general_break_the_deal_1.py b/scripts/expertise/expertise_sm_general_break_the_deal_1.py index f12dfb8f..757e75f9 100644 --- a/scripts/expertise/expertise_sm_general_break_the_deal_1.py +++ b/scripts/expertise/expertise_sm_general_break_the_deal_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_break_the_deal_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_break_the_deal_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sm_break_the_deal') - + actor.addAbility("sm_break_the_deal") return def removeAbilities(core, actor, player): - - actor.removeAbility('sm_break_the_deal') - + actor.removeAbility("sm_break_the_deal") return diff --git a/scripts/expertise/expertise_sm_general_double_deal_1.py b/scripts/expertise/expertise_sm_general_double_deal_1.py index 237b1cbd..8dbe17db 100644 --- a/scripts/expertise/expertise_sm_general_double_deal_1.py +++ b/scripts/expertise/expertise_sm_general_double_deal_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_double_deal_1') - - actor.addSkillMod('expertise_double_deal_chance', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_double_deal_1') - - actor.removeSkillMod('expertise_double_deal_chance', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_double_deal_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_double_deal_1") return diff --git a/scripts/expertise/expertise_sm_general_double_deal_2.py b/scripts/expertise/expertise_sm_general_double_deal_2.py index f5b3e464..5215636e 100644 --- a/scripts/expertise/expertise_sm_general_double_deal_2.py +++ b/scripts/expertise/expertise_sm_general_double_deal_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_double_deal_2') - - actor.addSkillMod('expertise_double_deal_chance', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_double_deal_2') - - actor.removeSkillMod('expertise_double_deal_chance', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_double_deal_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_double_deal_2") return diff --git a/scripts/expertise/expertise_sm_general_elbow_grease_1.py b/scripts/expertise/expertise_sm_general_elbow_grease_1.py index 92f55ca2..b0ff55ad 100644 --- a/scripts/expertise/expertise_sm_general_elbow_grease_1.py +++ b/scripts/expertise/expertise_sm_general_elbow_grease_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_elbow_grease_1') - - actor.addSkillMod('expertise_action_weapon_melee', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_elbow_grease_1') - - actor.removeSkillMod('expertise_action_weapon_melee', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_elbow_grease_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_elbow_grease_1") return diff --git a/scripts/expertise/expertise_sm_general_end_of_the_line_1.py b/scripts/expertise/expertise_sm_general_end_of_the_line_1.py index 3afc6b0b..05ec2f19 100644 --- a/scripts/expertise/expertise_sm_general_end_of_the_line_1.py +++ b/scripts/expertise/expertise_sm_general_end_of_the_line_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_end_of_the_line_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_end_of_the_line_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sm_end_of_the_line') - + actor.addAbility("sm_end_of_the_line") return def removeAbilities(core, actor, player): - - actor.removeAbility('sm_end_of_the_line') - + actor.removeAbility("sm_end_of_the_line") return diff --git a/scripts/expertise/expertise_sm_general_enhanced_luck_1.py b/scripts/expertise/expertise_sm_general_enhanced_luck_1.py index 3446d7af..347e28e3 100644 --- a/scripts/expertise/expertise_sm_general_enhanced_luck_1.py +++ b/scripts/expertise/expertise_sm_general_enhanced_luck_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_enhanced_luck_1') - - actor.addSkillMod('strength_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_enhanced_luck_1') - - actor.removeSkillMod('strength_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_enhanced_luck_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_enhanced_luck_1") return diff --git a/scripts/expertise/expertise_sm_general_enhanced_luck_2.py b/scripts/expertise/expertise_sm_general_enhanced_luck_2.py index f0402408..2f9d1747 100644 --- a/scripts/expertise/expertise_sm_general_enhanced_luck_2.py +++ b/scripts/expertise/expertise_sm_general_enhanced_luck_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_enhanced_luck_2') - - actor.addSkillMod('strength_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_enhanced_luck_2') - - actor.removeSkillMod('strength_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_enhanced_luck_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_enhanced_luck_2") return diff --git a/scripts/expertise/expertise_sm_general_enhanced_luck_3.py b/scripts/expertise/expertise_sm_general_enhanced_luck_3.py index dc8fb800..ad637ef1 100644 --- a/scripts/expertise/expertise_sm_general_enhanced_luck_3.py +++ b/scripts/expertise/expertise_sm_general_enhanced_luck_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_enhanced_luck_3') - - actor.addSkillMod('strength_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_enhanced_luck_3') - - actor.removeSkillMod('strength_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_enhanced_luck_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_enhanced_luck_3") return diff --git a/scripts/expertise/expertise_sm_general_enhanced_luck_4.py b/scripts/expertise/expertise_sm_general_enhanced_luck_4.py index 6c844743..acbe531d 100644 --- a/scripts/expertise/expertise_sm_general_enhanced_luck_4.py +++ b/scripts/expertise/expertise_sm_general_enhanced_luck_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_enhanced_luck_4') - - actor.addSkillMod('strength_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_enhanced_luck_4') - - actor.removeSkillMod('strength_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_enhanced_luck_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_enhanced_luck_4") return diff --git a/scripts/expertise/expertise_sm_general_enhanced_precision_1.py b/scripts/expertise/expertise_sm_general_enhanced_precision_1.py index 9a865689..959579d6 100644 --- a/scripts/expertise/expertise_sm_general_enhanced_precision_1.py +++ b/scripts/expertise/expertise_sm_general_enhanced_precision_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_enhanced_precision_1') - - actor.addSkillMod('agility_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_enhanced_precision_1') - - actor.removeSkillMod('agility_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_enhanced_precision_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_enhanced_precision_1") return diff --git a/scripts/expertise/expertise_sm_general_enhanced_precision_2.py b/scripts/expertise/expertise_sm_general_enhanced_precision_2.py index dda076b0..a50e08ba 100644 --- a/scripts/expertise/expertise_sm_general_enhanced_precision_2.py +++ b/scripts/expertise/expertise_sm_general_enhanced_precision_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_enhanced_precision_2') - - actor.addSkillMod('agility_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_enhanced_precision_2') - - actor.removeSkillMod('agility_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_enhanced_precision_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_enhanced_precision_2") return diff --git a/scripts/expertise/expertise_sm_general_enhanced_precision_3.py b/scripts/expertise/expertise_sm_general_enhanced_precision_3.py index 3d93777f..58c40a83 100644 --- a/scripts/expertise/expertise_sm_general_enhanced_precision_3.py +++ b/scripts/expertise/expertise_sm_general_enhanced_precision_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_enhanced_precision_3') - - actor.addSkillMod('agility_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_enhanced_precision_3') - - actor.removeSkillMod('agility_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_enhanced_precision_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_enhanced_precision_3") return diff --git a/scripts/expertise/expertise_sm_general_enhanced_precision_4.py b/scripts/expertise/expertise_sm_general_enhanced_precision_4.py index 3aa85853..938574a4 100644 --- a/scripts/expertise/expertise_sm_general_enhanced_precision_4.py +++ b/scripts/expertise/expertise_sm_general_enhanced_precision_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_enhanced_precision_4') - - actor.addSkillMod('agility_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_enhanced_precision_4') - - actor.removeSkillMod('agility_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_enhanced_precision_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_enhanced_precision_4") return diff --git a/scripts/expertise/expertise_sm_general_gun_oil_1.py b/scripts/expertise/expertise_sm_general_gun_oil_1.py index f71e62d5..618b2f14 100644 --- a/scripts/expertise/expertise_sm_general_gun_oil_1.py +++ b/scripts/expertise/expertise_sm_general_gun_oil_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_gun_oil_1') - - actor.addSkillMod('expertise_action_weapon_2', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_gun_oil_1') - - actor.removeSkillMod('expertise_action_weapon_2', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_gun_oil_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_gun_oil_1") return diff --git a/scripts/expertise/expertise_sm_general_hair_trigger_1.py b/scripts/expertise/expertise_sm_general_hair_trigger_1.py index 0bc61fb4..981958f2 100644 --- a/scripts/expertise/expertise_sm_general_hair_trigger_1.py +++ b/scripts/expertise/expertise_sm_general_hair_trigger_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_hair_trigger_1') - - actor.addSkillMod('expertise_action_line_sm_dm', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_hair_trigger_1') - - actor.removeSkillMod('expertise_action_line_sm_dm', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_hair_trigger_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_hair_trigger_1") return diff --git a/scripts/expertise/expertise_sm_general_hair_trigger_2.py b/scripts/expertise/expertise_sm_general_hair_trigger_2.py index 9dc7f200..0e8537b5 100644 --- a/scripts/expertise/expertise_sm_general_hair_trigger_2.py +++ b/scripts/expertise/expertise_sm_general_hair_trigger_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_hair_trigger_2') - - actor.addSkillMod('expertise_action_line_sm_dm', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_hair_trigger_2') - - actor.removeSkillMod('expertise_action_line_sm_dm', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_hair_trigger_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_hair_trigger_2") return diff --git a/scripts/expertise/expertise_sm_general_hair_trigger_3.py b/scripts/expertise/expertise_sm_general_hair_trigger_3.py index 0d81af85..9e3f61fc 100644 --- a/scripts/expertise/expertise_sm_general_hair_trigger_3.py +++ b/scripts/expertise/expertise_sm_general_hair_trigger_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_hair_trigger_3') - - actor.addSkillMod('expertise_action_line_sm_dm', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_hair_trigger_3') - - actor.removeSkillMod('expertise_action_line_sm_dm', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_hair_trigger_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_hair_trigger_3") return diff --git a/scripts/expertise/expertise_sm_general_hair_trigger_4.py b/scripts/expertise/expertise_sm_general_hair_trigger_4.py index 5309084c..78108d29 100644 --- a/scripts/expertise/expertise_sm_general_hair_trigger_4.py +++ b/scripts/expertise/expertise_sm_general_hair_trigger_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_hair_trigger_4') - - actor.addSkillMod('expertise_action_line_sm_dm', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_hair_trigger_4') - - actor.removeSkillMod('expertise_action_line_sm_dm', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_hair_trigger_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_hair_trigger_4") return diff --git a/scripts/expertise/expertise_sm_general_hammer_fanning_1.py b/scripts/expertise/expertise_sm_general_hammer_fanning_1.py index 8108302d..d0a970f5 100644 --- a/scripts/expertise/expertise_sm_general_hammer_fanning_1.py +++ b/scripts/expertise/expertise_sm_general_hammer_fanning_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_hammer_fanning_1') - - actor.addSkillMod('expertise_sm_ranged_shot_proc', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_hammer_fanning_1') - - actor.removeSkillMod('expertise_sm_ranged_shot_proc', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_hammer_fanning_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_hammer_fanning_1") return diff --git a/scripts/expertise/expertise_sm_general_hammer_fanning_2.py b/scripts/expertise/expertise_sm_general_hammer_fanning_2.py index d15065e5..9d157ddb 100644 --- a/scripts/expertise/expertise_sm_general_hammer_fanning_2.py +++ b/scripts/expertise/expertise_sm_general_hammer_fanning_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_hammer_fanning_2') - - actor.addSkillMod('expertise_sm_ranged_shot_proc', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_hammer_fanning_2') - - actor.removeSkillMod('expertise_sm_ranged_shot_proc', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_hammer_fanning_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_hammer_fanning_2") return diff --git a/scripts/expertise/expertise_sm_general_hammer_fanning_3.py b/scripts/expertise/expertise_sm_general_hammer_fanning_3.py index f37b9495..24b7a3fb 100644 --- a/scripts/expertise/expertise_sm_general_hammer_fanning_3.py +++ b/scripts/expertise/expertise_sm_general_hammer_fanning_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_hammer_fanning_3') - - actor.addSkillMod('expertise_sm_ranged_shot_proc', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_hammer_fanning_3') - - actor.removeSkillMod('expertise_sm_ranged_shot_proc', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_hammer_fanning_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_hammer_fanning_3") return diff --git a/scripts/expertise/expertise_sm_general_hammer_fanning_4.py b/scripts/expertise/expertise_sm_general_hammer_fanning_4.py index de5f58b2..5db77165 100644 --- a/scripts/expertise/expertise_sm_general_hammer_fanning_4.py +++ b/scripts/expertise/expertise_sm_general_hammer_fanning_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_hammer_fanning_4') - - actor.addSkillMod('expertise_sm_ranged_shot_proc', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_hammer_fanning_4') - - actor.removeSkillMod('expertise_sm_ranged_shot_proc', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_hammer_fanning_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_hammer_fanning_4") return diff --git a/scripts/expertise/expertise_sm_general_head_crack_1.py b/scripts/expertise/expertise_sm_general_head_crack_1.py index 41521dc6..7f20d29f 100644 --- a/scripts/expertise/expertise_sm_general_head_crack_1.py +++ b/scripts/expertise/expertise_sm_general_head_crack_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_head_crack_1') - - actor.addSkillMod('expertise_sm_melee_stun_proc', 6) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_head_crack_1') - - actor.removeSkillMod('expertise_sm_melee_stun_proc', 6) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_head_crack_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_head_crack_1") return diff --git a/scripts/expertise/expertise_sm_general_head_crack_2.py b/scripts/expertise/expertise_sm_general_head_crack_2.py index 44d451ed..abe7628c 100644 --- a/scripts/expertise/expertise_sm_general_head_crack_2.py +++ b/scripts/expertise/expertise_sm_general_head_crack_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_head_crack_2') - - actor.addSkillMod('expertise_sm_melee_stun_proc', 6) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_head_crack_2') - - actor.removeSkillMod('expertise_sm_melee_stun_proc', 6) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_head_crack_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_head_crack_2") return diff --git a/scripts/expertise/expertise_sm_general_hidden_padding_1.py b/scripts/expertise/expertise_sm_general_hidden_padding_1.py index e0294af3..07cceb20 100644 --- a/scripts/expertise/expertise_sm_general_hidden_padding_1.py +++ b/scripts/expertise/expertise_sm_general_hidden_padding_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_hidden_padding_1') - - actor.addSkillMod('expertise_overridable_protection_generic', 1475) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_hidden_padding_1') - - actor.removeSkillMod('expertise_overridable_protection_generic', 1475) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_hidden_padding_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_hidden_padding_1") return diff --git a/scripts/expertise/expertise_sm_general_hidden_padding_2.py b/scripts/expertise/expertise_sm_general_hidden_padding_2.py index e3662b44..3c2cc318 100644 --- a/scripts/expertise/expertise_sm_general_hidden_padding_2.py +++ b/scripts/expertise/expertise_sm_general_hidden_padding_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_hidden_padding_2') - - actor.addSkillMod('expertise_overridable_protection_generic', 1475) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_hidden_padding_2') - - actor.removeSkillMod('expertise_overridable_protection_generic', 1475) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_hidden_padding_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_hidden_padding_2") return diff --git a/scripts/expertise/expertise_sm_general_idiot_proof_plan_1.py b/scripts/expertise/expertise_sm_general_idiot_proof_plan_1.py index d9c15db8..05db4ebf 100644 --- a/scripts/expertise/expertise_sm_general_idiot_proof_plan_1.py +++ b/scripts/expertise/expertise_sm_general_idiot_proof_plan_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_idiot_proof_plan_1') - - actor.addSkillMod('damage_decrease_percentage', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_idiot_proof_plan_1') - - actor.removeSkillMod('damage_decrease_percentage', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_idiot_proof_plan_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_idiot_proof_plan_1") return diff --git a/scripts/expertise/expertise_sm_general_idiot_proof_plan_2.py b/scripts/expertise/expertise_sm_general_idiot_proof_plan_2.py index 6cd3dace..3baa2e23 100644 --- a/scripts/expertise/expertise_sm_general_idiot_proof_plan_2.py +++ b/scripts/expertise/expertise_sm_general_idiot_proof_plan_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_idiot_proof_plan_2') - - actor.addSkillMod('damage_decrease_percentage', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_idiot_proof_plan_2') - - actor.removeSkillMod('damage_decrease_percentage', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_idiot_proof_plan_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_idiot_proof_plan_2") return diff --git a/scripts/expertise/expertise_sm_general_lined_pockets_1.py b/scripts/expertise/expertise_sm_general_lined_pockets_1.py index 5d53be45..e22e98ad 100644 --- a/scripts/expertise/expertise_sm_general_lined_pockets_1.py +++ b/scripts/expertise/expertise_sm_general_lined_pockets_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_lined_pockets_1') - - actor.addSkillMod('expertise_overridable_protection_generic', 1475) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_lined_pockets_1') - - actor.removeSkillMod('expertise_overridable_protection_generic', 1475) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_lined_pockets_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_lined_pockets_1") return diff --git a/scripts/expertise/expertise_sm_general_lined_pockets_2.py b/scripts/expertise/expertise_sm_general_lined_pockets_2.py index 03209a76..08bf5f8d 100644 --- a/scripts/expertise/expertise_sm_general_lined_pockets_2.py +++ b/scripts/expertise/expertise_sm_general_lined_pockets_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_lined_pockets_2') - - actor.addSkillMod('expertise_overridable_protection_generic', 1475) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_lined_pockets_2') - - actor.removeSkillMod('expertise_overridable_protection_generic', 1475) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_lined_pockets_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_lined_pockets_2") return diff --git a/scripts/expertise/expertise_sm_general_meager_fortune_1.py b/scripts/expertise/expertise_sm_general_meager_fortune_1.py index 557528ad..40018dbd 100644 --- a/scripts/expertise/expertise_sm_general_meager_fortune_1.py +++ b/scripts/expertise/expertise_sm_general_meager_fortune_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_meager_fortune_1') - - actor.addSkillMod('expertise_spot_a_sucker_critical_decrease', 50) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_meager_fortune_1') - - actor.removeSkillMod('expertise_spot_a_sucker_critical_decrease', 50) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_meager_fortune_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_meager_fortune_1") return diff --git a/scripts/expertise/expertise_sm_general_narrow_escape_1.py b/scripts/expertise/expertise_sm_general_narrow_escape_1.py index 3993e41e..4f1029a9 100644 --- a/scripts/expertise/expertise_sm_general_narrow_escape_1.py +++ b/scripts/expertise/expertise_sm_general_narrow_escape_1.py @@ -1,48 +1,19 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_narrow_escape_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_narrow_escape_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sm_narrow_escape_1') - + if actor.getLevel() >= 34: + actor.addAbility("sm_narrow_escape_1") + if actor.getLevel() >= 50: + actor.addAbility("sm_narrow_escape_2") + if actor.getLevel() >= 66: + actor.addAbility("sm_narrow_escape_3") + if actor.getLevel() >= 82: + actor.addAbility("sm_narrow_escape_4") return def removeAbilities(core, actor, player): - - actor.removeAbility('sm_narrow_escape_1') - + actor.removeAbility("sm_narrow_escape_1") + actor.removeAbility("sm_narrow_escape_2") + actor.removeAbility("sm_narrow_escape_3") + actor.removeAbility("sm_narrow_escape_4") return diff --git a/scripts/expertise/expertise_sm_general_nerf_herder_1.py b/scripts/expertise/expertise_sm_general_nerf_herder_1.py index 127d4f16..bf1ed358 100644 --- a/scripts/expertise/expertise_sm_general_nerf_herder_1.py +++ b/scripts/expertise/expertise_sm_general_nerf_herder_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_nerf_herder_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_nerf_herder_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sm_nerf_herder') - + actor.addAbility("sm_general_nerf_herder") return def removeAbilities(core, actor, player): - - actor.removeAbility('sm_nerf_herder') - + actor.removeAbility("sm_general_nerf_herder") return diff --git a/scripts/expertise/expertise_sm_general_off_the_cuff_1.py b/scripts/expertise/expertise_sm_general_off_the_cuff_1.py index fec22b4e..9b7fd56a 100644 --- a/scripts/expertise/expertise_sm_general_off_the_cuff_1.py +++ b/scripts/expertise/expertise_sm_general_off_the_cuff_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_off_the_cuff_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_off_the_cuff_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sm_off_the_cuff') - + actor.addAbility("sm_off_the_cuff") return def removeAbilities(core, actor, player): - - actor.removeAbility('sm_off_the_cuff') - + actor.removeAbility("sm_off_the_cuff") return diff --git a/scripts/expertise/expertise_sm_general_one_two_pummel_1.py b/scripts/expertise/expertise_sm_general_one_two_pummel_1.py index b9eb89bd..0fbb25e1 100644 --- a/scripts/expertise/expertise_sm_general_one_two_pummel_1.py +++ b/scripts/expertise/expertise_sm_general_one_two_pummel_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_one_two_pummel_1') - - actor.addSkillMod('expertise_sm_melee_proc', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_one_two_pummel_1') - - actor.removeSkillMod('expertise_sm_melee_proc', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_one_two_pummel_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_one_two_pummel_1") return diff --git a/scripts/expertise/expertise_sm_general_one_two_pummel_2.py b/scripts/expertise/expertise_sm_general_one_two_pummel_2.py index dbd447d9..f33d6cca 100644 --- a/scripts/expertise/expertise_sm_general_one_two_pummel_2.py +++ b/scripts/expertise/expertise_sm_general_one_two_pummel_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_one_two_pummel_2') - - actor.addSkillMod('expertise_sm_melee_proc', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_one_two_pummel_2') - - actor.removeSkillMod('expertise_sm_melee_proc', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_one_two_pummel_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_one_two_pummel_2") return diff --git a/scripts/expertise/expertise_sm_general_one_two_pummel_3.py b/scripts/expertise/expertise_sm_general_one_two_pummel_3.py index 98060a5d..31f91153 100644 --- a/scripts/expertise/expertise_sm_general_one_two_pummel_3.py +++ b/scripts/expertise/expertise_sm_general_one_two_pummel_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_one_two_pummel_3') - - actor.addSkillMod('expertise_sm_melee_proc', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_one_two_pummel_3') - - actor.removeSkillMod('expertise_sm_melee_proc', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_one_two_pummel_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_one_two_pummel_3") return diff --git a/scripts/expertise/expertise_sm_general_one_two_pummel_4.py b/scripts/expertise/expertise_sm_general_one_two_pummel_4.py index 6b7e15b7..7832734e 100644 --- a/scripts/expertise/expertise_sm_general_one_two_pummel_4.py +++ b/scripts/expertise/expertise_sm_general_one_two_pummel_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_one_two_pummel_4') - - actor.addSkillMod('expertise_sm_melee_proc', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_one_two_pummel_4') - - actor.removeSkillMod('expertise_sm_melee_proc', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_one_two_pummel_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_one_two_pummel_4") return diff --git a/scripts/expertise/expertise_sm_general_poor_prospect_1.py b/scripts/expertise/expertise_sm_general_poor_prospect_1.py index d1d9d03c..6cbf1c51 100644 --- a/scripts/expertise/expertise_sm_general_poor_prospect_1.py +++ b/scripts/expertise/expertise_sm_general_poor_prospect_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_poor_prospect_1') - - actor.addSkillMod('expertise_spot_a_sucker_damage_decrease_chance', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_poor_prospect_1') - - actor.removeSkillMod('expertise_spot_a_sucker_damage_decrease_chance', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_poor_prospect_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_poor_prospect_1") return diff --git a/scripts/expertise/expertise_sm_general_poor_prospect_2.py b/scripts/expertise/expertise_sm_general_poor_prospect_2.py index ba6e97ae..18d810f7 100644 --- a/scripts/expertise/expertise_sm_general_poor_prospect_2.py +++ b/scripts/expertise/expertise_sm_general_poor_prospect_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_poor_prospect_2') - - actor.addSkillMod('expertise_spot_a_sucker_damage_decrease_chance', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_poor_prospect_2') - - actor.removeSkillMod('expertise_spot_a_sucker_damage_decrease_chance', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_poor_prospect_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_poor_prospect_2") return diff --git a/scripts/expertise/expertise_sm_general_precise_bead_1.py b/scripts/expertise/expertise_sm_general_precise_bead_1.py index e2d219f6..427e2f61 100644 --- a/scripts/expertise/expertise_sm_general_precise_bead_1.py +++ b/scripts/expertise/expertise_sm_general_precise_bead_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_precise_bead_1') - - actor.addSkillMod('expertise_undiminished_critical_pistol', 5) - actor.addSkillMod('expertise_range_bonus_pistol', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_precise_bead_1') - - actor.removeSkillMod('expertise_undiminished_critical_pistol', 5) - actor.removeSkillMod('expertise_range_bonus_pistol', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_precise_bead_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_precise_bead_1") return diff --git a/scripts/expertise/expertise_sm_general_precise_bead_2.py b/scripts/expertise/expertise_sm_general_precise_bead_2.py index b3ae274d..941d326d 100644 --- a/scripts/expertise/expertise_sm_general_precise_bead_2.py +++ b/scripts/expertise/expertise_sm_general_precise_bead_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_precise_bead_2') - - actor.addSkillMod('expertise_undiminished_critical_pistol', 5) - actor.addSkillMod('expertise_range_bonus_pistol', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_precise_bead_2') - - actor.removeSkillMod('expertise_undiminished_critical_pistol', 5) - actor.removeSkillMod('expertise_range_bonus_pistol', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_precise_bead_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_precise_bead_2") return diff --git a/scripts/expertise/expertise_sm_general_spot_a_sucker_1.py b/scripts/expertise/expertise_sm_general_spot_a_sucker_1.py index 18b3ce1c..d043338d 100644 --- a/scripts/expertise/expertise_sm_general_spot_a_sucker_1.py +++ b/scripts/expertise/expertise_sm_general_spot_a_sucker_1.py @@ -1,48 +1,19 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_spot_a_sucker_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_spot_a_sucker_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sm_spot_a_sucker_1') - + if actor.getLevel() >= 34: + actor.addAbility("sm_spot_a_sucker_1") + if actor.getLevel() >= 50: + actor.addAbility("sm_spot_a_sucker_2") + if actor.getLevel() >= 66: + actor.addAbility("sm_spot_a_sucker_3") + if actor.getLevel() >= 82: + actor.addAbility("sm_spot_a_sucker_4") return def removeAbilities(core, actor, player): - - actor.removeAbility('sm_spot_a_sucker_1') - + actor.removeAbility("sm_spot_a_sucker_1") + actor.removeAbility("sm_spot_a_sucker_2") + actor.removeAbility("sm_spot_a_sucker_3") + actor.removeAbility("sm_spot_a_sucker_4") return diff --git a/scripts/expertise/expertise_sm_general_switcheroo_1.py b/scripts/expertise/expertise_sm_general_switcheroo_1.py index bec0a317..50d08045 100644 --- a/scripts/expertise/expertise_sm_general_switcheroo_1.py +++ b/scripts/expertise/expertise_sm_general_switcheroo_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_switcheroo_1') - - actor.addSkillMod('expertise_critical_hit_reduction', 1) - actor.addSkillMod('expertise_glancing_blow_all', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_switcheroo_1') - - actor.removeSkillMod('expertise_critical_hit_reduction', 1) - actor.removeSkillMod('expertise_glancing_blow_all', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_switcheroo_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_switcheroo_1") return diff --git a/scripts/expertise/expertise_sm_general_switcheroo_2.py b/scripts/expertise/expertise_sm_general_switcheroo_2.py index eb79a782..e66bad5a 100644 --- a/scripts/expertise/expertise_sm_general_switcheroo_2.py +++ b/scripts/expertise/expertise_sm_general_switcheroo_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_switcheroo_2') - - actor.addSkillMod('expertise_critical_hit_reduction', 1) - actor.addSkillMod('expertise_glancing_blow_all', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_switcheroo_2') - - actor.removeSkillMod('expertise_critical_hit_reduction', 1) - actor.removeSkillMod('expertise_glancing_blow_all', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_switcheroo_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_switcheroo_2") return diff --git a/scripts/expertise/expertise_sm_general_switcheroo_3.py b/scripts/expertise/expertise_sm_general_switcheroo_3.py index 9732dbf7..e7e1dcf9 100644 --- a/scripts/expertise/expertise_sm_general_switcheroo_3.py +++ b/scripts/expertise/expertise_sm_general_switcheroo_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_switcheroo_3') - - actor.addSkillMod('expertise_critical_hit_reduction', 1) - actor.addSkillMod('expertise_glancing_blow_all', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_switcheroo_3') - - actor.removeSkillMod('expertise_critical_hit_reduction', 1) - actor.removeSkillMod('expertise_glancing_blow_all', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_switcheroo_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_switcheroo_3") return diff --git a/scripts/expertise/expertise_sm_general_switcheroo_4.py b/scripts/expertise/expertise_sm_general_switcheroo_4.py index b5d082a5..c52c8ddf 100644 --- a/scripts/expertise/expertise_sm_general_switcheroo_4.py +++ b/scripts/expertise/expertise_sm_general_switcheroo_4.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_switcheroo_4') - - actor.addSkillMod('expertise_critical_hit_reduction', 1) - actor.addSkillMod('expertise_glancing_blow_all', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_switcheroo_4') - - actor.removeSkillMod('expertise_critical_hit_reduction', 1) - actor.removeSkillMod('expertise_glancing_blow_all', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_switcheroo_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_switcheroo_4") return diff --git a/scripts/expertise/expertise_sm_general_wretched_fate_1.py b/scripts/expertise/expertise_sm_general_wretched_fate_1.py index 25287ad7..e1c1ba8d 100644 --- a/scripts/expertise/expertise_sm_general_wretched_fate_1.py +++ b/scripts/expertise/expertise_sm_general_wretched_fate_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_general_wretched_fate_1') - - actor.addSkillMod('expertise_spot_a_sucker_glance_chance', 50) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_general_wretched_fate_1') - - actor.removeSkillMod('expertise_spot_a_sucker_glance_chance', 50) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_general_wretched_fate_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_general_wretched_fate_1") return diff --git a/scripts/expertise/expertise_sm_path_beat_down_1.py b/scripts/expertise/expertise_sm_path_beat_down_1.py index af1829d9..ac0f35cb 100644 --- a/scripts/expertise/expertise_sm_path_beat_down_1.py +++ b/scripts/expertise/expertise_sm_path_beat_down_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_beat_down_1') - - actor.addSkillMod('expertise_buff_duration_line_sm_pistol_whip', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_beat_down_1') - - actor.removeSkillMod('expertise_buff_duration_line_sm_pistol_whip', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_beat_down_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_beat_down_1") return diff --git a/scripts/expertise/expertise_sm_path_beat_down_2.py b/scripts/expertise/expertise_sm_path_beat_down_2.py index 692ea516..49463363 100644 --- a/scripts/expertise/expertise_sm_path_beat_down_2.py +++ b/scripts/expertise/expertise_sm_path_beat_down_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_beat_down_2') - - actor.addSkillMod('expertise_buff_duration_line_sm_pistol_whip', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_beat_down_2') - - actor.removeSkillMod('expertise_buff_duration_line_sm_pistol_whip', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_beat_down_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_beat_down_2") return diff --git a/scripts/expertise/expertise_sm_path_best_deal_ever_1.py b/scripts/expertise/expertise_sm_path_best_deal_ever_1.py index 2abbe97f..5ff94eb3 100644 --- a/scripts/expertise/expertise_sm_path_best_deal_ever_1.py +++ b/scripts/expertise/expertise_sm_path_best_deal_ever_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_best_deal_ever_1') - - actor.addSkillMod('expertise_buff_best_deal_ever', 3) - actor.addSkillMod('expertise_junk_dealer_cut', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_best_deal_ever_1') - - actor.removeSkillMod('expertise_buff_best_deal_ever', 3) - actor.removeSkillMod('expertise_junk_dealer_cut', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_best_deal_ever_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_best_deal_ever_1") return diff --git a/scripts/expertise/expertise_sm_path_best_deal_ever_2.py b/scripts/expertise/expertise_sm_path_best_deal_ever_2.py index 8d50a957..60cf82ff 100644 --- a/scripts/expertise/expertise_sm_path_best_deal_ever_2.py +++ b/scripts/expertise/expertise_sm_path_best_deal_ever_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_best_deal_ever_2') - - actor.addSkillMod('expertise_buff_best_deal_ever', 3) - actor.addSkillMod('expertise_junk_dealer_cut', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_best_deal_ever_2') - - actor.removeSkillMod('expertise_buff_best_deal_ever', 3) - actor.removeSkillMod('expertise_junk_dealer_cut', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_best_deal_ever_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_best_deal_ever_2") return diff --git a/scripts/expertise/expertise_sm_path_blaster_at_your_side_1.py b/scripts/expertise/expertise_sm_path_blaster_at_your_side_1.py index fcbf88bf..93b9fb75 100644 --- a/scripts/expertise/expertise_sm_path_blaster_at_your_side_1.py +++ b/scripts/expertise/expertise_sm_path_blaster_at_your_side_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_blaster_at_your_side_1') - - actor.addSkillMod('level_add_to_damage', 100) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_blaster_at_your_side_1') - - actor.removeSkillMod('level_add_to_damage', 100) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_blaster_at_your_side_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_blaster_at_your_side_1") return diff --git a/scripts/expertise/expertise_sm_path_blaster_at_your_side_2.py b/scripts/expertise/expertise_sm_path_blaster_at_your_side_2.py index d1297d00..71b64cd7 100644 --- a/scripts/expertise/expertise_sm_path_blaster_at_your_side_2.py +++ b/scripts/expertise/expertise_sm_path_blaster_at_your_side_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_blaster_at_your_side_2') - - actor.addSkillMod('level_add_to_damage', 100) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_blaster_at_your_side_2') - - actor.removeSkillMod('level_add_to_damage', 100) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_blaster_at_your_side_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_blaster_at_your_side_2") return diff --git a/scripts/expertise/expertise_sm_path_blindside_1.py b/scripts/expertise/expertise_sm_path_blindside_1.py index 082ed6a7..8914b449 100644 --- a/scripts/expertise/expertise_sm_path_blindside_1.py +++ b/scripts/expertise/expertise_sm_path_blindside_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_blindside_1') - - actor.addSkillMod('expertise_buff_duration_line_sm_skullduggery', 13) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_blindside_1') - - actor.removeSkillMod('expertise_buff_duration_line_sm_skullduggery', 13) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_blindside_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_blindside_1") return diff --git a/scripts/expertise/expertise_sm_path_blindside_2.py b/scripts/expertise/expertise_sm_path_blindside_2.py index 3af5ea33..85ff65e6 100644 --- a/scripts/expertise/expertise_sm_path_blindside_2.py +++ b/scripts/expertise/expertise_sm_path_blindside_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_blindside_2') - - actor.addSkillMod('expertise_buff_duration_line_sm_skullduggery', 13) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_blindside_2') - - actor.removeSkillMod('expertise_buff_duration_line_sm_skullduggery', 13) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_blindside_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_blindside_2") return diff --git a/scripts/expertise/expertise_sm_path_card_up_your_sleeve_1.py b/scripts/expertise/expertise_sm_path_card_up_your_sleeve_1.py index 14d4ae68..c8664074 100644 --- a/scripts/expertise/expertise_sm_path_card_up_your_sleeve_1.py +++ b/scripts/expertise/expertise_sm_path_card_up_your_sleeve_1.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_card_up_your_sleeve_1') - - actor.addSkillMod('expertise_double_hit_chance', 10) - actor.addSkillMod('expertise_sm_card_ranged_proc', 25) - actor.addSkillMod('expertise_sm_card_melee_proc', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_card_up_your_sleeve_1') - - actor.removeSkillMod('expertise_double_hit_chance', 10) - actor.removeSkillMod('expertise_sm_card_ranged_proc', 25) - actor.removeSkillMod('expertise_sm_card_melee_proc', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_card_up_your_sleeve_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_card_up_your_sleeve_1") return diff --git a/scripts/expertise/expertise_sm_path_card_up_your_sleeve_2.py b/scripts/expertise/expertise_sm_path_card_up_your_sleeve_2.py index 56aaad3a..350c78a6 100644 --- a/scripts/expertise/expertise_sm_path_card_up_your_sleeve_2.py +++ b/scripts/expertise/expertise_sm_path_card_up_your_sleeve_2.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_card_up_your_sleeve_2') - - actor.addSkillMod('expertise_double_hit_chance', 10) - actor.addSkillMod('expertise_sm_card_ranged_proc', 25) - actor.addSkillMod('expertise_sm_card_melee_proc', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_card_up_your_sleeve_2') - - actor.removeSkillMod('expertise_double_hit_chance', 10) - actor.removeSkillMod('expertise_sm_card_ranged_proc', 25) - actor.removeSkillMod('expertise_sm_card_melee_proc', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_card_up_your_sleeve_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_card_up_your_sleeve_2") return diff --git a/scripts/expertise/expertise_sm_path_card_up_your_sleeve_3.py b/scripts/expertise/expertise_sm_path_card_up_your_sleeve_3.py index e86ff955..36a56da8 100644 --- a/scripts/expertise/expertise_sm_path_card_up_your_sleeve_3.py +++ b/scripts/expertise/expertise_sm_path_card_up_your_sleeve_3.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_card_up_your_sleeve_3') - - actor.addSkillMod('expertise_double_hit_chance', 10) - actor.addSkillMod('expertise_sm_card_ranged_proc', 25) - actor.addSkillMod('expertise_sm_card_melee_proc', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_card_up_your_sleeve_3') - - actor.removeSkillMod('expertise_double_hit_chance', 10) - actor.removeSkillMod('expertise_sm_card_ranged_proc', 25) - actor.removeSkillMod('expertise_sm_card_melee_proc', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_card_up_your_sleeve_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_card_up_your_sleeve_3") return diff --git a/scripts/expertise/expertise_sm_path_card_up_your_sleeve_4.py b/scripts/expertise/expertise_sm_path_card_up_your_sleeve_4.py index e687b8de..2c273743 100644 --- a/scripts/expertise/expertise_sm_path_card_up_your_sleeve_4.py +++ b/scripts/expertise/expertise_sm_path_card_up_your_sleeve_4.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_card_up_your_sleeve_4') - - actor.addSkillMod('expertise_double_hit_chance', 10) - actor.addSkillMod('expertise_sm_card_ranged_proc', 25) - actor.addSkillMod('expertise_sm_card_melee_proc', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_card_up_your_sleeve_4') - - actor.removeSkillMod('expertise_double_hit_chance', 10) - actor.removeSkillMod('expertise_sm_card_ranged_proc', 25) - actor.removeSkillMod('expertise_sm_card_melee_proc', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_card_up_your_sleeve_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_card_up_your_sleeve_4") return diff --git a/scripts/expertise/expertise_sm_path_easy_money_1.py b/scripts/expertise/expertise_sm_path_easy_money_1.py index 9d8550f0..9891035b 100644 --- a/scripts/expertise/expertise_sm_path_easy_money_1.py +++ b/scripts/expertise/expertise_sm_path_easy_money_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_easy_money_1') - - actor.addSkillMod('luck_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_easy_money_1') - - actor.removeSkillMod('luck_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_easy_money_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_easy_money_1") return diff --git a/scripts/expertise/expertise_sm_path_easy_money_2.py b/scripts/expertise/expertise_sm_path_easy_money_2.py index 70412fba..a02f24f8 100644 --- a/scripts/expertise/expertise_sm_path_easy_money_2.py +++ b/scripts/expertise/expertise_sm_path_easy_money_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_easy_money_2') - - actor.addSkillMod('luck_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_easy_money_2') - - actor.removeSkillMod('luck_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_easy_money_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_easy_money_2") return diff --git a/scripts/expertise/expertise_sm_path_easy_money_3.py b/scripts/expertise/expertise_sm_path_easy_money_3.py index 3a44209a..18684c32 100644 --- a/scripts/expertise/expertise_sm_path_easy_money_3.py +++ b/scripts/expertise/expertise_sm_path_easy_money_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_easy_money_3') - - actor.addSkillMod('luck_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_easy_money_3') - - actor.removeSkillMod('luck_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_easy_money_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_easy_money_3") return diff --git a/scripts/expertise/expertise_sm_path_easy_money_4.py b/scripts/expertise/expertise_sm_path_easy_money_4.py index aaf2d0ef..3241291b 100644 --- a/scripts/expertise/expertise_sm_path_easy_money_4.py +++ b/scripts/expertise/expertise_sm_path_easy_money_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_easy_money_4') - - actor.addSkillMod('luck_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_easy_money_4') - - actor.removeSkillMod('luck_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_easy_money_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_easy_money_4") return diff --git a/scripts/expertise/expertise_sm_path_eat_dirt_1.py b/scripts/expertise/expertise_sm_path_eat_dirt_1.py index 7f3776b3..54211af3 100644 --- a/scripts/expertise/expertise_sm_path_eat_dirt_1.py +++ b/scripts/expertise/expertise_sm_path_eat_dirt_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_eat_dirt_1') - - actor.addSkillMod('expertise_miss_by_luck', 6) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_eat_dirt_1') - - actor.removeSkillMod('expertise_miss_by_luck', 6) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_eat_dirt_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_eat_dirt_1") return diff --git a/scripts/expertise/expertise_sm_path_eat_dirt_2.py b/scripts/expertise/expertise_sm_path_eat_dirt_2.py index 897d340c..da074616 100644 --- a/scripts/expertise/expertise_sm_path_eat_dirt_2.py +++ b/scripts/expertise/expertise_sm_path_eat_dirt_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_eat_dirt_2') - - actor.addSkillMod('expertise_miss_by_luck', 6) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_eat_dirt_2') - - actor.removeSkillMod('expertise_miss_by_luck', 6) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_eat_dirt_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_eat_dirt_2") return diff --git a/scripts/expertise/expertise_sm_path_fake_goods_1.py b/scripts/expertise/expertise_sm_path_fake_goods_1.py index 5b414151..bd727012 100644 --- a/scripts/expertise/expertise_sm_path_fake_goods_1.py +++ b/scripts/expertise/expertise_sm_path_fake_goods_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_fake_goods_1') - - actor.addSkillMod('expertise_buff_duration_line_sm_false_hope', 1) - actor.addSkillMod('expertise_delay_reduce_line_sm_false_hope', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_fake_goods_1') - - actor.removeSkillMod('expertise_buff_duration_line_sm_false_hope', 1) - actor.removeSkillMod('expertise_delay_reduce_line_sm_false_hope', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_fake_goods_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_fake_goods_1") return diff --git a/scripts/expertise/expertise_sm_path_fake_goods_2.py b/scripts/expertise/expertise_sm_path_fake_goods_2.py index 75d5968e..3419faae 100644 --- a/scripts/expertise/expertise_sm_path_fake_goods_2.py +++ b/scripts/expertise/expertise_sm_path_fake_goods_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_fake_goods_2') - - actor.addSkillMod('expertise_buff_duration_line_sm_false_hope', 1) - actor.addSkillMod('expertise_delay_reduce_line_sm_false_hope', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_fake_goods_2') - - actor.removeSkillMod('expertise_buff_duration_line_sm_false_hope', 1) - actor.removeSkillMod('expertise_delay_reduce_line_sm_false_hope', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_fake_goods_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_fake_goods_2") return diff --git a/scripts/expertise/expertise_sm_path_false_hope_1.py b/scripts/expertise/expertise_sm_path_false_hope_1.py index 92c2b34d..b1a72de3 100644 --- a/scripts/expertise/expertise_sm_path_false_hope_1.py +++ b/scripts/expertise/expertise_sm_path_false_hope_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_false_hope_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_false_hope_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sm_false_hope') - + actor.addAbility("sm_false_hope") return def removeAbilities(core, actor, player): - - actor.removeAbility('sm_false_hope') - + actor.removeAbility("sm_false_hope") return diff --git a/scripts/expertise/expertise_sm_path_feeling_lucky_1.py b/scripts/expertise/expertise_sm_path_feeling_lucky_1.py index 93fd0635..1f38b885 100644 --- a/scripts/expertise/expertise_sm_path_feeling_lucky_1.py +++ b/scripts/expertise/expertise_sm_path_feeling_lucky_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_feeling_lucky_1') - - actor.addSkillMod('expertise_increase_smuggler_loot', 1) - actor.addSkillMod('expertise_sm_feeling_lucky_chance_proc', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_feeling_lucky_1') - - actor.removeSkillMod('expertise_increase_smuggler_loot', 1) - actor.removeSkillMod('expertise_sm_feeling_lucky_chance_proc', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_feeling_lucky_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_feeling_lucky_1") return diff --git a/scripts/expertise/expertise_sm_path_feeling_lucky_2.py b/scripts/expertise/expertise_sm_path_feeling_lucky_2.py index ea2f7d6b..6c5af161 100644 --- a/scripts/expertise/expertise_sm_path_feeling_lucky_2.py +++ b/scripts/expertise/expertise_sm_path_feeling_lucky_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_feeling_lucky_2') - - actor.addSkillMod('expertise_increase_smuggler_loot', 1) - actor.addSkillMod('expertise_sm_feeling_lucky_chance_proc', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_feeling_lucky_2') - - actor.removeSkillMod('expertise_increase_smuggler_loot', 1) - actor.removeSkillMod('expertise_sm_feeling_lucky_chance_proc', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_feeling_lucky_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_feeling_lucky_2") return diff --git a/scripts/expertise/expertise_sm_path_feeling_lucky_3.py b/scripts/expertise/expertise_sm_path_feeling_lucky_3.py index a18e89b4..7965558c 100644 --- a/scripts/expertise/expertise_sm_path_feeling_lucky_3.py +++ b/scripts/expertise/expertise_sm_path_feeling_lucky_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_feeling_lucky_3') - - actor.addSkillMod('expertise_increase_smuggler_loot', 1) - actor.addSkillMod('expertise_sm_feeling_lucky_chance_proc', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_feeling_lucky_3') - - actor.removeSkillMod('expertise_increase_smuggler_loot', 1) - actor.removeSkillMod('expertise_sm_feeling_lucky_chance_proc', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_feeling_lucky_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_feeling_lucky_3") return diff --git a/scripts/expertise/expertise_sm_path_feeling_lucky_4.py b/scripts/expertise/expertise_sm_path_feeling_lucky_4.py index 4a924398..b9299149 100644 --- a/scripts/expertise/expertise_sm_path_feeling_lucky_4.py +++ b/scripts/expertise/expertise_sm_path_feeling_lucky_4.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_feeling_lucky_4') - - actor.addSkillMod('expertise_increase_smuggler_loot', 1) - actor.addSkillMod('expertise_sm_feeling_lucky_chance_proc', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_feeling_lucky_4') - - actor.removeSkillMod('expertise_increase_smuggler_loot', 1) - actor.removeSkillMod('expertise_sm_feeling_lucky_chance_proc', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_feeling_lucky_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_feeling_lucky_4") return diff --git a/scripts/expertise/expertise_sm_path_flying_tackle_1.py b/scripts/expertise/expertise_sm_path_flying_tackle_1.py index cb696d20..5fbcd2eb 100644 --- a/scripts/expertise/expertise_sm_path_flying_tackle_1.py +++ b/scripts/expertise/expertise_sm_path_flying_tackle_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_flying_tackle_1') - - actor.addSkillMod('expertise_stun_line_sm_pistol_whip', 50) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_flying_tackle_1') - - actor.removeSkillMod('expertise_stun_line_sm_pistol_whip', 50) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_flying_tackle_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_flying_tackle_1") return diff --git a/scripts/expertise/expertise_sm_path_flying_tackle_2.py b/scripts/expertise/expertise_sm_path_flying_tackle_2.py index fdf47b07..249e61b5 100644 --- a/scripts/expertise/expertise_sm_path_flying_tackle_2.py +++ b/scripts/expertise/expertise_sm_path_flying_tackle_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_flying_tackle_2') - - actor.addSkillMod('expertise_stun_line_sm_pistol_whip', 50) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_flying_tackle_2') - - actor.removeSkillMod('expertise_stun_line_sm_pistol_whip', 50) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_flying_tackle_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_flying_tackle_2") return diff --git a/scripts/expertise/expertise_sm_path_healthy_profits_1.py b/scripts/expertise/expertise_sm_path_healthy_profits_1.py index 431019aa..8145066b 100644 --- a/scripts/expertise/expertise_sm_path_healthy_profits_1.py +++ b/scripts/expertise/expertise_sm_path_healthy_profits_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_healthy_profits_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_healthy_profits_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sm_summon_medic') - + actor.addAbility("sm_summon_medic") return def removeAbilities(core, actor, player): - - actor.removeAbility('sm_summon_medic') - + actor.removeAbility("sm_summon_medic") return diff --git a/scripts/expertise/expertise_sm_path_impossible_odds_1.py b/scripts/expertise/expertise_sm_path_impossible_odds_1.py index 63e78de4..3191ef8f 100644 --- a/scripts/expertise/expertise_sm_path_impossible_odds_1.py +++ b/scripts/expertise/expertise_sm_path_impossible_odds_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_impossible_odds_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_impossible_odds_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sm_impossible_odds') - + actor.addAbility("sm_impossible_odds") return def removeAbilities(core, actor, player): - - actor.removeAbility('sm_impossible_odds') - + actor.removeAbility("sm_impossible_odds") return diff --git a/scripts/expertise/expertise_sm_path_inside_information_1.py b/scripts/expertise/expertise_sm_path_inside_information_1.py index 3bdba930..508ee947 100644 --- a/scripts/expertise/expertise_sm_path_inside_information_1.py +++ b/scripts/expertise/expertise_sm_path_inside_information_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_inside_information_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_inside_information_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sm_inside_information') - + actor.addAbility("sm_inside_information") return def removeAbilities(core, actor, player): - - actor.removeAbility('sm_inside_information') - + actor.removeAbility("sm_inside_information") return diff --git a/scripts/expertise/expertise_sm_path_loaded_chance_dice_1.py b/scripts/expertise/expertise_sm_path_loaded_chance_dice_1.py index ccc1e6ba..a73977ba 100644 --- a/scripts/expertise/expertise_sm_path_loaded_chance_dice_1.py +++ b/scripts/expertise/expertise_sm_path_loaded_chance_dice_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_loaded_chance_dice_1') - - actor.addSkillMod('expertise_increase_hit_by_luck', 5) - actor.addSkillMod('expertise_buff_duration_line_sm_impossible_odds', 13) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_loaded_chance_dice_1') - - actor.removeSkillMod('expertise_increase_hit_by_luck', 5) - actor.removeSkillMod('expertise_buff_duration_line_sm_impossible_odds', 13) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_loaded_chance_dice_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_loaded_chance_dice_1") return diff --git a/scripts/expertise/expertise_sm_path_loaded_chance_dice_2.py b/scripts/expertise/expertise_sm_path_loaded_chance_dice_2.py index 1af5ac14..ec00a3d4 100644 --- a/scripts/expertise/expertise_sm_path_loaded_chance_dice_2.py +++ b/scripts/expertise/expertise_sm_path_loaded_chance_dice_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_loaded_chance_dice_2') - - actor.addSkillMod('expertise_increase_hit_by_luck', 5) - actor.addSkillMod('expertise_buff_duration_line_sm_impossible_odds', 13) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_loaded_chance_dice_2') - - actor.removeSkillMod('expertise_increase_hit_by_luck', 5) - actor.removeSkillMod('expertise_buff_duration_line_sm_impossible_odds', 13) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_loaded_chance_dice_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_loaded_chance_dice_2") return diff --git a/scripts/expertise/expertise_sm_path_lucky_break_1.py b/scripts/expertise/expertise_sm_path_lucky_break_1.py index df59283b..2beff304 100644 --- a/scripts/expertise/expertise_sm_path_lucky_break_1.py +++ b/scripts/expertise/expertise_sm_path_lucky_break_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_lucky_break_1') - - actor.addSkillMod('expertise_lucky_break_chance', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_lucky_break_1') - - actor.removeSkillMod('expertise_lucky_break_chance', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_lucky_break_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_lucky_break_1") return diff --git a/scripts/expertise/expertise_sm_path_lucky_break_2.py b/scripts/expertise/expertise_sm_path_lucky_break_2.py index fabd837e..5a40d6c0 100644 --- a/scripts/expertise/expertise_sm_path_lucky_break_2.py +++ b/scripts/expertise/expertise_sm_path_lucky_break_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_lucky_break_2') - - actor.addSkillMod('expertise_lucky_break_chance', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_lucky_break_2') - - actor.removeSkillMod('expertise_lucky_break_chance', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_lucky_break_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_lucky_break_2") return diff --git a/scripts/expertise/expertise_sm_path_lucky_break_3.py b/scripts/expertise/expertise_sm_path_lucky_break_3.py index 572d050f..b1507e0b 100644 --- a/scripts/expertise/expertise_sm_path_lucky_break_3.py +++ b/scripts/expertise/expertise_sm_path_lucky_break_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_lucky_break_3') - - actor.addSkillMod('expertise_lucky_break_chance', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_lucky_break_3') - - actor.removeSkillMod('expertise_lucky_break_chance', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_lucky_break_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_lucky_break_3") return diff --git a/scripts/expertise/expertise_sm_path_lucky_break_4.py b/scripts/expertise/expertise_sm_path_lucky_break_4.py index 8a29ac79..b30641cc 100644 --- a/scripts/expertise/expertise_sm_path_lucky_break_4.py +++ b/scripts/expertise/expertise_sm_path_lucky_break_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_lucky_break_4') - - actor.addSkillMod('expertise_lucky_break_chance', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_lucky_break_4') - - actor.removeSkillMod('expertise_lucky_break_chance', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_lucky_break_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_lucky_break_4") return diff --git a/scripts/expertise/expertise_sm_path_off_the_books_1.py b/scripts/expertise/expertise_sm_path_off_the_books_1.py index eeac5c97..c42eeff2 100644 --- a/scripts/expertise/expertise_sm_path_off_the_books_1.py +++ b/scripts/expertise/expertise_sm_path_off_the_books_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_off_the_books_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_off_the_books_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sm_off_the_books') - + actor.addAbility("sm_off_the_books") return def removeAbilities(core, actor, player): - - actor.removeAbility('sm_off_the_books') - + actor.removeAbility("sm_off_the_books") return diff --git a/scripts/expertise/expertise_sm_path_pistol_whip_1.py b/scripts/expertise/expertise_sm_path_pistol_whip_1.py index e1dd1a3f..e38045db 100644 --- a/scripts/expertise/expertise_sm_path_pistol_whip_1.py +++ b/scripts/expertise/expertise_sm_path_pistol_whip_1.py @@ -1,48 +1,19 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_pistol_whip_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_pistol_whip_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sm_pistol_whip_1') - + if actor.getLevel() >= 34: + actor.addAbility("sm_pistol_whip_1") + if actor.getLevel() >= 50: + actor.addAbility("sm_pistol_whip_2") + if actor.getLevel() >= 66: + actor.addAbility("sm_pistol_whip_3") + if actor.getLevel() >= 82: + actor.addAbility("sm_pistol_whip_4") return def removeAbilities(core, actor, player): - - actor.removeAbility('sm_pistol_whip_1') - + actor.removeAbility("sm_pistol_whip_1") + actor.removeAbility("sm_pistol_whip_2") + actor.removeAbility("sm_pistol_whip_3") + actor.removeAbility("sm_pistol_whip_4") return diff --git a/scripts/expertise/expertise_sm_path_ploy_1.py b/scripts/expertise/expertise_sm_path_ploy_1.py index 972f5cf6..956c9d43 100644 --- a/scripts/expertise/expertise_sm_path_ploy_1.py +++ b/scripts/expertise/expertise_sm_path_ploy_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_ploy_1') - - actor.addSkillMod('precision_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_ploy_1') - - actor.removeSkillMod('precision_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_ploy_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_ploy_1") return diff --git a/scripts/expertise/expertise_sm_path_ploy_2.py b/scripts/expertise/expertise_sm_path_ploy_2.py index a49453d7..fe707dc0 100644 --- a/scripts/expertise/expertise_sm_path_ploy_2.py +++ b/scripts/expertise/expertise_sm_path_ploy_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_ploy_2') - - actor.addSkillMod('precision_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_ploy_2') - - actor.removeSkillMod('precision_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_ploy_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_ploy_2") return diff --git a/scripts/expertise/expertise_sm_path_ploy_3.py b/scripts/expertise/expertise_sm_path_ploy_3.py index 84904cdf..cecca14e 100644 --- a/scripts/expertise/expertise_sm_path_ploy_3.py +++ b/scripts/expertise/expertise_sm_path_ploy_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_ploy_3') - - actor.addSkillMod('precision_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_ploy_3') - - actor.removeSkillMod('precision_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_ploy_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_ploy_3") return diff --git a/scripts/expertise/expertise_sm_path_ploy_4.py b/scripts/expertise/expertise_sm_path_ploy_4.py index 4ca79a1f..de968f40 100644 --- a/scripts/expertise/expertise_sm_path_ploy_4.py +++ b/scripts/expertise/expertise_sm_path_ploy_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_ploy_4') - - actor.addSkillMod('precision_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_ploy_4') - - actor.removeSkillMod('precision_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_ploy_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_ploy_4") return diff --git a/scripts/expertise/expertise_sm_path_quick_fix_1.py b/scripts/expertise/expertise_sm_path_quick_fix_1.py index 522a120c..68fa7682 100644 --- a/scripts/expertise/expertise_sm_path_quick_fix_1.py +++ b/scripts/expertise/expertise_sm_path_quick_fix_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_quick_fix_1') - - actor.addSkillMod('expertise_healing_line_sm_heal', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_quick_fix_1') - - actor.removeSkillMod('expertise_healing_line_sm_heal', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_quick_fix_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_quick_fix_1") return diff --git a/scripts/expertise/expertise_sm_path_quick_fix_2.py b/scripts/expertise/expertise_sm_path_quick_fix_2.py index 2f4cdc81..7426e059 100644 --- a/scripts/expertise/expertise_sm_path_quick_fix_2.py +++ b/scripts/expertise/expertise_sm_path_quick_fix_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_quick_fix_2') - - actor.addSkillMod('expertise_healing_line_sm_heal', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_quick_fix_2') - - actor.removeSkillMod('expertise_healing_line_sm_heal', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_quick_fix_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_quick_fix_2") return diff --git a/scripts/expertise/expertise_sm_path_quick_fix_3.py b/scripts/expertise/expertise_sm_path_quick_fix_3.py index 42f74088..c469d4ed 100644 --- a/scripts/expertise/expertise_sm_path_quick_fix_3.py +++ b/scripts/expertise/expertise_sm_path_quick_fix_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_quick_fix_3') - - actor.addSkillMod('expertise_healing_line_sm_heal', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_quick_fix_3') - - actor.removeSkillMod('expertise_healing_line_sm_heal', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_quick_fix_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_quick_fix_3") return diff --git a/scripts/expertise/expertise_sm_path_quick_fix_4.py b/scripts/expertise/expertise_sm_path_quick_fix_4.py index c041fb6e..cebeae68 100644 --- a/scripts/expertise/expertise_sm_path_quick_fix_4.py +++ b/scripts/expertise/expertise_sm_path_quick_fix_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_quick_fix_4') - - actor.addSkillMod('expertise_healing_line_sm_heal', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_quick_fix_4') - - actor.removeSkillMod('expertise_healing_line_sm_heal', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_quick_fix_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_quick_fix_4") return diff --git a/scripts/expertise/expertise_sm_path_scandal_1.py b/scripts/expertise/expertise_sm_path_scandal_1.py index d3201976..e4f9b9b0 100644 --- a/scripts/expertise/expertise_sm_path_scandal_1.py +++ b/scripts/expertise/expertise_sm_path_scandal_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_scandal_1') - - actor.addSkillMod('expertise_damage_area_effect', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_scandal_1') - - actor.removeSkillMod('expertise_damage_area_effect', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_scandal_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_scandal_1") return diff --git a/scripts/expertise/expertise_sm_path_scandal_2.py b/scripts/expertise/expertise_sm_path_scandal_2.py index 5a14559b..39dc1d2b 100644 --- a/scripts/expertise/expertise_sm_path_scandal_2.py +++ b/scripts/expertise/expertise_sm_path_scandal_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_scandal_2') - - actor.addSkillMod('expertise_damage_area_effect', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_scandal_2') - - actor.removeSkillMod('expertise_damage_area_effect', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_scandal_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_scandal_2) return diff --git a/scripts/expertise/expertise_sm_path_scandal_3.py b/scripts/expertise/expertise_sm_path_scandal_3.py index 0d7ae351..4094a791 100644 --- a/scripts/expertise/expertise_sm_path_scandal_3.py +++ b/scripts/expertise/expertise_sm_path_scandal_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_scandal_3') - - actor.addSkillMod('expertise_damage_area_effect', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_scandal_3') - - actor.removeSkillMod('expertise_damage_area_effect', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_scandal_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_scandal_3") return diff --git a/scripts/expertise/expertise_sm_path_scandal_4.py b/scripts/expertise/expertise_sm_path_scandal_4.py index 96b3235c..6352b2e1 100644 --- a/scripts/expertise/expertise_sm_path_scandal_4.py +++ b/scripts/expertise/expertise_sm_path_scandal_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_scandal_4') - - actor.addSkillMod('expertise_damage_area_effect', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_scandal_4') - - actor.removeSkillMod('expertise_damage_area_effect', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_scandal_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_scandal_4") return diff --git a/scripts/expertise/expertise_sm_path_shoot_first_1.py b/scripts/expertise/expertise_sm_path_shoot_first_1.py index af429bb5..3cfcce30 100644 --- a/scripts/expertise/expertise_sm_path_shoot_first_1.py +++ b/scripts/expertise/expertise_sm_path_shoot_first_1.py @@ -1,48 +1,22 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_shoot_first_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_shoot_first_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sm_shoot_first_1') - + if actor.getLevel() >= 26: + actor.addAbility("sm_shoot_first_1") + if actor.getLevel() >= 34: + actor.addAbility("sm_shoot_first_2") + if actor.getLevel() >= 48: + actor.addAbility("sm_shoot_first_3") + if actor.getLevel() >= 62: + actor.addAbility("sm_shoot_first_4") + if actor.getLevel() >= 76: + actor.addAbility("sm_shoot_first_5") return def removeAbilities(core, actor, player): - - actor.removeAbility('sm_shoot_first_1') - + actor.removeAbility("sm_shoot_first_1") + actor.removeAbility("sm_shoot_first_2") + actor.removeAbility("sm_shoot_first_3") + actor.removeAbility("sm_shoot_first_4") + actor.removeAbility("sm_shoot_first_5") return diff --git a/scripts/expertise/expertise_sm_path_skullduggery_1.py b/scripts/expertise/expertise_sm_path_skullduggery_1.py index 3da59a99..7c662b84 100644 --- a/scripts/expertise/expertise_sm_path_skullduggery_1.py +++ b/scripts/expertise/expertise_sm_path_skullduggery_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_skullduggery_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_skullduggery_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sm_skullduggery') - + actor.addAbility("sm_path_skullduggery") return def removeAbilities(core, actor, player): - - actor.removeAbility('sm_skullduggery') - + actor.removeAbility("sm_path_skullduggery") return diff --git a/scripts/expertise/expertise_sm_path_sleight_of_hand_1.py b/scripts/expertise/expertise_sm_path_sleight_of_hand_1.py index 555dc04d..98907737 100644 --- a/scripts/expertise/expertise_sm_path_sleight_of_hand_1.py +++ b/scripts/expertise/expertise_sm_path_sleight_of_hand_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_sleight_of_hand_1') - - actor.addSkillMod('expertise_hit_by_luck', 8) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_sleight_of_hand_1') - - actor.removeSkillMod('expertise_hit_by_luck', 8) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_sleight_of_hand_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_sleight_of_hand_1") return diff --git a/scripts/expertise/expertise_sm_path_sleight_of_hand_2.py b/scripts/expertise/expertise_sm_path_sleight_of_hand_2.py index 50a5b317..88bdf88d 100644 --- a/scripts/expertise/expertise_sm_path_sleight_of_hand_2.py +++ b/scripts/expertise/expertise_sm_path_sleight_of_hand_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_sleight_of_hand_2') - - actor.addSkillMod('expertise_hit_by_luck', 8) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_sleight_of_hand_2') - - actor.removeSkillMod('expertise_hit_by_luck', 8) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_sleight_of_hand_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_sleight_of_hand_2") return diff --git a/scripts/expertise/expertise_sm_path_smooth_move_1.py b/scripts/expertise/expertise_sm_path_smooth_move_1.py index c04b10a0..0f766064 100644 --- a/scripts/expertise/expertise_sm_path_smooth_move_1.py +++ b/scripts/expertise/expertise_sm_path_smooth_move_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_smooth_move_1') - - actor.addSkillMod('expertise_damage_melee', 1) - actor.addSkillMod('expertise_damage_weapon_2', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_smooth_move_1') - - actor.removeSkillMod('expertise_damage_melee', 1) - actor.removeSkillMod('expertise_damage_weapon_2', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_smooth_move_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_smooth_move_1") return diff --git a/scripts/expertise/expertise_sm_path_smooth_move_2.py b/scripts/expertise/expertise_sm_path_smooth_move_2.py index e7f8a910..d27d5c81 100644 --- a/scripts/expertise/expertise_sm_path_smooth_move_2.py +++ b/scripts/expertise/expertise_sm_path_smooth_move_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_smooth_move_2') - - actor.addSkillMod('expertise_damage_melee', 1) - actor.addSkillMod('expertise_damage_weapon_2', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_smooth_move_2') - - actor.removeSkillMod('expertise_damage_melee', 1) - actor.removeSkillMod('expertise_damage_weapon_2', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_smooth_move_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_smooth_move_2") return diff --git a/scripts/expertise/expertise_sm_path_smooth_move_3.py b/scripts/expertise/expertise_sm_path_smooth_move_3.py index 036e78ed..888bd5d2 100644 --- a/scripts/expertise/expertise_sm_path_smooth_move_3.py +++ b/scripts/expertise/expertise_sm_path_smooth_move_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_smooth_move_3') - - actor.addSkillMod('expertise_damage_melee', 1) - actor.addSkillMod('expertise_damage_weapon_2', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_smooth_move_3') - - actor.removeSkillMod('expertise_damage_melee', 1) - actor.removeSkillMod('expertise_damage_weapon_2', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_smooth_move_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_smooth_move_3") return diff --git a/scripts/expertise/expertise_sm_path_smooth_move_4.py b/scripts/expertise/expertise_sm_path_smooth_move_4.py index c608477d..52572e2a 100644 --- a/scripts/expertise/expertise_sm_path_smooth_move_4.py +++ b/scripts/expertise/expertise_sm_path_smooth_move_4.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_smooth_move_4') - - actor.addSkillMod('expertise_damage_melee', 1) - actor.addSkillMod('expertise_damage_weapon_2', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_smooth_move_4') - - actor.removeSkillMod('expertise_damage_melee', 1) - actor.removeSkillMod('expertise_damage_weapon_2', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sm_path_smooth_move_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sm_path_smooth_move_4") return diff --git a/scripts/expertise/expertise_sm_path_under_the_counter_1.py b/scripts/expertise/expertise_sm_path_under_the_counter_1.py index 563ac15f..4ca94bdb 100644 --- a/scripts/expertise/expertise_sm_path_under_the_counter_1.py +++ b/scripts/expertise/expertise_sm_path_under_the_counter_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_under_the_counter_1') - - actor.addSkillMod('expertise_buff_under_the_counter', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_under_the_counter_1') - - actor.removeSkillMod('expertise_buff_under_the_counter', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_path_under_the_counter_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_path_under_the_counter_1") return diff --git a/scripts/expertise/expertise_sm_path_under_the_counter_2.py b/scripts/expertise/expertise_sm_path_under_the_counter_2.py index f4a1f72c..5769c9d6 100644 --- a/scripts/expertise/expertise_sm_path_under_the_counter_2.py +++ b/scripts/expertise/expertise_sm_path_under_the_counter_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.addSkill('expertise_sm_path_under_the_counter_2') - - actor.addSkillMod('expertise_buff_under_the_counter', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'smuggler_1a': - return - - actor.removeSkill('expertise_sm_path_under_the_counter_2') - - actor.removeSkillMod('expertise_buff_under_the_counter', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_path_under_the_counter_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_path_under_the_counter_2") return diff --git a/scripts/expertise/expertise_sp_assassins_blade_1.py b/scripts/expertise/expertise_sp_assassins_blade_1.py index 93a526dd..e022fcf7 100644 --- a/scripts/expertise/expertise_sp_assassins_blade_1.py +++ b/scripts/expertise/expertise_sp_assassins_blade_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_assassins_blade_1') - - actor.addSkillMod('expertise_strikethrough_chance', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_assassins_blade_1') - - actor.removeSkillMod('expertise_strikethrough_chance', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_assassins_blade_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_assassins_blade_1") return diff --git a/scripts/expertise/expertise_sp_assassins_blade_2.py b/scripts/expertise/expertise_sp_assassins_blade_2.py index ec05ff91..19d3ca7d 100644 --- a/scripts/expertise/expertise_sp_assassins_blade_2.py +++ b/scripts/expertise/expertise_sp_assassins_blade_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_assassins_blade_2') - - actor.addSkillMod('expertise_strikethrough_chance', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_assassins_blade_2') - - actor.removeSkillMod('expertise_strikethrough_chance', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_assassins_blade_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_assassins_blade_2") return diff --git a/scripts/expertise/expertise_sp_assassins_blade_4.py b/scripts/expertise/expertise_sp_assassins_blade_4.py index 1c18ae9f..810a2d9c 100644 --- a/scripts/expertise/expertise_sp_assassins_blade_4.py +++ b/scripts/expertise/expertise_sp_assassins_blade_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_assassins_blade_4') - - actor.addSkillMod('expertise_strikethrough_chance', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_assassins_blade_4') - - actor.removeSkillMod('expertise_strikethrough_chance', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_assassins_blade_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_assassins_blade_3") return diff --git a/scripts/expertise/expertise_sp_assassins_mark.py b/scripts/expertise/expertise_sp_assassins_mark.py index c15c1096..08e35d4d 100644 --- a/scripts/expertise/expertise_sp_assassins_mark.py +++ b/scripts/expertise/expertise_sp_assassins_mark.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_assassins_mark') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_assassins_mark') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sp_assassins_mark') - + actor.addAbility("sp_assassins_mark") return def removeAbilities(core, actor, player): - - actor.removeAbility('sp_assassins_mark') - + actor.removeAbility("sp_assassins_mark") return diff --git a/scripts/expertise/expertise_sp_avoid_damage_1.py b/scripts/expertise/expertise_sp_avoid_damage_1.py index 8e706bc7..723ca08c 100644 --- a/scripts/expertise/expertise_sp_avoid_damage_1.py +++ b/scripts/expertise/expertise_sp_avoid_damage_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_avoid_damage_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_avoid_damage_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sp_avoid_damage') - + actor.addAbility("sp_avoid_damage") return def removeAbilities(core, actor, player): - - actor.removeAbility('sp_avoid_damage') - + actor.removeAbility("sp_avoid_damage") return diff --git a/scripts/expertise/expertise_sp_burst_of_shadows_1.py b/scripts/expertise/expertise_sp_burst_of_shadows_1.py index a15ceaf2..8f106d74 100644 --- a/scripts/expertise/expertise_sp_burst_of_shadows_1.py +++ b/scripts/expertise/expertise_sp_burst_of_shadows_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_burst_of_shadows_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_burst_of_shadows_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sp_burst_of_shadows') - + actor.addAbility("sp_burst_of_shadows") return def removeAbilities(core, actor, player): - - actor.removeAbility('sp_burst_of_shadows') - + actor.removeAbility("sp_burst_of_shadows") return diff --git a/scripts/expertise/expertise_sp_careful_observation_1.py b/scripts/expertise/expertise_sp_careful_observation_1.py index 16654a46..158e2de9 100644 --- a/scripts/expertise/expertise_sp_careful_observation_1.py +++ b/scripts/expertise/expertise_sp_careful_observation_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_careful_observation_1') - - actor.addSkillMod('detect_hidden', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_careful_observation_1') - - actor.removeSkillMod('detect_hidden', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_careful_observation_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_careful_observation_1") return diff --git a/scripts/expertise/expertise_sp_careful_observation_2.py b/scripts/expertise/expertise_sp_careful_observation_2.py index 24e1430f..64ab18fe 100644 --- a/scripts/expertise/expertise_sp_careful_observation_2.py +++ b/scripts/expertise/expertise_sp_careful_observation_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_careful_observation_2') - - actor.addSkillMod('detect_hidden', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_careful_observation_2') - - actor.removeSkillMod('detect_hidden', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_careful_observation_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_careful_observation_2") return diff --git a/scripts/expertise/expertise_sp_cheap_shots_1.py b/scripts/expertise/expertise_sp_cheap_shots_1.py index 25e6ce82..4c45be85 100644 --- a/scripts/expertise/expertise_sp_cheap_shots_1.py +++ b/scripts/expertise/expertise_sp_cheap_shots_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_cheap_shots_1') - - actor.addSkillMod('expertise_action_weapon_ranged', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_cheap_shots_1') - - actor.removeSkillMod('expertise_action_weapon_ranged', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_cheap_shots_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_cheap_shots_1") return diff --git a/scripts/expertise/expertise_sp_cheap_shots_2.py b/scripts/expertise/expertise_sp_cheap_shots_2.py index 80c50bbd..6f1510ff 100644 --- a/scripts/expertise/expertise_sp_cheap_shots_2.py +++ b/scripts/expertise/expertise_sp_cheap_shots_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_cheap_shots_2') - - actor.addSkillMod('expertise_action_weapon_ranged', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_cheap_shots_2') - - actor.removeSkillMod('expertise_action_weapon_ranged', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_cheap_shots_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_cheap_shots_2") return diff --git a/scripts/expertise/expertise_sp_cheap_shots_3.py b/scripts/expertise/expertise_sp_cheap_shots_3.py index b109039c..a44a75a0 100644 --- a/scripts/expertise/expertise_sp_cheap_shots_3.py +++ b/scripts/expertise/expertise_sp_cheap_shots_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_cheap_shots_3') - - actor.addSkillMod('expertise_action_weapon_ranged', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_cheap_shots_3') - - actor.removeSkillMod('expertise_action_weapon_ranged', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_cheap_shots_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_cheap_shots_3") return diff --git a/scripts/expertise/expertise_sp_cheap_shots_4.py b/scripts/expertise/expertise_sp_cheap_shots_4.py index 473d1c54..be49ce20 100644 --- a/scripts/expertise/expertise_sp_cheap_shots_4.py +++ b/scripts/expertise/expertise_sp_cheap_shots_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_cheap_shots_4') - - actor.addSkillMod('expertise_action_weapon_ranged', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_cheap_shots_4') - - actor.removeSkillMod('expertise_action_weapon_ranged', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_cheap_shots_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_cheap_shots_4") return diff --git a/scripts/expertise/expertise_sp_cheap_strikes_1.py b/scripts/expertise/expertise_sp_cheap_strikes_1.py index b32c86b8..bf64aff5 100644 --- a/scripts/expertise/expertise_sp_cheap_strikes_1.py +++ b/scripts/expertise/expertise_sp_cheap_strikes_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_cheap_strikes_1') - - actor.addSkillMod('expertise_action_weapon_melee', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_cheap_strikes_1') - - actor.removeSkillMod('expertise_action_weapon_melee', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_cheap_strikes_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_cheap_strikes_1") return diff --git a/scripts/expertise/expertise_sp_cheap_strikes_2.py b/scripts/expertise/expertise_sp_cheap_strikes_2.py index a88b5b7a..2264e3cc 100644 --- a/scripts/expertise/expertise_sp_cheap_strikes_2.py +++ b/scripts/expertise/expertise_sp_cheap_strikes_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_cheap_strikes_2') - - actor.addSkillMod('expertise_action_weapon_melee', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_cheap_strikes_2') - - actor.removeSkillMod('expertise_action_weapon_melee', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_cheap_strikes_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_cheap_strikes_2") return diff --git a/scripts/expertise/expertise_sp_cheap_strikes_3.py b/scripts/expertise/expertise_sp_cheap_strikes_3.py index c3e9a8a0..110acea8 100644 --- a/scripts/expertise/expertise_sp_cheap_strikes_3.py +++ b/scripts/expertise/expertise_sp_cheap_strikes_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_cheap_strikes_3') - - actor.addSkillMod('expertise_action_weapon_melee', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_cheap_strikes_3') - - actor.removeSkillMod('expertise_action_weapon_melee', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_cheap_strikes_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_cheap_strikes_3") return diff --git a/scripts/expertise/expertise_sp_cheap_strikes_4.py b/scripts/expertise/expertise_sp_cheap_strikes_4.py index 2f58d895..97a2d0f6 100644 --- a/scripts/expertise/expertise_sp_cheap_strikes_4.py +++ b/scripts/expertise/expertise_sp_cheap_strikes_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_cheap_strikes_4') - - actor.addSkillMod('expertise_action_weapon_melee', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_cheap_strikes_4') - - actor.removeSkillMod('expertise_action_weapon_melee', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_cheap_strikes_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_cheap_strikes_4") return diff --git a/scripts/expertise/expertise_sp_cloak_and_dagger_1.py b/scripts/expertise/expertise_sp_cloak_and_dagger_1.py index f1333f00..55d9c884 100644 --- a/scripts/expertise/expertise_sp_cloak_and_dagger_1.py +++ b/scripts/expertise/expertise_sp_cloak_and_dagger_1.py @@ -1,54 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_cloak_and_dagger_1') - - actor.addSkillMod('expertise_damage_line_sp_stealth_melee', 20) - actor.addSkillMod('expertise_damage_line_sp_stealth_ranged', 20) - actor.addSkillMod('expertise_dot_damage_line_sp_stealth_melee', 20) - actor.addSkillMod('expertise_dot_damage_line_sp_stealth_ranged', 20) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_cloak_and_dagger_1') - - actor.removeSkillMod('expertise_damage_line_sp_stealth_melee', 20) - actor.removeSkillMod('expertise_damage_line_sp_stealth_ranged', 20) - actor.removeSkillMod('expertise_dot_damage_line_sp_stealth_melee', 20) - actor.removeSkillMod('expertise_dot_damage_line_sp_stealth_ranged', 20) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_cloak_and_dagger_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_cloak_and_dagger_1") return diff --git a/scripts/expertise/expertise_sp_cloak_and_dagger_2.py b/scripts/expertise/expertise_sp_cloak_and_dagger_2.py index f9ac5034..1ee3ca02 100644 --- a/scripts/expertise/expertise_sp_cloak_and_dagger_2.py +++ b/scripts/expertise/expertise_sp_cloak_and_dagger_2.py @@ -1,54 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_cloak_and_dagger_2') - - actor.addSkillMod('expertise_damage_line_sp_stealth_melee', 20) - actor.addSkillMod('expertise_damage_line_sp_stealth_ranged', 20) - actor.addSkillMod('expertise_dot_damage_line_sp_stealth_melee', 20) - actor.addSkillMod('expertise_dot_damage_line_sp_stealth_ranged', 20) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_cloak_and_dagger_2') - - actor.removeSkillMod('expertise_damage_line_sp_stealth_melee', 20) - actor.removeSkillMod('expertise_damage_line_sp_stealth_ranged', 20) - actor.removeSkillMod('expertise_dot_damage_line_sp_stealth_melee', 20) - actor.removeSkillMod('expertise_dot_damage_line_sp_stealth_ranged', 20) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_cloak_and_dagger_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_cloak_and_dagger_2") return diff --git a/scripts/expertise/expertise_sp_cloak_and_dagger_3.py b/scripts/expertise/expertise_sp_cloak_and_dagger_3.py index 977c7b67..c46d0390 100644 --- a/scripts/expertise/expertise_sp_cloak_and_dagger_3.py +++ b/scripts/expertise/expertise_sp_cloak_and_dagger_3.py @@ -1,54 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_cloak_and_dagger_3') - - actor.addSkillMod('expertise_damage_line_sp_stealth_melee', 20) - actor.addSkillMod('expertise_damage_line_sp_stealth_ranged', 20) - actor.addSkillMod('expertise_dot_damage_line_sp_stealth_melee', 20) - actor.addSkillMod('expertise_dot_damage_line_sp_stealth_ranged', 20) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_cloak_and_dagger_3') - - actor.removeSkillMod('expertise_damage_line_sp_stealth_melee', 20) - actor.removeSkillMod('expertise_damage_line_sp_stealth_ranged', 20) - actor.removeSkillMod('expertise_dot_damage_line_sp_stealth_melee', 20) - actor.removeSkillMod('expertise_dot_damage_line_sp_stealth_ranged', 20) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_cloak_and_dagger_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_cloak_and_dagger_3") return diff --git a/scripts/expertise/expertise_sp_cloak_and_dagger_4.py b/scripts/expertise/expertise_sp_cloak_and_dagger_4.py index bc53f9a9..7e78d832 100644 --- a/scripts/expertise/expertise_sp_cloak_and_dagger_4.py +++ b/scripts/expertise/expertise_sp_cloak_and_dagger_4.py @@ -1,54 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_cloak_and_dagger_4') - - actor.addSkillMod('expertise_damage_line_sp_stealth_melee', 20) - actor.addSkillMod('expertise_damage_line_sp_stealth_ranged', 20) - actor.addSkillMod('expertise_dot_damage_line_sp_stealth_melee', 20) - actor.addSkillMod('expertise_dot_damage_line_sp_stealth_ranged', 20) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_cloak_and_dagger_4') - - actor.removeSkillMod('expertise_damage_line_sp_stealth_melee', 20) - actor.removeSkillMod('expertise_damage_line_sp_stealth_ranged', 20) - actor.removeSkillMod('expertise_dot_damage_line_sp_stealth_melee', 20) - actor.removeSkillMod('expertise_dot_damage_line_sp_stealth_ranged', 20) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_cloak_and_dagger_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_cloak_and_dagger_4") return diff --git a/scripts/expertise/expertise_sp_cloaked_attacks_1.py b/scripts/expertise/expertise_sp_cloaked_attacks_1.py index d96a977e..d26c9bc6 100644 --- a/scripts/expertise/expertise_sp_cloaked_attacks_1.py +++ b/scripts/expertise/expertise_sp_cloaked_attacks_1.py @@ -1,48 +1,51 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_cloaked_attacks_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_cloaked_attacks_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sp_ambush_snipe_0') - + if actor.getLevel() >= 4: + actor.addAbility("sp_hd_melee_0") + if actor.getLevel() >= 12: + actor.addAbility("sp_hd_melee_1") + if actor.getLevel() >= 20: + actor.addAbility("sp_hd_melee_2") + if actor.getLevel() >= 30: + actor.addAbility("sp_hd_melee_3") + if actor.getLevel() >= 38: + actor.addAbility("sp_hd_melee_4") + if actor.getLevel() >= 52: + actor.addAbility("sp_hd_melee_5") + if actor.getLevel() >= 62: + actor.addAbility("sp_hd_melee_6") + + if actor.getLevel() >= 4: + actor.addAbility("sp_hd_range_0") + if actor.getLevel() >= 12: + actor.addAbility("sp_hd_range_1") + if actor.getLevel() >= 20: + actor.addAbility("sp_hd_range_2") + if actor.getLevel() >= 30: + actor.addAbility("sp_hd_range_3") + if actor.getLevel() >= 38: + actor.addAbility("sp_hd_range_4") + if actor.getLevel() >= 52: + actor.addAbility("sp_hd_range_5") + if actor.getLevel() >= 62: + actor.addAbility("sp_hd_range_6") return def removeAbilities(core, actor, player): - - actor.removeAbility('sp_ambush_snipe_0') - + actor.removeAbility("sp_hd_melee_0") + actor.removeAbility("sp_hd_melee_1") + actor.removeAbility("sp_hd_melee_2") + actor.removeAbility("sp_hd_melee_3") + actor.removeAbility("sp_hd_melee_4") + actor.removeAbility("sp_hd_melee_5") + actor.removeAbility("sp_hd_melee_6") + + actor.removeAbility("sp_hd_range_0") + actor.removeAbility("sp_hd_range_1") + actor.removeAbility("sp_hd_range_2") + actor.removeAbility("sp_hd_range_3") + actor.removeAbility("sp_hd_range_4") + actor.removeAbility("sp_hd_range_5") + actor.removeAbility("sp_hd_range_6") return diff --git a/scripts/expertise/expertise_sp_cloaked_recovery_1.py b/scripts/expertise/expertise_sp_cloaked_recovery_1.py index 17e8cb25..1e39f694 100644 --- a/scripts/expertise/expertise_sp_cloaked_recovery_1.py +++ b/scripts/expertise/expertise_sp_cloaked_recovery_1.py @@ -1,48 +1,22 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_cloaked_recovery_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_cloaked_recovery_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sp_cloaked_recovery_0') - + if actor.getLevel() >= 26: + actor.addAbility("sp_cloaked_recovery_0") + if actor.getLevel() >= 34: + actor.addAbility("sp_cloaked_recovery_1") + if actor.getLevel() >= 48: + actor.addAbility("sp_cloaked_recovery_2") + if actor.getLevel() >= 62: + actor.addAbility("sp_cloaked_recovery_3") + if actor.getLevel() >= 76: + actor.addAbility("sp_cloaked_recovery_4") return def removeAbilities(core, actor, player): - - actor.removeAbility('sp_cloaked_recovery_0') - + actor.removeAbility("sp_cloaked_recovery_0") + actor.removeAbility("sp_cloaked_recovery_1") + actor.removeAbility("sp_cloaked_recovery_2") + actor.removeAbility("sp_cloaked_recovery_3") + actor.removeAbility("sp_cloaked_recovery_4") return diff --git a/scripts/expertise/expertise_sp_cloaking_armor_1.py b/scripts/expertise/expertise_sp_cloaking_armor_1.py index 80d1afc1..4d29b500 100644 --- a/scripts/expertise/expertise_sp_cloaking_armor_1.py +++ b/scripts/expertise/expertise_sp_cloaking_armor_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_cloaking_armor_1') - - actor.addSkillMod('camouflage', 35) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_cloaking_armor_1') - - actor.removeSkillMod('camouflage', 35) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_cloaking_armor_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_cloaking_armor_1") return diff --git a/scripts/expertise/expertise_sp_cloaking_armor_2.py b/scripts/expertise/expertise_sp_cloaking_armor_2.py index 79cb0d6f..7aef08d8 100644 --- a/scripts/expertise/expertise_sp_cloaking_armor_2.py +++ b/scripts/expertise/expertise_sp_cloaking_armor_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_cloaking_armor_2') - - actor.addSkillMod('camouflage', 40) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_cloaking_armor_2') - - actor.removeSkillMod('camouflage', 40) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_cloaking_armor_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_cloaking_armor_2") return diff --git a/scripts/expertise/expertise_sp_close_quarters_1.py b/scripts/expertise/expertise_sp_close_quarters_1.py index 7f47d8c4..e98a053f 100644 --- a/scripts/expertise/expertise_sp_close_quarters_1.py +++ b/scripts/expertise/expertise_sp_close_quarters_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_close_quarters_1') - - actor.addSkillMod('expertise_damage_melee', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_close_quarters_1') - - actor.removeSkillMod('expertise_damage_melee', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_close_quarters_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_close_quarters_1") return diff --git a/scripts/expertise/expertise_sp_close_quarters_2.py b/scripts/expertise/expertise_sp_close_quarters_2.py index 11685e64..6a94d3e4 100644 --- a/scripts/expertise/expertise_sp_close_quarters_2.py +++ b/scripts/expertise/expertise_sp_close_quarters_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_close_quarters_2') - - actor.addSkillMod('expertise_damage_melee', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_close_quarters_2') - - actor.removeSkillMod('expertise_damage_melee', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_close_quarters_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_close_quarters_2") return diff --git a/scripts/expertise/expertise_sp_close_quarters_3.py b/scripts/expertise/expertise_sp_close_quarters_3.py index ee025e54..3b9e0088 100644 --- a/scripts/expertise/expertise_sp_close_quarters_3.py +++ b/scripts/expertise/expertise_sp_close_quarters_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_close_quarters_3') - - actor.addSkillMod('expertise_damage_melee', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_close_quarters_3') - - actor.removeSkillMod('expertise_damage_melee', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_close_quarters_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_close_quarters_3") return diff --git a/scripts/expertise/expertise_sp_covert_mastery_1.py b/scripts/expertise/expertise_sp_covert_mastery_1.py index 114d70b6..56e5d7df 100644 --- a/scripts/expertise/expertise_sp_covert_mastery_1.py +++ b/scripts/expertise/expertise_sp_covert_mastery_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_covert_mastery_1') - - actor.addSkillMod('expertise_covert_mastery', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_covert_mastery_1') - - actor.removeSkillMod('expertise_covert_mastery', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_covert_mastery_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_covert_mastery_1") return diff --git a/scripts/expertise/expertise_sp_crippling_traps_1.py b/scripts/expertise/expertise_sp_crippling_traps_1.py index 9189c956..f414594b 100644 --- a/scripts/expertise/expertise_sp_crippling_traps_1.py +++ b/scripts/expertise/expertise_sp_crippling_traps_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_crippling_traps_1') - - actor.addSkillMod('expertise_sp_cripple_trap_proc_increase', 50) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_crippling_traps_1') - - actor.removeSkillMod('expertise_sp_cripple_trap_proc_increase', 50) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_crippling_traps_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_crippling_traps_1") return diff --git a/scripts/expertise/expertise_sp_crippling_traps_2.py b/scripts/expertise/expertise_sp_crippling_traps_2.py index c7b2170e..f5899f9c 100644 --- a/scripts/expertise/expertise_sp_crippling_traps_2.py +++ b/scripts/expertise/expertise_sp_crippling_traps_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_crippling_traps_2') - - actor.addSkillMod('expertise_sp_cripple_trap_proc_increase', 50) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_crippling_traps_2') - - actor.removeSkillMod('expertise_sp_cripple_trap_proc_increase', 50) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_crippling_traps_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_crippling_traps_2") return diff --git a/scripts/expertise/expertise_sp_deadly_pistols_1.py b/scripts/expertise/expertise_sp_deadly_pistols_1.py index fc98249a..16e02540 100644 --- a/scripts/expertise/expertise_sp_deadly_pistols_1.py +++ b/scripts/expertise/expertise_sp_deadly_pistols_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_deadly_pistols_1') - - actor.addSkillMod('expertise_damage_ranged', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_deadly_pistols_1') - - actor.removeSkillMod('expertise_damage_ranged', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_deadly_pistols_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_deadly_pistols_1") return diff --git a/scripts/expertise/expertise_sp_deadly_pistols_2.py b/scripts/expertise/expertise_sp_deadly_pistols_2.py index 6f51bb5e..dc23941c 100644 --- a/scripts/expertise/expertise_sp_deadly_pistols_2.py +++ b/scripts/expertise/expertise_sp_deadly_pistols_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_deadly_pistols_2') - - actor.addSkillMod('expertise_damage_ranged', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_deadly_pistols_2') - - actor.removeSkillMod('expertise_damage_ranged', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_deadly_pistols_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_deadly_pistols_2") return diff --git a/scripts/expertise/expertise_sp_deadly_pistols_3.py b/scripts/expertise/expertise_sp_deadly_pistols_3.py index 2e75294c..42077da1 100644 --- a/scripts/expertise/expertise_sp_deadly_pistols_3.py +++ b/scripts/expertise/expertise_sp_deadly_pistols_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_deadly_pistols_3') - - actor.addSkillMod('expertise_damage_ranged', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_deadly_pistols_3') - - actor.removeSkillMod('expertise_damage_ranged', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_deadly_pistols_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_deadly_pistols_3") return diff --git a/scripts/expertise/expertise_sp_deadly_toxins_1.py b/scripts/expertise/expertise_sp_deadly_toxins_1.py index 7e8dc0c9..cc5432e9 100644 --- a/scripts/expertise/expertise_sp_deadly_toxins_1.py +++ b/scripts/expertise/expertise_sp_deadly_toxins_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_deadly_toxins_1') - - actor.addSkillMod('expertise_critical_line_fldmot', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_deadly_toxins_1') - - actor.removeSkillMod('expertise_critical_line_fldmot', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_deadly_toxins_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_deadly_toxins_1") return diff --git a/scripts/expertise/expertise_sp_deadly_toxins_2.py b/scripts/expertise/expertise_sp_deadly_toxins_2.py index 1995b0dc..f5f3be36 100644 --- a/scripts/expertise/expertise_sp_deadly_toxins_2.py +++ b/scripts/expertise/expertise_sp_deadly_toxins_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_deadly_toxins_2') - - actor.addSkillMod('expertise_critical_line_fldmot', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_deadly_toxins_2') - - actor.removeSkillMod('expertise_critical_line_fldmot', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_deadly_toxins_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_deadly_toxins_2") return diff --git a/scripts/expertise/expertise_sp_decoy_1.py b/scripts/expertise/expertise_sp_decoy_1.py index 4888c20c..50f9dcc6 100644 --- a/scripts/expertise/expertise_sp_decoy_1.py +++ b/scripts/expertise/expertise_sp_decoy_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_decoy_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_decoy_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sp_decoy') - + actor.addAbility("sp_decoy") return def removeAbilities(core, actor, player): - - actor.removeAbility('sp_decoy') - + actor.removeAbility("sp_decoy") return diff --git a/scripts/expertise/expertise_sp_diversion_1.py b/scripts/expertise/expertise_sp_diversion_1.py index aa564906..fdd847e9 100644 --- a/scripts/expertise/expertise_sp_diversion_1.py +++ b/scripts/expertise/expertise_sp_diversion_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_diversion_1') - - actor.addSkillMod('expertise_improved_decoy', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_diversion_1') - - actor.removeSkillMod('expertise_improved_decoy', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_diversion_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_diversion_1") return diff --git a/scripts/expertise/expertise_sp_diversion_2.py b/scripts/expertise/expertise_sp_diversion_2.py index d8b6c134..7dddf6ba 100644 --- a/scripts/expertise/expertise_sp_diversion_2.py +++ b/scripts/expertise/expertise_sp_diversion_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_diversion_2') - - actor.addSkillMod('expertise_improved_decoy', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_diversion_2') - - actor.removeSkillMod('expertise_improved_decoy', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_diversion_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_diversion_2") return diff --git a/scripts/expertise/expertise_sp_equilibrium.py b/scripts/expertise/expertise_sp_equilibrium.py index d42cdb4d..1ebdcbd1 100644 --- a/scripts/expertise/expertise_sp_equilibrium.py +++ b/scripts/expertise/expertise_sp_equilibrium.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_equilibrium') - - actor.addSkillMod('freeshot_case_miss', 1) - actor.addSkillMod('freeshot_case_dodge', 1) - actor.addSkillMod('freeshot_case_parry', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_equilibrium') - - actor.removeSkillMod('freeshot_case_miss', 1) - actor.removeSkillMod('freeshot_case_dodge', 1) - actor.removeSkillMod('freeshot_case_parry', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_equilibrium") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_equilibrium") return diff --git a/scripts/expertise/expertise_sp_expose_shadows_1.py b/scripts/expertise/expertise_sp_expose_shadows_1.py index 4b08472a..22769831 100644 --- a/scripts/expertise/expertise_sp_expose_shadows_1.py +++ b/scripts/expertise/expertise_sp_expose_shadows_1.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_expose_shadows_1') - - actor.addSkillMod('expertise_sp_reveal_shadows_distance_increase', 5) - actor.addSkillMod('expertise_sp_reveal_shadows_detect_chance_increase', 3) - actor.addSkillMod('expertise_cooldown_line_sp_reveal_shadows', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_expose_shadows_1') - - actor.removeSkillMod('expertise_sp_reveal_shadows_distance_increase', 5) - actor.removeSkillMod('expertise_sp_reveal_shadows_detect_chance_increase', 3) - actor.removeSkillMod('expertise_cooldown_line_sp_reveal_shadows', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_expose_shadows_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_expose_shadows_1") return diff --git a/scripts/expertise/expertise_sp_expose_shadows_2.py b/scripts/expertise/expertise_sp_expose_shadows_2.py index 79a4cf58..ff7f014f 100644 --- a/scripts/expertise/expertise_sp_expose_shadows_2.py +++ b/scripts/expertise/expertise_sp_expose_shadows_2.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_expose_shadows_2') - - actor.addSkillMod('expertise_sp_reveal_shadows_distance_increase', 5) - actor.addSkillMod('expertise_sp_reveal_shadows_detect_chance_increase', 3) - actor.addSkillMod('expertise_cooldown_line_sp_reveal_shadows', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_expose_shadows_2') - - actor.removeSkillMod('expertise_sp_reveal_shadows_distance_increase', 5) - actor.removeSkillMod('expertise_sp_reveal_shadows_detect_chance_increase', 3) - actor.removeSkillMod('expertise_cooldown_line_sp_reveal_shadows', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_expose_shadows_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_expose_shadows_2") return diff --git a/scripts/expertise/expertise_sp_expose_shadows_3.py b/scripts/expertise/expertise_sp_expose_shadows_3.py index 648a6cb4..209eb428 100644 --- a/scripts/expertise/expertise_sp_expose_shadows_3.py +++ b/scripts/expertise/expertise_sp_expose_shadows_3.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_expose_shadows_3') - - actor.addSkillMod('expertise_sp_reveal_shadows_distance_increase', 5) - actor.addSkillMod('expertise_sp_reveal_shadows_detect_chance_increase', 3) - actor.addSkillMod('expertise_cooldown_line_sp_reveal_shadows', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_expose_shadows_3') - - actor.removeSkillMod('expertise_sp_reveal_shadows_distance_increase', 5) - actor.removeSkillMod('expertise_sp_reveal_shadows_detect_chance_increase', 3) - actor.removeSkillMod('expertise_cooldown_line_sp_reveal_shadows', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_expose_shadows_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_expose_shadows_3") return diff --git a/scripts/expertise/expertise_sp_expose_shadows_4.py b/scripts/expertise/expertise_sp_expose_shadows_4.py index cce077b5..2afdddf2 100644 --- a/scripts/expertise/expertise_sp_expose_shadows_4.py +++ b/scripts/expertise/expertise_sp_expose_shadows_4.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_expose_shadows_4') - - actor.addSkillMod('expertise_sp_reveal_shadows_distance_increase', 5) - actor.addSkillMod('expertise_sp_reveal_shadows_detect_chance_increase', 3) - actor.addSkillMod('expertise_cooldown_line_sp_reveal_shadows', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_expose_shadows_4') - - actor.removeSkillMod('expertise_sp_reveal_shadows_distance_increase', 5) - actor.removeSkillMod('expertise_sp_reveal_shadows_detect_chance_increase', 3) - actor.removeSkillMod('expertise_cooldown_line_sp_reveal_shadows', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_expose_shadows_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_expose_shadows_4") return diff --git a/scripts/expertise/expertise_sp_glancing_armor_1.py b/scripts/expertise/expertise_sp_glancing_armor_1.py index 2bc35f22..f1e04872 100644 --- a/scripts/expertise/expertise_sp_glancing_armor_1.py +++ b/scripts/expertise/expertise_sp_glancing_armor_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_glancing_armor_1') - - actor.addSkillMod('expertise_dodge', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_glancing_armor_1') - - actor.removeSkillMod('expertise_dodge', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_glancing_armor_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_glancing_armor_1") return diff --git a/scripts/expertise/expertise_sp_glancing_armor_2.py b/scripts/expertise/expertise_sp_glancing_armor_2.py index 84e0e50d..42c8c808 100644 --- a/scripts/expertise/expertise_sp_glancing_armor_2.py +++ b/scripts/expertise/expertise_sp_glancing_armor_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_glancing_armor_2') - - actor.addSkillMod('expertise_dodge', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_glancing_armor_2') - - actor.removeSkillMod('expertise_dodge', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_glancing_armor_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_glancing_armor_2") return diff --git a/scripts/expertise/expertise_sp_hidden_daggers_1.py b/scripts/expertise/expertise_sp_hidden_daggers_1.py index 2b947a0c..9aaf8abb 100644 --- a/scripts/expertise/expertise_sp_hidden_daggers_1.py +++ b/scripts/expertise/expertise_sp_hidden_daggers_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_hidden_daggers_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_hidden_daggers_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sp_hd_ability_0') - + actor.addAbility("sp_hd_ability_1") return def removeAbilities(core, actor, player): - - actor.removeAbility('sp_hd_ability_0') - + actor.removeAbility("sp_hd_ability_1") return diff --git a/scripts/expertise/expertise_sp_hidden_daggers_2.py b/scripts/expertise/expertise_sp_hidden_daggers_2.py new file mode 100644 index 00000000..9b197112 --- /dev/null +++ b/scripts/expertise/expertise_sp_hidden_daggers_2.py @@ -0,0 +1,9 @@ +import sys + +def addAbilities(core, actor, player): + actor.addAbility("sp_hd_range_0") + return + +def removeAbilities(core, actor, player): + actor.removeAbility("sp_hd_range_0") + return diff --git a/scripts/expertise/expertise_sp_improved_arachnids_web_1.py b/scripts/expertise/expertise_sp_improved_arachnids_web_1.py new file mode 100644 index 00000000..b9c80355 --- /dev/null +++ b/scripts/expertise/expertise_sp_improved_arachnids_web_1.py @@ -0,0 +1,19 @@ +import sys + +def addAbilities(core, actor, player): + if actor.getLevel() >= 34: + actor.addAbility("sp_improved_cc_dot_1") + if actor.getLevel() >= 50: + actor.addAbility("sp_improved_cc_dot_2") + if actor.getLevel() >= 66: + actor.addAbility("sp_improved_cc_dot_3") + if actor.getLevel() >= 82: + actor.addAbility("sp_improved_cc_dot_4") + return + +def removeAbilities(core, actor, player): + actor.removeAbility("sp_improved_cc_dot_1") + actor.removeAbility("sp_improved_cc_dot_2") + actor.removeAbility("sp_improved_cc_dot_3") + actor.removeAbility("sp_improved_cc_dot_4") + return diff --git a/scripts/expertise/expertise_sp_improved_first_aid_1.py b/scripts/expertise/expertise_sp_improved_first_aid_1.py index 302ef8e0..7e866996 100644 --- a/scripts/expertise/expertise_sp_improved_first_aid_1.py +++ b/scripts/expertise/expertise_sp_improved_first_aid_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_improved_first_aid_1') - - actor.addSkillMod('expertise_target_healing_bonus', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_improved_first_aid_1') - - actor.removeSkillMod('expertise_target_healing_bonus', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_improved_first_aid_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_improved_first_aid_1") return diff --git a/scripts/expertise/expertise_sp_improved_first_aid_2.py b/scripts/expertise/expertise_sp_improved_first_aid_2.py index 5c810822..cec8de8b 100644 --- a/scripts/expertise/expertise_sp_improved_first_aid_2.py +++ b/scripts/expertise/expertise_sp_improved_first_aid_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_improved_first_aid_2') - - actor.addSkillMod('expertise_target_healing_bonus', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_improved_first_aid_2') - - actor.removeSkillMod('expertise_target_healing_bonus', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_improved_first_aid_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_improved_first_aid_2") return diff --git a/scripts/expertise/expertise_sp_improved_spys_fang_1.py b/scripts/expertise/expertise_sp_improved_spys_fang_1.py index a91bbc75..c30afb6b 100644 --- a/scripts/expertise/expertise_sp_improved_spys_fang_1.py +++ b/scripts/expertise/expertise_sp_improved_spys_fang_1.py @@ -1,48 +1,25 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_improved_spys_fang_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_improved_spys_fang_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sp_dot_0') - + if actor.getLevel() >= 26: + actor.addAbility("sp_dot_0") + if actor.getLevel() >= 34: + actor.addAbility("sp_dot_1") + if actor.getLevel() >= 48: + actor.addAbility("sp_dot_2") + if actor.getLevel() >= 62: + actor.addAbility("sp_dot_3") + if actor.getLevel() >= 76: + actor.addAbility("sp_dot_4") + if actor.getLevel() >= 90: + actor.addAbility("sp_dot_5") return def removeAbilities(core, actor, player): - - actor.removeAbility('sp_dot_0') - + actor.removeAbility("sp_dot_0") + actor.removeAbility("sp_dot_1") + actor.removeAbility("sp_dot_2") + actor.removeAbility("sp_dot_3") + actor.removeAbility("sp_dot_4") + actor.removeAbility("sp_dot_5") return diff --git a/scripts/expertise/expertise_sp_increased_agility_1.py b/scripts/expertise/expertise_sp_increased_agility_1.py index e3c8d957..3b62fbf5 100644 --- a/scripts/expertise/expertise_sp_increased_agility_1.py +++ b/scripts/expertise/expertise_sp_increased_agility_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_increased_agility_1') - - actor.addSkillMod('agility_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_increased_agility_1') - - actor.removeSkillMod('agility_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_increased_agility_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_increased_agility_1") return diff --git a/scripts/expertise/expertise_sp_increased_agility_2.py b/scripts/expertise/expertise_sp_increased_agility_2.py index b5728cc0..dea0db05 100644 --- a/scripts/expertise/expertise_sp_increased_agility_2.py +++ b/scripts/expertise/expertise_sp_increased_agility_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_increased_agility_2') - - actor.addSkillMod('agility_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_increased_agility_2') - - actor.removeSkillMod('agility_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_increased_agility_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_increased_agility_2") return diff --git a/scripts/expertise/expertise_sp_increased_strength_1.py b/scripts/expertise/expertise_sp_increased_strength_1.py index 005cf60d..b1bec56f 100644 --- a/scripts/expertise/expertise_sp_increased_strength_1.py +++ b/scripts/expertise/expertise_sp_increased_strength_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_increased_strength_1') - - actor.addSkillMod('strength_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_increased_strength_1') - - actor.removeSkillMod('strength_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_increased_strength_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_increased_strength_1") return diff --git a/scripts/expertise/expertise_sp_increased_strength_2.py b/scripts/expertise/expertise_sp_increased_strength_2.py index 16b7b90f..ae61711d 100644 --- a/scripts/expertise/expertise_sp_increased_strength_2.py +++ b/scripts/expertise/expertise_sp_increased_strength_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_increased_strength_2') - - actor.addSkillMod('strength_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_increased_strength_2') - - actor.removeSkillMod('strength_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_increased_strength_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_increased_strength_2") return diff --git a/scripts/expertise/expertise_sp_initiative_1.py b/scripts/expertise/expertise_sp_initiative_1.py index edb3db3d..9032c21a 100644 --- a/scripts/expertise/expertise_sp_initiative_1.py +++ b/scripts/expertise/expertise_sp_initiative_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_initiative_1') - - actor.addSkillMod('expertise_critical_line_sp_stealth_melee', 15) - actor.addSkillMod('expertise_critical_line_sp_stealth_ranged', 15) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_initiative_1') - - actor.removeSkillMod('expertise_critical_line_sp_stealth_melee', 15) - actor.removeSkillMod('expertise_critical_line_sp_stealth_ranged', 15) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_initiative_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_initiative_1") return diff --git a/scripts/expertise/expertise_sp_initiative_2.py b/scripts/expertise/expertise_sp_initiative_2.py index fefb02bf..ea719348 100644 --- a/scripts/expertise/expertise_sp_initiative_2.py +++ b/scripts/expertise/expertise_sp_initiative_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_initiative_2') - - actor.addSkillMod('expertise_critical_line_sp_stealth_melee', 15) - actor.addSkillMod('expertise_critical_line_sp_stealth_ranged', 15) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_initiative_2') - - actor.removeSkillMod('expertise_critical_line_sp_stealth_melee', 15) - actor.removeSkillMod('expertise_critical_line_sp_stealth_ranged', 15) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_initiative_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_initiative_2") return diff --git a/scripts/expertise/expertise_sp_initiative_3.py b/scripts/expertise/expertise_sp_initiative_3.py index 56a20d27..15748ad9 100644 --- a/scripts/expertise/expertise_sp_initiative_3.py +++ b/scripts/expertise/expertise_sp_initiative_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_initiative_3') - - actor.addSkillMod('expertise_critical_line_sp_stealth_melee', 15) - actor.addSkillMod('expertise_critical_line_sp_stealth_ranged', 15) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_initiative_3') - - actor.removeSkillMod('expertise_critical_line_sp_stealth_melee', 15) - actor.removeSkillMod('expertise_critical_line_sp_stealth_ranged', 15) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_initiative_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_initiative_3") return diff --git a/scripts/expertise/expertise_sp_initiative_4.py b/scripts/expertise/expertise_sp_initiative_4.py index a3847b2a..d013c718 100644 --- a/scripts/expertise/expertise_sp_initiative_4.py +++ b/scripts/expertise/expertise_sp_initiative_4.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_initiative_4') - - actor.addSkillMod('expertise_critical_line_sp_stealth_melee', 15) - actor.addSkillMod('expertise_critical_line_sp_stealth_ranged', 15) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_initiative_4') - - actor.removeSkillMod('expertise_critical_line_sp_stealth_melee', 15) - actor.removeSkillMod('expertise_critical_line_sp_stealth_ranged', 15) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_initiative_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_initiative_4") return diff --git a/scripts/expertise/expertise_sp_jagged_edge_1.py b/scripts/expertise/expertise_sp_jagged_edge_1.py index 3b094630..2043cb12 100644 --- a/scripts/expertise/expertise_sp_jagged_edge_1.py +++ b/scripts/expertise/expertise_sp_jagged_edge_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_jagged_edge_1') - - actor.addSkillMod('expertise_critical_damage_increase', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_jagged_edge_1') - - actor.removeSkillMod('expertise_critical_damage_increase', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_jagged_edge_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_jagged_edge_1") return diff --git a/scripts/expertise/expertise_sp_jagged_edge_2.py b/scripts/expertise/expertise_sp_jagged_edge_2.py index b63c3a03..4360a1af 100644 --- a/scripts/expertise/expertise_sp_jagged_edge_2.py +++ b/scripts/expertise/expertise_sp_jagged_edge_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_jagged_edge_2') - - actor.addSkillMod('expertise_critical_damage_increase', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_jagged_edge_2') - - actor.removeSkillMod('expertise_critical_damage_increase', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_jagged_edge_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_jagged_edge_2") return diff --git a/scripts/expertise/expertise_sp_jagged_edge_3.py b/scripts/expertise/expertise_sp_jagged_edge_3.py index 467a8ecb..e2d8f310 100644 --- a/scripts/expertise/expertise_sp_jagged_edge_3.py +++ b/scripts/expertise/expertise_sp_jagged_edge_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_jagged_edge_3') - - actor.addSkillMod('expertise_critical_damage_increase', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_jagged_edge_3') - - actor.removeSkillMod('expertise_critical_damage_increase', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_jagged_edge_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_jagged_edge_3") return diff --git a/scripts/expertise/expertise_sp_noxious_traps_1.py b/scripts/expertise/expertise_sp_noxious_traps_1.py index 6bdcfe7d..8bf68635 100644 --- a/scripts/expertise/expertise_sp_noxious_traps_1.py +++ b/scripts/expertise/expertise_sp_noxious_traps_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_noxious_traps_1') - - actor.addSkillMod('expertise_damage_line_fldmot', 15) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_noxious_traps_1') - - actor.removeSkillMod('expertise_damage_line_fldmot', 15) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_noxious_traps_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_noxious_traps_1") return diff --git a/scripts/expertise/expertise_sp_noxious_traps_2.py b/scripts/expertise/expertise_sp_noxious_traps_2.py index 27dbf617..3d684ce2 100644 --- a/scripts/expertise/expertise_sp_noxious_traps_2.py +++ b/scripts/expertise/expertise_sp_noxious_traps_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_noxious_traps_2') - - actor.addSkillMod('expertise_damage_line_fldmot', 15) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_noxious_traps_2') - - actor.removeSkillMod('expertise_damage_line_fldmot', 15) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_noxious_traps_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_noxious_traps_2") return diff --git a/scripts/expertise/expertise_sp_opportunity_1.py b/scripts/expertise/expertise_sp_opportunity_1.py index a775b549..ce63f8f1 100644 --- a/scripts/expertise/expertise_sp_opportunity_1.py +++ b/scripts/expertise/expertise_sp_opportunity_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_opportunity_1') - - actor.addSkillMod('expertise_critical_niche_all', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_opportunity_1') - - actor.removeSkillMod('expertise_critical_niche_all', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_opportunity_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_opportunity_1") return diff --git a/scripts/expertise/expertise_sp_opportunity_2.py b/scripts/expertise/expertise_sp_opportunity_2.py index d8a596ae..92941b78 100644 --- a/scripts/expertise/expertise_sp_opportunity_2.py +++ b/scripts/expertise/expertise_sp_opportunity_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_opportunity_2') - - actor.addSkillMod('expertise_critical_niche_all', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_opportunity_2') - - actor.removeSkillMod('expertise_critical_niche_all', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_opportunity_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_opportunity_2") return diff --git a/scripts/expertise/expertise_sp_opportunity_3.py b/scripts/expertise/expertise_sp_opportunity_3.py index 92872b63..f69db076 100644 --- a/scripts/expertise/expertise_sp_opportunity_3.py +++ b/scripts/expertise/expertise_sp_opportunity_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_opportunity_3') - - actor.addSkillMod('expertise_critical_niche_all', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_opportunity_3') - - actor.removeSkillMod('expertise_critical_niche_all', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_opportunity_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_opportunity_3") return diff --git a/scripts/expertise/expertise_sp_opportunity_4.py b/scripts/expertise/expertise_sp_opportunity_4.py index 021557d0..5c11573c 100644 --- a/scripts/expertise/expertise_sp_opportunity_4.py +++ b/scripts/expertise/expertise_sp_opportunity_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_opportunity_4') - - actor.addSkillMod('expertise_critical_niche_all', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_opportunity_4') - - actor.removeSkillMod('expertise_critical_niche_all', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_opportunity_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_opportunity_4") return diff --git a/scripts/expertise/expertise_sp_precision_1.py b/scripts/expertise/expertise_sp_precision_1.py index 0838078e..fc82b38c 100644 --- a/scripts/expertise/expertise_sp_precision_1.py +++ b/scripts/expertise/expertise_sp_precision_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_precision_1') - - actor.addSkillMod('precision_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_precision_1') - - actor.removeSkillMod('precision_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_precision_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_precision_1") return diff --git a/scripts/expertise/expertise_sp_precision_2.py b/scripts/expertise/expertise_sp_precision_2.py index 646d2555..7dbf6345 100644 --- a/scripts/expertise/expertise_sp_precision_2.py +++ b/scripts/expertise/expertise_sp_precision_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_precision_2') - - actor.addSkillMod('precision_modified', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_precision_2') - - actor.removeSkillMod('precision_modified', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_precision_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_precision_2") return diff --git a/scripts/expertise/expertise_sp_preparation_1.py b/scripts/expertise/expertise_sp_preparation_1.py index f9642ef1..4a81cc8f 100644 --- a/scripts/expertise/expertise_sp_preparation_1.py +++ b/scripts/expertise/expertise_sp_preparation_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_preparation_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_preparation_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sp_preparation') - + actor.addAbility("sp_preparation") return def removeAbilities(core, actor, player): - - actor.removeAbility('sp_preparation') - + actor.removeAbility("sp_preparation") return diff --git a/scripts/expertise/expertise_sp_protective_armor_1.py b/scripts/expertise/expertise_sp_protective_armor_1.py index cc1f4fce..e4b17d21 100644 --- a/scripts/expertise/expertise_sp_protective_armor_1.py +++ b/scripts/expertise/expertise_sp_protective_armor_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_protective_armor_1') - - actor.addSkillMod('expertise_innate_protection_kinetic', 300) - actor.addSkillMod('expertise_innate_protection_energy', 300) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_protective_armor_1') - - actor.removeSkillMod('expertise_innate_protection_kinetic', 300) - actor.removeSkillMod('expertise_innate_protection_energy', 300) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_protective_armor_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_protective_armor_1") return diff --git a/scripts/expertise/expertise_sp_protective_armor_2.py b/scripts/expertise/expertise_sp_protective_armor_2.py index d28b98fa..1e9e1495 100644 --- a/scripts/expertise/expertise_sp_protective_armor_2.py +++ b/scripts/expertise/expertise_sp_protective_armor_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_protective_armor_2') - - actor.addSkillMod('expertise_innate_protection_kinetic', 300) - actor.addSkillMod('expertise_innate_protection_energy', 300) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_protective_armor_2') - - actor.removeSkillMod('expertise_innate_protection_kinetic', 300) - actor.removeSkillMod('expertise_innate_protection_energy', 300) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_protective_armor_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_protective_armor_2") return diff --git a/scripts/expertise/expertise_sp_protective_armor_3.py b/scripts/expertise/expertise_sp_protective_armor_3.py index 362cf151..daaaae35 100644 --- a/scripts/expertise/expertise_sp_protective_armor_3.py +++ b/scripts/expertise/expertise_sp_protective_armor_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_protective_armor_3') - - actor.addSkillMod('expertise_innate_protection_kinetic', 300) - actor.addSkillMod('expertise_innate_protection_energy', 300) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_protective_armor_3') - - actor.removeSkillMod('expertise_innate_protection_kinetic', 300) - actor.removeSkillMod('expertise_innate_protection_energy', 300) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_protective_armor_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_protective_armor_3") return diff --git a/scripts/expertise/expertise_sp_protective_armor_4.py b/scripts/expertise/expertise_sp_protective_armor_4.py index 217d1cf2..14b113f9 100644 --- a/scripts/expertise/expertise_sp_protective_armor_4.py +++ b/scripts/expertise/expertise_sp_protective_armor_4.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_protective_armor_4') - - actor.addSkillMod('expertise_innate_protection_kinetic', 300) - actor.addSkillMod('expertise_innate_protection_energy', 300) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_protective_armor_4') - - actor.removeSkillMod('expertise_innate_protection_kinetic', 300) - actor.removeSkillMod('expertise_innate_protection_energy', 300) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_protective_armor_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_protective_armor_4") return diff --git a/scripts/expertise/expertise_sp_puncturing_strikes_1.py b/scripts/expertise/expertise_sp_puncturing_strikes_1.py index b6a49540..07849a4d 100644 --- a/scripts/expertise/expertise_sp_puncturing_strikes_1.py +++ b/scripts/expertise/expertise_sp_puncturing_strikes_1.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_puncturing_strikes_1') - - actor.addSkillMod('expertise_damage_line_sp_stealth_melee', 10) - actor.addSkillMod('expertise_damage_line_sp_hd_melee', 10) - actor.addSkillMod('expertise_damage_line_sp_stealth_ranged', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_puncturing_strikes_1') - - actor.removeSkillMod('expertise_damage_line_sp_stealth_melee', 10) - actor.removeSkillMod('expertise_damage_line_sp_hd_melee', 10) - actor.removeSkillMod('expertise_damage_line_sp_stealth_ranged', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_puncturing_strikes_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_puncturing_strikes_1") return diff --git a/scripts/expertise/expertise_sp_puncturing_strikes_2.py b/scripts/expertise/expertise_sp_puncturing_strikes_2.py index 9b72c541..d1526657 100644 --- a/scripts/expertise/expertise_sp_puncturing_strikes_2.py +++ b/scripts/expertise/expertise_sp_puncturing_strikes_2.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_puncturing_strikes_2') - - actor.addSkillMod('expertise_damage_line_sp_stealth_melee', 10) - actor.addSkillMod('expertise_damage_line_sp_hd_melee', 10) - actor.addSkillMod('expertise_damage_line_sp_stealth_ranged', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_puncturing_strikes_2') - - actor.removeSkillMod('expertise_damage_line_sp_stealth_melee', 10) - actor.removeSkillMod('expertise_damage_line_sp_hd_melee', 10) - actor.removeSkillMod('expertise_damage_line_sp_stealth_ranged', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_puncturing_strikes_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_puncturing_strikes_2") return diff --git a/scripts/expertise/expertise_sp_puncturing_strikes_3.py b/scripts/expertise/expertise_sp_puncturing_strikes_3.py index f744abd6..20173336 100644 --- a/scripts/expertise/expertise_sp_puncturing_strikes_3.py +++ b/scripts/expertise/expertise_sp_puncturing_strikes_3.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_puncturing_strikes_3') - - actor.addSkillMod('expertise_damage_line_sp_stealth_melee', 10) - actor.addSkillMod('expertise_damage_line_sp_hd_melee', 10) - actor.addSkillMod('expertise_damage_line_sp_stealth_ranged', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_puncturing_strikes_3') - - actor.removeSkillMod('expertise_damage_line_sp_stealth_melee', 10) - actor.removeSkillMod('expertise_damage_line_sp_hd_melee', 10) - actor.removeSkillMod('expertise_damage_line_sp_stealth_ranged', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_puncturing_strikes_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_puncturing_strikes_3") return diff --git a/scripts/expertise/expertise_sp_puncturing_strikes_4.py b/scripts/expertise/expertise_sp_puncturing_strikes_4.py index 4ff64223..858d86c0 100644 --- a/scripts/expertise/expertise_sp_puncturing_strikes_4.py +++ b/scripts/expertise/expertise_sp_puncturing_strikes_4.py @@ -1,52 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_puncturing_strikes_4') - - actor.addSkillMod('expertise_damage_line_sp_stealth_melee', 10) - actor.addSkillMod('expertise_damage_line_sp_hd_melee', 10) - actor.addSkillMod('expertise_damage_line_sp_stealth_ranged', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_puncturing_strikes_4') - - actor.removeSkillMod('expertise_damage_line_sp_stealth_melee', 10) - actor.removeSkillMod('expertise_damage_line_sp_hd_melee', 10) - actor.removeSkillMod('expertise_damage_line_sp_stealth_ranged', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_puncturing_strikes_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_puncturing_strikes_4") return diff --git a/scripts/expertise/expertise_sp_quiet_steps_1.py b/scripts/expertise/expertise_sp_quiet_steps_1.py index bf0844a0..a9ffb99e 100644 --- a/scripts/expertise/expertise_sp_quiet_steps_1.py +++ b/scripts/expertise/expertise_sp_quiet_steps_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_quiet_steps_1') - - actor.addSkillMod('expertise_avoidance_overpower', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_quiet_steps_1') - - actor.removeSkillMod('expertise_avoidance_overpower', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_quiet_steps_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_quiet_steps_1") return diff --git a/scripts/expertise/expertise_sp_quiet_steps_2.py b/scripts/expertise/expertise_sp_quiet_steps_2.py index e9cee417..9dc38491 100644 --- a/scripts/expertise/expertise_sp_quiet_steps_2.py +++ b/scripts/expertise/expertise_sp_quiet_steps_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_quiet_steps_2') - - actor.addSkillMod('expertise_avoidance_overpower', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_quiet_steps_2') - - actor.removeSkillMod('expertise_avoidance_overpower', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_quiet_steps_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_quiet_steps_2") return diff --git a/scripts/expertise/expertise_sp_rapid_concealment_1.py b/scripts/expertise/expertise_sp_rapid_concealment_1.py index a2e0ad1a..a9c2efb4 100644 --- a/scripts/expertise/expertise_sp_rapid_concealment_1.py +++ b/scripts/expertise/expertise_sp_rapid_concealment_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_rapid_concealment_1') - - actor.addSkillMod('expertise_cooldown_line_sp_smoke', 30) - actor.addSkillMod('expertise_cooldown_line_sp_burst_shadows', 30) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_rapid_concealment_1') - - actor.removeSkillMod('expertise_cooldown_line_sp_smoke', 30) - actor.removeSkillMod('expertise_cooldown_line_sp_burst_shadows', 30) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_rapid_concealment_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_rapid_concealment_1") return diff --git a/scripts/expertise/expertise_sp_rapid_concealment_2.py b/scripts/expertise/expertise_sp_rapid_concealment_2.py index 7ab413ab..5397db2e 100644 --- a/scripts/expertise/expertise_sp_rapid_concealment_2.py +++ b/scripts/expertise/expertise_sp_rapid_concealment_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_rapid_concealment_2') - - actor.addSkillMod('expertise_cooldown_line_sp_smoke', 30) - actor.addSkillMod('expertise_cooldown_line_sp_burst_shadows', 30) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_rapid_concealment_2') - - actor.removeSkillMod('expertise_cooldown_line_sp_smoke', 30) - actor.removeSkillMod('expertise_cooldown_line_sp_burst_shadows', 30) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_rapid_concealment_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_rapid_concealment_2") return diff --git a/scripts/expertise/expertise_sp_rapid_concealment_3.py b/scripts/expertise/expertise_sp_rapid_concealment_3.py index d8cc0332..ce36df91 100644 --- a/scripts/expertise/expertise_sp_rapid_concealment_3.py +++ b/scripts/expertise/expertise_sp_rapid_concealment_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_rapid_concealment_3') - - actor.addSkillMod('expertise_cooldown_line_sp_smoke', 30) - actor.addSkillMod('expertise_cooldown_line_sp_burst_shadows', 30) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_rapid_concealment_3') - - actor.removeSkillMod('expertise_cooldown_line_sp_smoke', 30) - actor.removeSkillMod('expertise_cooldown_line_sp_burst_shadows', 30) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_rapid_concealment_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_rapid_concealment_3") return diff --git a/scripts/expertise/expertise_sp_rapid_concealment_4.py b/scripts/expertise/expertise_sp_rapid_concealment_4.py index 179d007a..1b0d16bc 100644 --- a/scripts/expertise/expertise_sp_rapid_concealment_4.py +++ b/scripts/expertise/expertise_sp_rapid_concealment_4.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_rapid_concealment_4') - - actor.addSkillMod('expertise_cooldown_line_sp_smoke', 30) - actor.addSkillMod('expertise_cooldown_line_sp_burst_shadows', 30) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_rapid_concealment_4') - - actor.removeSkillMod('expertise_cooldown_line_sp_smoke', 30) - actor.removeSkillMod('expertise_cooldown_line_sp_burst_shadows', 30) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_rapid_concealment_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_rapid_concealment_4") return diff --git a/scripts/expertise/expertise_sp_resonance.py b/scripts/expertise/expertise_sp_resonance.py index 1f0fd64c..815f559a 100644 --- a/scripts/expertise/expertise_sp_resonance.py +++ b/scripts/expertise/expertise_sp_resonance.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_resonance') - - actor.addSkillMod('expertise_onstrikethrough_proc_sp_resonance', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_resonance') - - actor.removeSkillMod('expertise_onstrikethrough_proc_sp_resonance', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_resonance") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_resonance") return diff --git a/scripts/expertise/expertise_sp_reveal_shadows_1.py b/scripts/expertise/expertise_sp_reveal_shadows_1.py index 12bd2510..94e45084 100644 --- a/scripts/expertise/expertise_sp_reveal_shadows_1.py +++ b/scripts/expertise/expertise_sp_reveal_shadows_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_reveal_shadows_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_reveal_shadows_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sp_reveal_shadows') - + actor.addAbility("sp_reveal_shadows") return def removeAbilities(core, actor, player): - - actor.removeAbility('sp_reveal_shadows') - + actor.removeAbility("sp_reveal_shadows") return diff --git a/scripts/expertise/expertise_sp_run_its_course_1.py b/scripts/expertise/expertise_sp_run_its_course_1.py index 15365503..5534253b 100644 --- a/scripts/expertise/expertise_sp_run_its_course_1.py +++ b/scripts/expertise/expertise_sp_run_its_course_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_run_its_course_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_run_its_course_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sp_run_its_course') - + actor.addAbility("sp_run_its_course") return def removeAbilities(core, actor, player): - - actor.removeAbility('sp_run_its_course') - + actor.removeAbility("sp_run_its_course") return diff --git a/scripts/expertise/expertise_sp_savagery.py b/scripts/expertise/expertise_sp_savagery.py index fce6867c..b8522cc2 100644 --- a/scripts/expertise/expertise_sp_savagery.py +++ b/scripts/expertise/expertise_sp_savagery.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_savagery') - - actor.addSkillMod('expertise_oncrit_proc_sp_savagery', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_savagery') - - actor.removeSkillMod('expertise_oncrit_proc_sp_savagery', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_savagery") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_savagery") return diff --git a/scripts/expertise/expertise_sp_shadows_embrace_1.py b/scripts/expertise/expertise_sp_shadows_embrace_1.py index 8acb23d6..b0e83dee 100644 --- a/scripts/expertise/expertise_sp_shadows_embrace_1.py +++ b/scripts/expertise/expertise_sp_shadows_embrace_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_shadows_embrace_1') - - actor.addSkillMod('expertise_buff_duration_line_sp_burst_shadows', 2) - actor.addSkillMod('expertise_cooldown_line_sp_burst_shadows', 30) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_shadows_embrace_1') - - actor.removeSkillMod('expertise_buff_duration_line_sp_burst_shadows', 2) - actor.removeSkillMod('expertise_cooldown_line_sp_burst_shadows', 30) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_shadows_embrace_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_shadows_embrace_1") return diff --git a/scripts/expertise/expertise_sp_shadows_embrace_2.py b/scripts/expertise/expertise_sp_shadows_embrace_2.py index 7f894561..ccd8c71e 100644 --- a/scripts/expertise/expertise_sp_shadows_embrace_2.py +++ b/scripts/expertise/expertise_sp_shadows_embrace_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_shadows_embrace_2') - - actor.addSkillMod('expertise_buff_duration_line_sp_burst_shadows', 2) - actor.addSkillMod('expertise_cooldown_line_sp_burst_shadows', 30) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_shadows_embrace_2') - - actor.removeSkillMod('expertise_buff_duration_line_sp_burst_shadows', 2) - actor.removeSkillMod('expertise_cooldown_line_sp_burst_shadows', 30) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_shadows_embrace_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_shadows_embrace_2") return diff --git a/scripts/expertise/expertise_sp_shadows_embrace_3.py b/scripts/expertise/expertise_sp_shadows_embrace_3.py index ab5023c0..ac459d05 100644 --- a/scripts/expertise/expertise_sp_shadows_embrace_3.py +++ b/scripts/expertise/expertise_sp_shadows_embrace_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_shadows_embrace_3') - - actor.addSkillMod('expertise_buff_duration_line_sp_burst_shadows', 2) - actor.addSkillMod('expertise_cooldown_line_sp_burst_shadows', 30) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_shadows_embrace_3') - - actor.removeSkillMod('expertise_buff_duration_line_sp_burst_shadows', 2) - actor.removeSkillMod('expertise_cooldown_line_sp_burst_shadows', 30) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_shadows_embrace_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_shadows_embrace_3") return diff --git a/scripts/expertise/expertise_sp_shadows_embrace_4.py b/scripts/expertise/expertise_sp_shadows_embrace_4.py index a98522ee..ef6195ea 100644 --- a/scripts/expertise/expertise_sp_shadows_embrace_4.py +++ b/scripts/expertise/expertise_sp_shadows_embrace_4.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_shadows_embrace_4') - - actor.addSkillMod('expertise_buff_duration_line_sp_burst_shadows', 2) - actor.addSkillMod('expertise_cooldown_line_sp_burst_shadows', 30) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_shadows_embrace_4') - - actor.removeSkillMod('expertise_buff_duration_line_sp_burst_shadows', 2) - actor.removeSkillMod('expertise_cooldown_line_sp_burst_shadows', 30) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_shadows_embrace_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_shadows_embrace_4") return diff --git a/scripts/expertise/expertise_sp_shifty_setup_1.py b/scripts/expertise/expertise_sp_shifty_setup_1.py index 90865851..76bf26d8 100644 --- a/scripts/expertise/expertise_sp_shifty_setup_1.py +++ b/scripts/expertise/expertise_sp_shifty_setup_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_shifty_setup_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_shifty_setup_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sp_shifty_setup') - + actor.addAbility("sp_shifty_setup") return def removeAbilities(core, actor, player): - - actor.removeAbility('sp_shifty_setup') - + actor.removeAbility("sp_shifty_setup") return diff --git a/scripts/expertise/expertise_sp_smoke_mirrors.py b/scripts/expertise/expertise_sp_smoke_mirrors.py index 5e88dd3e..4b720c0a 100644 --- a/scripts/expertise/expertise_sp_smoke_mirrors.py +++ b/scripts/expertise/expertise_sp_smoke_mirrors.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_smoke_mirrors') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_smoke_mirrors') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - actor.addAbility('sp_smoke_mirrors') - + actor.addAbility("sp_smoke_mirrors") return def removeAbilities(core, actor, player): - - actor.removeAbility('sp_smoke_mirrors') - + actor.removeAbility("sp_smoke_mirrors") return diff --git a/scripts/expertise/expertise_sp_smoke_screen_1.py b/scripts/expertise/expertise_sp_smoke_screen_1.py index 1deb5789..b3e851b3 100644 --- a/scripts/expertise/expertise_sp_smoke_screen_1.py +++ b/scripts/expertise/expertise_sp_smoke_screen_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_smoke_screen_1') - - actor.addSkillMod('expertise_movement_buff_invis_sp_buff_invis_1', -10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_smoke_screen_1') - - actor.removeSkillMod('expertise_movement_buff_invis_sp_buff_invis_1', -10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_smoke_screen_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_smoke_screen_1") return diff --git a/scripts/expertise/expertise_sp_smoke_screen_2.py b/scripts/expertise/expertise_sp_smoke_screen_2.py index e091741b..2873cd10 100644 --- a/scripts/expertise/expertise_sp_smoke_screen_2.py +++ b/scripts/expertise/expertise_sp_smoke_screen_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_smoke_screen_2') - - actor.addSkillMod('expertise_movement_buff_invis_sp_buff_invis_1', -10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_smoke_screen_2') - - actor.removeSkillMod('expertise_movement_buff_invis_sp_buff_invis_1', -10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_smoke_screen_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_smoke_screen_2") return diff --git a/scripts/expertise/expertise_sp_smoke_screen_3.py b/scripts/expertise/expertise_sp_smoke_screen_3.py index c8ba6991..57be23e9 100644 --- a/scripts/expertise/expertise_sp_smoke_screen_3.py +++ b/scripts/expertise/expertise_sp_smoke_screen_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_smoke_screen_3') - - actor.addSkillMod('expertise_movement_buff_invis_sp_buff_invis_1', -10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_smoke_screen_3') - - actor.removeSkillMod('expertise_movement_buff_invis_sp_buff_invis_1', -10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_smoke_screen_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_smoke_screen_3") return diff --git a/scripts/expertise/expertise_sp_smoke_screen_4.py b/scripts/expertise/expertise_sp_smoke_screen_4.py index f4f00aa4..0ec9ab54 100644 --- a/scripts/expertise/expertise_sp_smoke_screen_4.py +++ b/scripts/expertise/expertise_sp_smoke_screen_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_smoke_screen_4') - - actor.addSkillMod('expertise_movement_buff_invis_sp_buff_invis_1', -10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_smoke_screen_4') - - actor.removeSkillMod('expertise_movement_buff_invis_sp_buff_invis_1', -10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_smoke_screen_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_smoke_screen_4") return diff --git a/scripts/expertise/expertise_sp_steup_1.py b/scripts/expertise/expertise_sp_steup_1.py index b039c564..80eed675 100644 --- a/scripts/expertise/expertise_sp_steup_1.py +++ b/scripts/expertise/expertise_sp_steup_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_steup_1') - - actor.addSkillMod('expertise_action_line_sp_stealth_melee', 5) - actor.addSkillMod('expertise_action_line_sp_stealth_ranged', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_steup_1') - - actor.removeSkillMod('expertise_action_line_sp_stealth_melee', 5) - actor.removeSkillMod('expertise_action_line_sp_stealth_ranged', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_steup_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_steup_1") return diff --git a/scripts/expertise/expertise_sp_steup_2.py b/scripts/expertise/expertise_sp_steup_2.py index 9450fa6a..3a6b451b 100644 --- a/scripts/expertise/expertise_sp_steup_2.py +++ b/scripts/expertise/expertise_sp_steup_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_steup_2') - - actor.addSkillMod('expertise_action_line_sp_stealth_melee', 5) - actor.addSkillMod('expertise_action_line_sp_stealth_ranged', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_steup_2') - - actor.removeSkillMod('expertise_action_line_sp_stealth_melee', 5) - actor.removeSkillMod('expertise_action_line_sp_stealth_ranged', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_steup_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_steup_2") return diff --git a/scripts/expertise/expertise_sp_steup_3.py b/scripts/expertise/expertise_sp_steup_3.py index d0b36017..3ab4f758 100644 --- a/scripts/expertise/expertise_sp_steup_3.py +++ b/scripts/expertise/expertise_sp_steup_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_steup_3') - - actor.addSkillMod('expertise_action_line_sp_stealth_melee', 5) - actor.addSkillMod('expertise_action_line_sp_stealth_ranged', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_steup_3') - - actor.removeSkillMod('expertise_action_line_sp_stealth_melee', 5) - actor.removeSkillMod('expertise_action_line_sp_stealth_ranged', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_steup_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_steup_3") return diff --git a/scripts/expertise/expertise_sp_steup_4.py b/scripts/expertise/expertise_sp_steup_4.py index dd9ce2f4..b2eb1e65 100644 --- a/scripts/expertise/expertise_sp_steup_4.py +++ b/scripts/expertise/expertise_sp_steup_4.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_steup_4') - - actor.addSkillMod('expertise_action_line_sp_stealth_melee', 5) - actor.addSkillMod('expertise_action_line_sp_stealth_ranged', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_steup_4') - - actor.removeSkillMod('expertise_action_line_sp_stealth_melee', 5) - actor.removeSkillMod('expertise_action_line_sp_stealth_ranged', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_steup_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_steup_4") return diff --git a/scripts/expertise/expertise_sp_undercover_1.py b/scripts/expertise/expertise_sp_undercover_1.py index 05754013..3c67e708 100644 --- a/scripts/expertise/expertise_sp_undercover_1.py +++ b/scripts/expertise/expertise_sp_undercover_1.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_undercover_1') - - actor.addSkillMod('expertise_movement_buff_invis_sp_buff_invis_1', -5) - actor.addSkillMod('expertise_movement_buff_invis_sp_buff_stealth_1', -20) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_undercover_1') - - actor.removeSkillMod('expertise_movement_buff_invis_sp_buff_invis_1', -5) - actor.removeSkillMod('expertise_movement_buff_invis_sp_buff_stealth_1', -20) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_undercover_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_undercover_1") return diff --git a/scripts/expertise/expertise_sp_undercover_2.py b/scripts/expertise/expertise_sp_undercover_2.py index 50edd523..b6660db2 100644 --- a/scripts/expertise/expertise_sp_undercover_2.py +++ b/scripts/expertise/expertise_sp_undercover_2.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_undercover_2') - - actor.addSkillMod('expertise_movement_buff_invis_sp_buff_invis_1', -5) - actor.addSkillMod('expertise_movement_buff_invis_sp_buff_stealth_1', -20) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_undercover_2') - - actor.removeSkillMod('expertise_movement_buff_invis_sp_buff_invis_1', -5) - actor.removeSkillMod('expertise_movement_buff_invis_sp_buff_stealth_1', -20) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_undercover_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_undercover_2") return diff --git a/scripts/expertise/expertise_sp_undercover_3.py b/scripts/expertise/expertise_sp_undercover_3.py index 23d181c5..39c4394d 100644 --- a/scripts/expertise/expertise_sp_undercover_3.py +++ b/scripts/expertise/expertise_sp_undercover_3.py @@ -1,50 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_undercover_3') - - actor.addSkillMod('expertise_movement_buff_invis_sp_buff_invis_1', -5) - actor.addSkillMod('expertise_movement_buff_invis_sp_buff_stealth_1', -20) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_undercover_3') - - actor.removeSkillMod('expertise_movement_buff_invis_sp_buff_invis_1', -5) - actor.removeSkillMod('expertise_movement_buff_invis_sp_buff_stealth_1', -20) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_undercover_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_undercover_3") return diff --git a/scripts/expertise/expertise_sp_vibrogenerator_1.py b/scripts/expertise/expertise_sp_vibrogenerator_1.py index 90cb92c6..ed2f90ea 100644 --- a/scripts/expertise/expertise_sp_vibrogenerator_1.py +++ b/scripts/expertise/expertise_sp_vibrogenerator_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_vibrogenerator_1') - - actor.addSkillMod('expertise_armor_neglect', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_vibrogenerator_1') - - actor.removeSkillMod('expertise_armor_neglect', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_vibrogenerator_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_vibrogenerator_1") return diff --git a/scripts/expertise/expertise_sp_vibrogenerator_2.py b/scripts/expertise/expertise_sp_vibrogenerator_2.py index 4d047dc5..84e4e570 100644 --- a/scripts/expertise/expertise_sp_vibrogenerator_2.py +++ b/scripts/expertise/expertise_sp_vibrogenerator_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_vibrogenerator_2') - - actor.addSkillMod('expertise_armor_neglect', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_vibrogenerator_2') - - actor.removeSkillMod('expertise_armor_neglect', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_vibrogenerator_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_vibrogenerator_2") return diff --git a/scripts/expertise/expertise_sp_vibrogenerator_3.py b/scripts/expertise/expertise_sp_vibrogenerator_3.py index 810b8b4d..592cb4d4 100644 --- a/scripts/expertise/expertise_sp_vibrogenerator_3.py +++ b/scripts/expertise/expertise_sp_vibrogenerator_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_vibrogenerator_3') - - actor.addSkillMod('expertise_armor_neglect', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_vibrogenerator_3') - - actor.removeSkillMod('expertise_armor_neglect', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_sp_vibrogenerator_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_sp_vibrogenerator_3") return diff --git a/scripts/expertise/expertise_sp_without_a_trace_1.py b/scripts/expertise/expertise_sp_without_a_trace_1.py index 35327fdf..ebe2f8f3 100644 --- a/scripts/expertise/expertise_sp_without_a_trace_1.py +++ b/scripts/expertise/expertise_sp_without_a_trace_1.py @@ -1,46 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.addSkill('expertise_sp_without_a_trace_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'spy_1a': - return - - actor.removeSkill('expertise_sp_without_a_trace_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("sp_without_a_trace") return def removeAbilities(core, actor, player): - - + actor.removeAbility("sp_without_a_trace") return diff --git a/scripts/expertise/expertise_structure_architect_advanced_theory_1.py b/scripts/expertise/expertise_structure_architect_advanced_theory_1.py index 762a10ca..42e72115 100644 --- a/scripts/expertise/expertise_structure_architect_advanced_theory_1.py +++ b/scripts/expertise/expertise_structure_architect_advanced_theory_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_architect_advanced_theory_1') - - actor.addSkillMod('structure_experimentation', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_architect_advanced_theory_1') - - actor.removeSkillMod('structure_experimentation', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_architect_theory_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_architect_theory_1") return diff --git a/scripts/expertise/expertise_structure_architect_dexterity_1.py b/scripts/expertise/expertise_structure_architect_dexterity_1.py index eaf875af..b3644dbd 100644 --- a/scripts/expertise/expertise_structure_architect_dexterity_1.py +++ b/scripts/expertise/expertise_structure_architect_dexterity_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_architect_dexterity_1') - - actor.addSkillMod('structure_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_architect_dexterity_1') - - actor.removeSkillMod('structure_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_architect_dexterity_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_architect_dexterity_1") return diff --git a/scripts/expertise/expertise_structure_architect_dexterity_2.py b/scripts/expertise/expertise_structure_architect_dexterity_2.py index e3a98a3d..d87f7a01 100644 --- a/scripts/expertise/expertise_structure_architect_dexterity_2.py +++ b/scripts/expertise/expertise_structure_architect_dexterity_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_architect_dexterity_2') - - actor.addSkillMod('structure_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_architect_dexterity_2') - - actor.removeSkillMod('structure_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_architect_dexterity_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_architect_dexterity_2") return diff --git a/scripts/expertise/expertise_structure_architect_dexterity_3.py b/scripts/expertise/expertise_structure_architect_dexterity_3.py index ca3b2d31..f07fb9ae 100644 --- a/scripts/expertise/expertise_structure_architect_dexterity_3.py +++ b/scripts/expertise/expertise_structure_architect_dexterity_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_architect_dexterity_3') - - actor.addSkillMod('structure_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_architect_dexterity_3') - - actor.removeSkillMod('structure_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_architect_dexterity_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_architect_dexterity_3") return diff --git a/scripts/expertise/expertise_structure_architect_dexterity_4.py b/scripts/expertise/expertise_structure_architect_dexterity_4.py index a3d8534f..339e3773 100644 --- a/scripts/expertise/expertise_structure_architect_dexterity_4.py +++ b/scripts/expertise/expertise_structure_architect_dexterity_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_architect_dexterity_4') - - actor.addSkillMod('structure_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_architect_dexterity_4') - - actor.removeSkillMod('structure_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_architect_dexterity_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_architect_dexterity_4") return diff --git a/scripts/expertise/expertise_structure_architect_hypothesis_1.py b/scripts/expertise/expertise_structure_architect_hypothesis_1.py index b5eafa01..7c1de09a 100644 --- a/scripts/expertise/expertise_structure_architect_hypothesis_1.py +++ b/scripts/expertise/expertise_structure_architect_hypothesis_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_architect_hypothesis_1') - - actor.addSkillMod('expertise_experimentation_increase_architect', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_architect_hypothesis_1') - - actor.removeSkillMod('expertise_experimentation_increase_architect', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_architect_hypothesis_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_architect_hypothesis_1") return diff --git a/scripts/expertise/expertise_structure_architect_hypothesis_2.py b/scripts/expertise/expertise_structure_architect_hypothesis_2.py index ec83d7d4..e9acaf9b 100644 --- a/scripts/expertise/expertise_structure_architect_hypothesis_2.py +++ b/scripts/expertise/expertise_structure_architect_hypothesis_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_architect_hypothesis_2') - - actor.addSkillMod('expertise_experimentation_increase_architect', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_architect_hypothesis_2') - - actor.removeSkillMod('expertise_experimentation_increase_architect', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_architect_hypothesis_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_architect_hypothesis_2") return diff --git a/scripts/expertise/expertise_structure_architect_hypothesis_3.py b/scripts/expertise/expertise_structure_architect_hypothesis_3.py index 15ddc720..b43dc039 100644 --- a/scripts/expertise/expertise_structure_architect_hypothesis_3.py +++ b/scripts/expertise/expertise_structure_architect_hypothesis_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_architect_hypothesis_3') - - actor.addSkillMod('expertise_experimentation_increase_architect', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_architect_hypothesis_3') - - actor.removeSkillMod('expertise_experimentation_increase_architect', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_architect_hypothesis_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_architect_hypothesis_3") return diff --git a/scripts/expertise/expertise_structure_architect_hypothesis_4.py b/scripts/expertise/expertise_structure_architect_hypothesis_4.py index 00e33f1b..7a184294 100644 --- a/scripts/expertise/expertise_structure_architect_hypothesis_4.py +++ b/scripts/expertise/expertise_structure_architect_hypothesis_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_architect_hypothesis_4') - - actor.addSkillMod('expertise_experimentation_increase_architect', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_architect_hypothesis_4') - - actor.removeSkillMod('expertise_experimentation_increase_architect', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_architect_hypothesis_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_architect_hypothesis_4") return diff --git a/scripts/expertise/expertise_structure_architect_insight_1.py b/scripts/expertise/expertise_structure_architect_insight_1.py index ff19b257..9ff69aa3 100644 --- a/scripts/expertise/expertise_structure_architect_insight_1.py +++ b/scripts/expertise/expertise_structure_architect_insight_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_architect_insight_1') - - actor.addSkillMod('expertise_complexity_decrease_architect', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_architect_insight_1') - - actor.removeSkillMod('expertise_complexity_decrease_architect', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_architect_insight_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_architect_insight_1") return diff --git a/scripts/expertise/expertise_structure_architect_insight_2.py b/scripts/expertise/expertise_structure_architect_insight_2.py index e48c07f5..b5acc5e0 100644 --- a/scripts/expertise/expertise_structure_architect_insight_2.py +++ b/scripts/expertise/expertise_structure_architect_insight_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_architect_insight_2') - - actor.addSkillMod('expertise_complexity_decrease_architect', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_architect_insight_2') - - actor.removeSkillMod('expertise_complexity_decrease_architect', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_architect_insight_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_architect_insight_2") return diff --git a/scripts/expertise/expertise_structure_architect_keen_understanding_1.py b/scripts/expertise/expertise_structure_architect_keen_understanding_1.py index 1ff82037..5e63c078 100644 --- a/scripts/expertise/expertise_structure_architect_keen_understanding_1.py +++ b/scripts/expertise/expertise_structure_architect_keen_understanding_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_architect_keen_understanding_1') - - actor.addSkillMod('expertise_complexity_decrease_architect', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_architect_keen_understanding_1') - - actor.removeSkillMod('expertise_complexity_decrease_architect', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_architect_keen_understanding_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_architect_keen_understanding_1") return diff --git a/scripts/expertise/expertise_structure_architect_keen_understanding_2.py b/scripts/expertise/expertise_structure_architect_keen_understanding_2.py index 552ebd65..a35ab95e 100644 --- a/scripts/expertise/expertise_structure_architect_keen_understanding_2.py +++ b/scripts/expertise/expertise_structure_architect_keen_understanding_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_architect_keen_understanding_2') - - actor.addSkillMod('expertise_complexity_decrease_architect', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_architect_keen_understanding_2') - - actor.removeSkillMod('expertise_complexity_decrease_architect', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_architect_keen_understanding_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_architect_keen_understanding_2") return diff --git a/scripts/expertise/expertise_structure_architect_schematic_1_1.py b/scripts/expertise/expertise_structure_architect_schematic_1_1.py index 7ef6e4eb..77d60042 100644 --- a/scripts/expertise/expertise_structure_architect_schematic_1_1.py +++ b/scripts/expertise/expertise_structure_architect_schematic_1_1.py @@ -1,46 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_architect_schematic_1_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_architect_schematic_1_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_architect_schematic_1_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_architect_schematic_1_1") return diff --git a/scripts/expertise/expertise_structure_architect_schematic_2_1.py b/scripts/expertise/expertise_structure_architect_schematic_2_1.py index 7df673d9..9db9ab48 100644 --- a/scripts/expertise/expertise_structure_architect_schematic_2_1.py +++ b/scripts/expertise/expertise_structure_architect_schematic_2_1.py @@ -1,46 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_architect_schematic_2_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_architect_schematic_2_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_architect_schematic_2_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_architect_schematic_2_1") return diff --git a/scripts/expertise/expertise_structure_artisan_advanced_theory_1.py b/scripts/expertise/expertise_structure_artisan_advanced_theory_1.py index f2498949..59364e96 100644 --- a/scripts/expertise/expertise_structure_artisan_advanced_theory_1.py +++ b/scripts/expertise/expertise_structure_artisan_advanced_theory_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_artisan_advanced_theory_1') - - actor.addSkillMod('general_experimentation', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_artisan_advanced_theory_1') - - actor.removeSkillMod('general_experimentation', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_artisan_advanced_theory_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_artisan_advanced_theory_1") return diff --git a/scripts/expertise/expertise_structure_artisan_dexterity_1.py b/scripts/expertise/expertise_structure_artisan_dexterity_1.py index 5dd3479f..6b4364cf 100644 --- a/scripts/expertise/expertise_structure_artisan_dexterity_1.py +++ b/scripts/expertise/expertise_structure_artisan_dexterity_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_artisan_dexterity_1') - - actor.addSkillMod('general_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_artisan_dexterity_1') - - actor.removeSkillMod('general_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_artisan_dexterity_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_artisan_dexterity_1") return diff --git a/scripts/expertise/expertise_structure_artisan_dexterity_2.py b/scripts/expertise/expertise_structure_artisan_dexterity_2.py index 7390c520..e5bee87f 100644 --- a/scripts/expertise/expertise_structure_artisan_dexterity_2.py +++ b/scripts/expertise/expertise_structure_artisan_dexterity_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_artisan_dexterity_2') - - actor.addSkillMod('general_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_artisan_dexterity_2') - - actor.removeSkillMod('general_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_artisan_dexterity_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_artisan_dexterity_2") return diff --git a/scripts/expertise/expertise_structure_artisan_dexterity_3.py b/scripts/expertise/expertise_structure_artisan_dexterity_3.py index 91971842..fb2b5c62 100644 --- a/scripts/expertise/expertise_structure_artisan_dexterity_3.py +++ b/scripts/expertise/expertise_structure_artisan_dexterity_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_artisan_dexterity_3') - - actor.addSkillMod('general_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_artisan_dexterity_3') - - actor.removeSkillMod('general_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_artisan_dexterity_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_artisan_dexterity_3") return diff --git a/scripts/expertise/expertise_structure_artisan_dexterity_4.py b/scripts/expertise/expertise_structure_artisan_dexterity_4.py index 4cb0041e..c4fea7ab 100644 --- a/scripts/expertise/expertise_structure_artisan_dexterity_4.py +++ b/scripts/expertise/expertise_structure_artisan_dexterity_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_artisan_dexterity_4') - - actor.addSkillMod('general_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_artisan_dexterity_4') - - actor.removeSkillMod('general_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_artisan_dexterity_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_artisan_dexterity_4") return diff --git a/scripts/expertise/expertise_structure_artisan_hypothesis_1.py b/scripts/expertise/expertise_structure_artisan_hypothesis_1.py index 18cbdb54..c5ec040c 100644 --- a/scripts/expertise/expertise_structure_artisan_hypothesis_1.py +++ b/scripts/expertise/expertise_structure_artisan_hypothesis_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_artisan_hypothesis_1') - - actor.addSkillMod('expertise_experimentation_increase_artisan', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_artisan_hypothesis_1') - - actor.removeSkillMod('expertise_experimentation_increase_artisan', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_artisan_hypothesis_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_artisan_hypothesis_1") return diff --git a/scripts/expertise/expertise_structure_artisan_hypothesis_2.py b/scripts/expertise/expertise_structure_artisan_hypothesis_2.py index 1260a16f..c8803e0c 100644 --- a/scripts/expertise/expertise_structure_artisan_hypothesis_2.py +++ b/scripts/expertise/expertise_structure_artisan_hypothesis_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_artisan_hypothesis_2') - - actor.addSkillMod('expertise_experimentation_increase_artisan', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_artisan_hypothesis_2') - - actor.removeSkillMod('expertise_experimentation_increase_artisan', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_artisan_hypothesis_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_artisan_hypothesis_2") return diff --git a/scripts/expertise/expertise_structure_artisan_hypothesis_3.py b/scripts/expertise/expertise_structure_artisan_hypothesis_3.py index 5101ccc2..0995112b 100644 --- a/scripts/expertise/expertise_structure_artisan_hypothesis_3.py +++ b/scripts/expertise/expertise_structure_artisan_hypothesis_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_artisan_hypothesis_3') - - actor.addSkillMod('expertise_experimentation_increase_artisan', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_artisan_hypothesis_3') - - actor.removeSkillMod('expertise_experimentation_increase_artisan', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_artisan_hypothesis_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_artisan_hypothesis_3") return diff --git a/scripts/expertise/expertise_structure_artisan_hypothesis_4.py b/scripts/expertise/expertise_structure_artisan_hypothesis_4.py index ae1c642f..d5a30bc6 100644 --- a/scripts/expertise/expertise_structure_artisan_hypothesis_4.py +++ b/scripts/expertise/expertise_structure_artisan_hypothesis_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_artisan_hypothesis_4') - - actor.addSkillMod('expertise_experimentation_increase_artisan', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_artisan_hypothesis_4') - - actor.removeSkillMod('expertise_experimentation_increase_artisan', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_artisan_hypothesis_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_artisan_hypothesis_4") return diff --git a/scripts/expertise/expertise_structure_resource_processing_1.py b/scripts/expertise/expertise_structure_resource_processing_1.py index 80444cc0..38475c6d 100644 --- a/scripts/expertise/expertise_structure_resource_processing_1.py +++ b/scripts/expertise/expertise_structure_resource_processing_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_resource_processing_1') - - actor.addSkillMod('expertise_resource_quality_increase', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_resource_processing_1') - - actor.removeSkillMod('expertise_resource_quality_increase', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_resource_processing_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_resource_processing_1") return diff --git a/scripts/expertise/expertise_structure_resource_processing_2.py b/scripts/expertise/expertise_structure_resource_processing_2.py index 89253106..79d11128 100644 --- a/scripts/expertise/expertise_structure_resource_processing_2.py +++ b/scripts/expertise/expertise_structure_resource_processing_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_resource_processing_2') - - actor.addSkillMod('expertise_resource_quality_increase', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_resource_processing_2') - - actor.removeSkillMod('expertise_resource_quality_increase', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_resource_processing_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_resource_processing_2") return diff --git a/scripts/expertise/expertise_structure_resource_refinement_1.py b/scripts/expertise/expertise_structure_resource_refinement_1.py index 948b3822..5b55ffb2 100644 --- a/scripts/expertise/expertise_structure_resource_refinement_1.py +++ b/scripts/expertise/expertise_structure_resource_refinement_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_resource_refinement_1') - - actor.addSkillMod('expertise_resource_quality_increase', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_resource_refinement_1') - - actor.removeSkillMod('expertise_resource_quality_increase', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_resource_refinement_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_resource_refinement_1") return diff --git a/scripts/expertise/expertise_structure_resource_refinement_2.py b/scripts/expertise/expertise_structure_resource_refinement_2.py index bc8e7478..d9347d52 100644 --- a/scripts/expertise/expertise_structure_resource_refinement_2.py +++ b/scripts/expertise/expertise_structure_resource_refinement_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_resource_refinement_2') - - actor.addSkillMod('expertise_resource_quality_increase', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_resource_refinement_2') - - actor.removeSkillMod('expertise_resource_quality_increase', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_resource_refinement_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_resource_refinement_2") return diff --git a/scripts/expertise/expertise_structure_shipwright_advanced_theory_1.py b/scripts/expertise/expertise_structure_shipwright_advanced_theory_1.py index 3ad59ca5..7077e0e4 100644 --- a/scripts/expertise/expertise_structure_shipwright_advanced_theory_1.py +++ b/scripts/expertise/expertise_structure_shipwright_advanced_theory_1.py @@ -1,60 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_shipwright_advanced_theory_1') - - actor.addSkillMod('chassis_experimentation', 10) - actor.addSkillMod('weapon_systems_experimentation', 10) - actor.addSkillMod('engine_experimentation', 10) - actor.addSkillMod('booster_experimentation', 10) - actor.addSkillMod('power_systems_experimentation', 10) - actor.addSkillMod('shields_experimentation', 10) - actor.addSkillMod('advanced_ship_experimentation', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_shipwright_advanced_theory_1') - - actor.removeSkillMod('chassis_experimentation', 10) - actor.removeSkillMod('weapon_systems_experimentation', 10) - actor.removeSkillMod('engine_experimentation', 10) - actor.removeSkillMod('booster_experimentation', 10) - actor.removeSkillMod('power_systems_experimentation', 10) - actor.removeSkillMod('shields_experimentation', 10) - actor.removeSkillMod('advanced_ship_experimentation', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_shipwright_advanced_theory_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_shipwright_advanced_theory_1") return diff --git a/scripts/expertise/expertise_structure_shipwright_dexterity_1.py b/scripts/expertise/expertise_structure_shipwright_dexterity_1.py index 210f669b..f3bd8da5 100644 --- a/scripts/expertise/expertise_structure_shipwright_dexterity_1.py +++ b/scripts/expertise/expertise_structure_shipwright_dexterity_1.py @@ -1,60 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_shipwright_dexterity_1') - - actor.addSkillMod('chassis_assembly', 5) - actor.addSkillMod('engine_assembly', 5) - actor.addSkillMod('booster_assembly', 5) - actor.addSkillMod('power_systems', 5) - actor.addSkillMod('weapon_systems', 5) - actor.addSkillMod('shields_assembly', 5) - actor.addSkillMod('advanced_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_shipwright_dexterity_1') - - actor.removeSkillMod('chassis_assembly', 5) - actor.removeSkillMod('engine_assembly', 5) - actor.removeSkillMod('booster_assembly', 5) - actor.removeSkillMod('power_systems', 5) - actor.removeSkillMod('weapon_systems', 5) - actor.removeSkillMod('shields_assembly', 5) - actor.removeSkillMod('advanced_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_shipwright_dexterity_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_shipwright_dexterity_1") return diff --git a/scripts/expertise/expertise_structure_shipwright_dexterity_2.py b/scripts/expertise/expertise_structure_shipwright_dexterity_2.py index b1bc4bd6..c242e7f8 100644 --- a/scripts/expertise/expertise_structure_shipwright_dexterity_2.py +++ b/scripts/expertise/expertise_structure_shipwright_dexterity_2.py @@ -1,60 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_shipwright_dexterity_2') - - actor.addSkillMod('chassis_assembly', 5) - actor.addSkillMod('engine_assembly', 5) - actor.addSkillMod('booster_assembly', 5) - actor.addSkillMod('power_systems', 5) - actor.addSkillMod('weapon_systems', 5) - actor.addSkillMod('shields_assembly', 5) - actor.addSkillMod('advanced_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_shipwright_dexterity_2') - - actor.removeSkillMod('chassis_assembly', 5) - actor.removeSkillMod('engine_assembly', 5) - actor.removeSkillMod('booster_assembly', 5) - actor.removeSkillMod('power_systems', 5) - actor.removeSkillMod('weapon_systems', 5) - actor.removeSkillMod('shields_assembly', 5) - actor.removeSkillMod('advanced_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_shipwright_dexterity_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_shipwright_dexterity_2") return diff --git a/scripts/expertise/expertise_structure_shipwright_dexterity_3.py b/scripts/expertise/expertise_structure_shipwright_dexterity_3.py index 09592b62..7690812b 100644 --- a/scripts/expertise/expertise_structure_shipwright_dexterity_3.py +++ b/scripts/expertise/expertise_structure_shipwright_dexterity_3.py @@ -1,60 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_shipwright_dexterity_3') - - actor.addSkillMod('chassis_assembly', 5) - actor.addSkillMod('engine_assembly', 5) - actor.addSkillMod('booster_assembly', 5) - actor.addSkillMod('power_systems', 5) - actor.addSkillMod('weapon_systems', 5) - actor.addSkillMod('shields_assembly', 5) - actor.addSkillMod('advanced_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_shipwright_dexterity_3') - - actor.removeSkillMod('chassis_assembly', 5) - actor.removeSkillMod('engine_assembly', 5) - actor.removeSkillMod('booster_assembly', 5) - actor.removeSkillMod('power_systems', 5) - actor.removeSkillMod('weapon_systems', 5) - actor.removeSkillMod('shields_assembly', 5) - actor.removeSkillMod('advanced_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_shipwright_dexterity_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_shipwright_dexterity_3") return diff --git a/scripts/expertise/expertise_structure_shipwright_dexterity_4.py b/scripts/expertise/expertise_structure_shipwright_dexterity_4.py index 242ccbd2..a63652c5 100644 --- a/scripts/expertise/expertise_structure_shipwright_dexterity_4.py +++ b/scripts/expertise/expertise_structure_shipwright_dexterity_4.py @@ -1,60 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_shipwright_dexterity_4') - - actor.addSkillMod('chassis_assembly', 5) - actor.addSkillMod('engine_assembly', 5) - actor.addSkillMod('booster_assembly', 5) - actor.addSkillMod('power_systems', 5) - actor.addSkillMod('weapon_systems', 5) - actor.addSkillMod('shields_assembly', 5) - actor.addSkillMod('advanced_assembly', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_shipwright_dexterity_4') - - actor.removeSkillMod('chassis_assembly', 5) - actor.removeSkillMod('engine_assembly', 5) - actor.removeSkillMod('booster_assembly', 5) - actor.removeSkillMod('power_systems', 5) - actor.removeSkillMod('weapon_systems', 5) - actor.removeSkillMod('shields_assembly', 5) - actor.removeSkillMod('advanced_assembly', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_shipwright_dexterity_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_shipwright_dexterity_4") return diff --git a/scripts/expertise/expertise_structure_shipwright_hypothesis_1.py b/scripts/expertise/expertise_structure_shipwright_hypothesis_1.py index 6fc0b225..65ef4ba2 100644 --- a/scripts/expertise/expertise_structure_shipwright_hypothesis_1.py +++ b/scripts/expertise/expertise_structure_shipwright_hypothesis_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_shipwright_hypothesis_1') - - actor.addSkillMod('expertise_experimentation_increase_shipwright', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_shipwright_hypothesis_1') - - actor.removeSkillMod('expertise_experimentation_increase_shipwright', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_shipwright_hypothesis_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_shipwright_hypothesis_1") return diff --git a/scripts/expertise/expertise_structure_shipwright_hypothesis_2.py b/scripts/expertise/expertise_structure_shipwright_hypothesis_2.py index 101a7342..4ab8f864 100644 --- a/scripts/expertise/expertise_structure_shipwright_hypothesis_2.py +++ b/scripts/expertise/expertise_structure_shipwright_hypothesis_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_shipwright_hypothesis_2') - - actor.addSkillMod('expertise_experimentation_increase_shipwright', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_shipwright_hypothesis_2') - - actor.removeSkillMod('expertise_experimentation_increase_shipwright', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_shipwright_hypothesis_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_shipwright_hypothesis_2") return diff --git a/scripts/expertise/expertise_structure_shipwright_hypothesis_3.py b/scripts/expertise/expertise_structure_shipwright_hypothesis_3.py index 2c00785c..af933c60 100644 --- a/scripts/expertise/expertise_structure_shipwright_hypothesis_3.py +++ b/scripts/expertise/expertise_structure_shipwright_hypothesis_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_shipwright_hypothesis_3') - - actor.addSkillMod('expertise_experimentation_increase_shipwright', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_shipwright_hypothesis_3') - - actor.removeSkillMod('expertise_experimentation_increase_shipwright', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_shipwright_hypothesis_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_shipwright_hypothesis_3") return diff --git a/scripts/expertise/expertise_structure_shipwright_hypothesis_4.py b/scripts/expertise/expertise_structure_shipwright_hypothesis_4.py index d723697e..4b120a10 100644 --- a/scripts/expertise/expertise_structure_shipwright_hypothesis_4.py +++ b/scripts/expertise/expertise_structure_shipwright_hypothesis_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_shipwright_hypothesis_4') - - actor.addSkillMod('expertise_experimentation_increase_shipwright', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_shipwright_hypothesis_4') - - actor.removeSkillMod('expertise_experimentation_increase_shipwright', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_shipwright_hypothesis_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_shipwright_hypothesis_4") return diff --git a/scripts/expertise/expertise_structure_shipwright_insight_1.py b/scripts/expertise/expertise_structure_shipwright_insight_1.py index 82b35892..43dd055e 100644 --- a/scripts/expertise/expertise_structure_shipwright_insight_1.py +++ b/scripts/expertise/expertise_structure_shipwright_insight_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_shipwright_insight_1') - - actor.addSkillMod('expertise_complexity_decrease_shipwright', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_shipwright_insight_1') - - actor.removeSkillMod('expertise_complexity_decrease_shipwright', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_shipwright_insight_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_shipwright_insight_1") return diff --git a/scripts/expertise/expertise_structure_shipwright_insight_2.py b/scripts/expertise/expertise_structure_shipwright_insight_2.py index d50e67a5..0fe7dd52 100644 --- a/scripts/expertise/expertise_structure_shipwright_insight_2.py +++ b/scripts/expertise/expertise_structure_shipwright_insight_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_shipwright_insight_2') - - actor.addSkillMod('expertise_complexity_decrease_shipwright', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_shipwright_insight_2') - - actor.removeSkillMod('expertise_complexity_decrease_shipwright', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_shipwright_insight_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_shipwright_insight_2") return diff --git a/scripts/expertise/expertise_structure_shipwright_keen_understanding_1.py b/scripts/expertise/expertise_structure_shipwright_keen_understanding_1.py index 06d07813..211217c1 100644 --- a/scripts/expertise/expertise_structure_shipwright_keen_understanding_1.py +++ b/scripts/expertise/expertise_structure_shipwright_keen_understanding_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_shipwright_keen_understanding_1') - - actor.addSkillMod('expertise_complexity_decrease_shipwright', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_shipwright_keen_understanding_1') - - actor.removeSkillMod('expertise_complexity_decrease_shipwright', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_shipwright_keen_understanding_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_shipwright_keen_understanding_1") return diff --git a/scripts/expertise/expertise_structure_shipwright_keen_understanding_2.py b/scripts/expertise/expertise_structure_shipwright_keen_understanding_2.py index bd0f235a..c11a18a0 100644 --- a/scripts/expertise/expertise_structure_shipwright_keen_understanding_2.py +++ b/scripts/expertise/expertise_structure_shipwright_keen_understanding_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_shipwright_keen_understanding_2') - - actor.addSkillMod('expertise_complexity_decrease_shipwright', 2) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_shipwright_keen_understanding_2') - - actor.removeSkillMod('expertise_complexity_decrease_shipwright', 2) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_shipwright_keen_understanding_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_shipwright_keen_understanding_2") return diff --git a/scripts/expertise/expertise_structure_shipwright_schematic_1_1.py b/scripts/expertise/expertise_structure_shipwright_schematic_1_1.py index 7e8de7a2..2cce7bef 100644 --- a/scripts/expertise/expertise_structure_shipwright_schematic_1_1.py +++ b/scripts/expertise/expertise_structure_shipwright_schematic_1_1.py @@ -1,46 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_shipwright_schematic_1_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_shipwright_schematic_1_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_shipwright_schmematic_1_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_shipwright_schmematic_1_1") return diff --git a/scripts/expertise/expertise_structure_shipwright_schematic_2_1.py b/scripts/expertise/expertise_structure_shipwright_schematic_2_1.py index 71c2d9b5..b23f6f2c 100644 --- a/scripts/expertise/expertise_structure_shipwright_schematic_2_1.py +++ b/scripts/expertise/expertise_structure_shipwright_schematic_2_1.py @@ -1,46 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.addSkill('expertise_structure_shipwright_schematic_2_1') - - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_struct_1a': - return - - actor.removeSkill('expertise_structure_shipwright_schematic_2_1') - - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_structure_shipwright_schmematic_2_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_structure_shipwright_schmematic_2_1") return diff --git a/scripts/expertise/expertise_trader_business_accounting_1.py b/scripts/expertise/expertise_trader_business_accounting_1.py index 79324ca3..115fc5cd 100644 --- a/scripts/expertise/expertise_trader_business_accounting_1.py +++ b/scripts/expertise/expertise_trader_business_accounting_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_business_accounting_1') - - actor.addSkillMod('expertise_vendor_cost_decrease', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_business_accounting_1') - - actor.removeSkillMod('expertise_vendor_cost_decrease', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_business_accounting_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_business_accounting_1") return diff --git a/scripts/expertise/expertise_trader_business_accounting_2.py b/scripts/expertise/expertise_trader_business_accounting_2.py index 86469f30..24e5d569 100644 --- a/scripts/expertise/expertise_trader_business_accounting_2.py +++ b/scripts/expertise/expertise_trader_business_accounting_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_business_accounting_2') - - actor.addSkillMod('expertise_vendor_cost_decrease', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_business_accounting_2') - - actor.removeSkillMod('expertise_vendor_cost_decrease', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_business_accounting_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_business_accounting_2") return diff --git a/scripts/expertise/expertise_trader_business_accounting_3.py b/scripts/expertise/expertise_trader_business_accounting_3.py index cc43a91d..d0d619c7 100644 --- a/scripts/expertise/expertise_trader_business_accounting_3.py +++ b/scripts/expertise/expertise_trader_business_accounting_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_business_accounting_3') - - actor.addSkillMod('expertise_vendor_cost_decrease', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_business_accounting_3') - - actor.removeSkillMod('expertise_vendor_cost_decrease', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_business_accounting_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_business_accounting_3") return diff --git a/scripts/expertise/expertise_trader_business_accounting_4.py b/scripts/expertise/expertise_trader_business_accounting_4.py index 0c751506..62d4ef7a 100644 --- a/scripts/expertise/expertise_trader_business_accounting_4.py +++ b/scripts/expertise/expertise_trader_business_accounting_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_business_accounting_4') - - actor.addSkillMod('expertise_vendor_cost_decrease', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_business_accounting_4') - - actor.removeSkillMod('expertise_vendor_cost_decrease', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_business_accounting_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_business_accounting_4") return diff --git a/scripts/expertise/expertise_trader_factory_energy_1.py b/scripts/expertise/expertise_trader_factory_energy_1.py index cd7525fc..0c42837e 100644 --- a/scripts/expertise/expertise_trader_factory_energy_1.py +++ b/scripts/expertise/expertise_trader_factory_energy_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_factory_energy_1') - - actor.addSkillMod('expertise_factory_energy_decrease', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_factory_energy_1') - - actor.removeSkillMod('expertise_factory_energy_decrease', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_factory_energy_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_factory_energy_1") return diff --git a/scripts/expertise/expertise_trader_factory_energy_2.py b/scripts/expertise/expertise_trader_factory_energy_2.py index ab07aa02..5a89f344 100644 --- a/scripts/expertise/expertise_trader_factory_energy_2.py +++ b/scripts/expertise/expertise_trader_factory_energy_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_factory_energy_2') - - actor.addSkillMod('expertise_factory_energy_decrease', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_factory_energy_2') - - actor.removeSkillMod('expertise_factory_energy_decrease', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_factory_energy_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_factory_energy_2") return diff --git a/scripts/expertise/expertise_trader_factory_energy_3.py b/scripts/expertise/expertise_trader_factory_energy_3.py index 04bac30c..998dd932 100644 --- a/scripts/expertise/expertise_trader_factory_energy_3.py +++ b/scripts/expertise/expertise_trader_factory_energy_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_factory_energy_3') - - actor.addSkillMod('expertise_factory_energy_decrease', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_factory_energy_3') - - actor.removeSkillMod('expertise_factory_energy_decrease', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_factory_energy_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_factory_energy_3") return diff --git a/scripts/expertise/expertise_trader_factory_energy_4.py b/scripts/expertise/expertise_trader_factory_energy_4.py index b2012ebc..dbed8294 100644 --- a/scripts/expertise/expertise_trader_factory_energy_4.py +++ b/scripts/expertise/expertise_trader_factory_energy_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_factory_energy_4') - - actor.addSkillMod('expertise_factory_energy_decrease', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_factory_energy_4') - - actor.removeSkillMod('expertise_factory_energy_decrease', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_factory_energy_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_factory_energy_4") return diff --git a/scripts/expertise/expertise_trader_factory_maintenance_1.py b/scripts/expertise/expertise_trader_factory_maintenance_1.py index 539c8406..cc4ea7c8 100644 --- a/scripts/expertise/expertise_trader_factory_maintenance_1.py +++ b/scripts/expertise/expertise_trader_factory_maintenance_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_factory_maintenance_1') - - actor.addSkillMod('expertise_factory_maintenance_decrease', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_factory_maintenance_1') - - actor.removeSkillMod('expertise_factory_maintenance_decrease', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_factory_maintenance_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_factory_maintenance_1") return diff --git a/scripts/expertise/expertise_trader_factory_maintenance_2.py b/scripts/expertise/expertise_trader_factory_maintenance_2.py index 917acca1..701595a4 100644 --- a/scripts/expertise/expertise_trader_factory_maintenance_2.py +++ b/scripts/expertise/expertise_trader_factory_maintenance_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_factory_maintenance_2') - - actor.addSkillMod('expertise_factory_maintenance_decrease', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_factory_maintenance_2') - - actor.removeSkillMod('expertise_factory_maintenance_decrease', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_factory_maintenance_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_factory_maintenance_2") return diff --git a/scripts/expertise/expertise_trader_factory_maintenance_3.py b/scripts/expertise/expertise_trader_factory_maintenance_3.py index 58fdaa1d..f192b2e5 100644 --- a/scripts/expertise/expertise_trader_factory_maintenance_3.py +++ b/scripts/expertise/expertise_trader_factory_maintenance_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_factory_maintenance_3') - - actor.addSkillMod('expertise_factory_maintenance_decrease', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_factory_maintenance_3') - - actor.removeSkillMod('expertise_factory_maintenance_decrease', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_factory_maintenance_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_factory_maintenance_3") return diff --git a/scripts/expertise/expertise_trader_factory_maintenance_4.py b/scripts/expertise/expertise_trader_factory_maintenance_4.py index 51f4dff6..2af47dac 100644 --- a/scripts/expertise/expertise_trader_factory_maintenance_4.py +++ b/scripts/expertise/expertise_trader_factory_maintenance_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_factory_maintenance_4') - - actor.addSkillMod('expertise_factory_maintenance_decrease', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_factory_maintenance_4') - - actor.removeSkillMod('expertise_factory_maintenance_decrease', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_factory_maintenance_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_factory_maintenance_4") return diff --git a/scripts/expertise/expertise_trader_factory_production_1.py b/scripts/expertise/expertise_trader_factory_production_1.py index 9f82bcae..1d1f755b 100644 --- a/scripts/expertise/expertise_trader_factory_production_1.py +++ b/scripts/expertise/expertise_trader_factory_production_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_factory_production_1') - - actor.addSkillMod('factory_speed', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_factory_production_1') - - actor.removeSkillMod('factory_speed', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_factory_production_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_factory_production_1") return diff --git a/scripts/expertise/expertise_trader_factory_production_2.py b/scripts/expertise/expertise_trader_factory_production_2.py index 97a69abe..8feb2585 100644 --- a/scripts/expertise/expertise_trader_factory_production_2.py +++ b/scripts/expertise/expertise_trader_factory_production_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_factory_production_2') - - actor.addSkillMod('factory_speed', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_factory_production_2') - - actor.removeSkillMod('factory_speed', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_factory_production_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_factory_production_2") return diff --git a/scripts/expertise/expertise_trader_harvester_collection_1.py b/scripts/expertise/expertise_trader_harvester_collection_1.py index f509b4ce..3b7b2f6e 100644 --- a/scripts/expertise/expertise_trader_harvester_collection_1.py +++ b/scripts/expertise/expertise_trader_harvester_collection_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_harvester_collection_1') - - actor.addSkillMod('expertise_harvester_collection_increase', 20) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_harvester_collection_1') - - actor.removeSkillMod('expertise_harvester_collection_increase', 20) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_harvester_collection_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_harvester_collection_1") return diff --git a/scripts/expertise/expertise_trader_harvester_collection_2.py b/scripts/expertise/expertise_trader_harvester_collection_2.py index fb287890..1959a0fb 100644 --- a/scripts/expertise/expertise_trader_harvester_collection_2.py +++ b/scripts/expertise/expertise_trader_harvester_collection_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_harvester_collection_2') - - actor.addSkillMod('expertise_harvester_collection_increase', 10) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_harvester_collection_2') - - actor.removeSkillMod('expertise_harvester_collection_increase', 10) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_harvester_collection_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_harvester_collection_2") return diff --git a/scripts/expertise/expertise_trader_harvester_energy_1.py b/scripts/expertise/expertise_trader_harvester_energy_1.py index b0a7f738..ef79a694 100644 --- a/scripts/expertise/expertise_trader_harvester_energy_1.py +++ b/scripts/expertise/expertise_trader_harvester_energy_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_harvester_energy_1') - - actor.addSkillMod('expertise_harvester_energy_decrease', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_harvester_energy_1') - - actor.removeSkillMod('expertise_harvester_energy_decrease', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_harvester_energy_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_harvester_energy_1") return diff --git a/scripts/expertise/expertise_trader_harvester_energy_2.py b/scripts/expertise/expertise_trader_harvester_energy_2.py index d6822bed..6ae294a9 100644 --- a/scripts/expertise/expertise_trader_harvester_energy_2.py +++ b/scripts/expertise/expertise_trader_harvester_energy_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_harvester_energy_2') - - actor.addSkillMod('expertise_harvester_energy_decrease', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_harvester_energy_2') - - actor.removeSkillMod('expertise_harvester_energy_decrease', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_harvester_energy_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_harvester_energy_2") return diff --git a/scripts/expertise/expertise_trader_harvester_energy_3.py b/scripts/expertise/expertise_trader_harvester_energy_3.py index 35e85782..247b53c3 100644 --- a/scripts/expertise/expertise_trader_harvester_energy_3.py +++ b/scripts/expertise/expertise_trader_harvester_energy_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_harvester_energy_3') - - actor.addSkillMod('expertise_harvester_energy_decrease', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_harvester_energy_3') - - actor.removeSkillMod('expertise_harvester_energy_decrease', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_harvester_energy_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_harvester_energy_3") return diff --git a/scripts/expertise/expertise_trader_harvester_energy_4.py b/scripts/expertise/expertise_trader_harvester_energy_4.py index f7132f84..8d6225be 100644 --- a/scripts/expertise/expertise_trader_harvester_energy_4.py +++ b/scripts/expertise/expertise_trader_harvester_energy_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_harvester_energy_4') - - actor.addSkillMod('expertise_harvester_energy_decrease', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_harvester_energy_4') - - actor.removeSkillMod('expertise_harvester_energy_decrease', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_harvester_energy_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_harvester_energy_4") return diff --git a/scripts/expertise/expertise_trader_harvester_maintenance_1.py b/scripts/expertise/expertise_trader_harvester_maintenance_1.py index 0dbf85ca..da891720 100644 --- a/scripts/expertise/expertise_trader_harvester_maintenance_1.py +++ b/scripts/expertise/expertise_trader_harvester_maintenance_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_harvester_maintenance_1') - - actor.addSkillMod('expertise_harvester_maintenance_decrease', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_harvester_maintenance_1') - - actor.removeSkillMod('expertise_harvester_maintenance_decrease', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_harvester_maintenance_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_harvester_maintenance_1") return diff --git a/scripts/expertise/expertise_trader_harvester_maintenance_2.py b/scripts/expertise/expertise_trader_harvester_maintenance_2.py index e581d20d..fd1f96cd 100644 --- a/scripts/expertise/expertise_trader_harvester_maintenance_2.py +++ b/scripts/expertise/expertise_trader_harvester_maintenance_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_harvester_maintenance_2') - - actor.addSkillMod('expertise_harvester_maintenance_decrease', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_harvester_maintenance_2') - - actor.removeSkillMod('expertise_harvester_maintenance_decrease', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_harvester_maintenance_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_harvester_maintenance_2") return diff --git a/scripts/expertise/expertise_trader_harvester_maintenance_3.py b/scripts/expertise/expertise_trader_harvester_maintenance_3.py index 85c77180..d1d62f39 100644 --- a/scripts/expertise/expertise_trader_harvester_maintenance_3.py +++ b/scripts/expertise/expertise_trader_harvester_maintenance_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_harvester_maintenance_3') - - actor.addSkillMod('expertise_harvester_maintenance_decrease', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_harvester_maintenance_3') - - actor.removeSkillMod('expertise_harvester_maintenance_decrease', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_harvester_maintenance_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_harvester_maintenance_3") return diff --git a/scripts/expertise/expertise_trader_harvester_maintenance_4.py b/scripts/expertise/expertise_trader_harvester_maintenance_4.py index e04f5f73..54e4b04e 100644 --- a/scripts/expertise/expertise_trader_harvester_maintenance_4.py +++ b/scripts/expertise/expertise_trader_harvester_maintenance_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_harvester_maintenance_4') - - actor.addSkillMod('expertise_harvester_maintenance_decrease', 4) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_harvester_maintenance_4') - - actor.removeSkillMod('expertise_harvester_maintenance_decrease', 4) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_harvester_maintenance_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_harvester_maintenance_4") return diff --git a/scripts/expertise/expertise_trader_harvester_storage_1.py b/scripts/expertise/expertise_trader_harvester_storage_1.py index ad6c85ee..a1a9c7c8 100644 --- a/scripts/expertise/expertise_trader_harvester_storage_1.py +++ b/scripts/expertise/expertise_trader_harvester_storage_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_harvester_storage_1') - - actor.addSkillMod('expertise_havester_storage_increase', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_harvester_storage_1') - - actor.removeSkillMod('expertise_havester_storage_increase', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_harvester_storage_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_harvester_storage_1") return diff --git a/scripts/expertise/expertise_trader_harvester_storage_2.py b/scripts/expertise/expertise_trader_harvester_storage_2.py index 9ac213e9..4f4dc914 100644 --- a/scripts/expertise/expertise_trader_harvester_storage_2.py +++ b/scripts/expertise/expertise_trader_harvester_storage_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_harvester_storage_2') - - actor.addSkillMod('expertise_havester_storage_increase', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_harvester_storage_2') - - actor.removeSkillMod('expertise_havester_storage_increase', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_harvester_storage_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_harvester_storage_2") return diff --git a/scripts/expertise/expertise_trader_harvester_storage_3.py b/scripts/expertise/expertise_trader_harvester_storage_3.py index 1c2abe57..d0c04a3d 100644 --- a/scripts/expertise/expertise_trader_harvester_storage_3.py +++ b/scripts/expertise/expertise_trader_harvester_storage_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_harvester_storage_3') - - actor.addSkillMod('expertise_havester_storage_increase', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_harvester_storage_3') - - actor.removeSkillMod('expertise_havester_storage_increase', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_harvester_storage_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_harvester_storage_3") return diff --git a/scripts/expertise/expertise_trader_harvester_storage_4.py b/scripts/expertise/expertise_trader_harvester_storage_4.py index 9abc452b..6e2b769b 100644 --- a/scripts/expertise/expertise_trader_harvester_storage_4.py +++ b/scripts/expertise/expertise_trader_harvester_storage_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_harvester_storage_4') - - actor.addSkillMod('expertise_havester_storage_increase', 3) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_harvester_storage_4') - - actor.removeSkillMod('expertise_havester_storage_increase', 3) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_harvester_storage_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_harvester_storage_4") return diff --git a/scripts/expertise/expertise_trader_personnel_management_1.py b/scripts/expertise/expertise_trader_personnel_management_1.py index 9e618df1..e44aba53 100644 --- a/scripts/expertise/expertise_trader_personnel_management_1.py +++ b/scripts/expertise/expertise_trader_personnel_management_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_personnel_management_1') - - actor.addSkillMod('manage_vendor', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_personnel_management_1') - - actor.removeSkillMod('manage_vendor', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_personnel_management_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_personnel_management_1") return diff --git a/scripts/expertise/expertise_trader_personnel_management_2.py b/scripts/expertise/expertise_trader_personnel_management_2.py index 465e9b8e..064d6415 100644 --- a/scripts/expertise/expertise_trader_personnel_management_2.py +++ b/scripts/expertise/expertise_trader_personnel_management_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_personnel_management_2') - - actor.addSkillMod('manage_vendor', 1) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_personnel_management_2') - - actor.removeSkillMod('manage_vendor', 1) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_personnel_management_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_personnel_management_2") return diff --git a/scripts/expertise/expertise_trader_reverse_engineering_1.py b/scripts/expertise/expertise_trader_reverse_engineering_1.py index 6c6a1599..26f209bc 100644 --- a/scripts/expertise/expertise_trader_reverse_engineering_1.py +++ b/scripts/expertise/expertise_trader_reverse_engineering_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_reverse_engineering_1') - - actor.addSkillMod('expertise_reverse_engineering_bonus', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_reverse_engineering_1') - - actor.removeSkillMod('expertise_reverse_engineering_bonus', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_reverse_engineering_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_reverse_engineering_1") return diff --git a/scripts/expertise/expertise_trader_reverse_engineering_2.py b/scripts/expertise/expertise_trader_reverse_engineering_2.py index a0716403..2192e020 100644 --- a/scripts/expertise/expertise_trader_reverse_engineering_2.py +++ b/scripts/expertise/expertise_trader_reverse_engineering_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_reverse_engineering_2') - - actor.addSkillMod('expertise_reverse_engineering_bonus', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_reverse_engineering_2') - - actor.removeSkillMod('expertise_reverse_engineering_bonus', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_reverse_engineering_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_reverse_engineering_2") return diff --git a/scripts/expertise/expertise_trader_sampling_collection_1.py b/scripts/expertise/expertise_trader_sampling_collection_1.py index cb6861b2..4935bf9d 100644 --- a/scripts/expertise/expertise_trader_sampling_collection_1.py +++ b/scripts/expertise/expertise_trader_sampling_collection_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_sampling_collection_1') - - actor.addSkillMod('expertise_resource_sampling_increase', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_sampling_collection_1') - - actor.removeSkillMod('expertise_resource_sampling_increase', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_sampling_collection_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_sampling_collection_1") return diff --git a/scripts/expertise/expertise_trader_sampling_collection_2.py b/scripts/expertise/expertise_trader_sampling_collection_2.py index f1c55a3d..1fa225fc 100644 --- a/scripts/expertise/expertise_trader_sampling_collection_2.py +++ b/scripts/expertise/expertise_trader_sampling_collection_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_sampling_collection_2') - - actor.addSkillMod('expertise_resource_sampling_increase', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_sampling_collection_2') - - actor.removeSkillMod('expertise_resource_sampling_increase', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_sampling_collection_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_sampling_collection_2") return diff --git a/scripts/expertise/expertise_trader_sampling_collection_3.py b/scripts/expertise/expertise_trader_sampling_collection_3.py index b6a31585..9a7a1174 100644 --- a/scripts/expertise/expertise_trader_sampling_collection_3.py +++ b/scripts/expertise/expertise_trader_sampling_collection_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_sampling_collection_3') - - actor.addSkillMod('expertise_resource_sampling_increase', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_sampling_collection_3') - - actor.removeSkillMod('expertise_resource_sampling_increase', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_sampling_collection_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_sampling_collection_3") return diff --git a/scripts/expertise/expertise_trader_sampling_collection_4.py b/scripts/expertise/expertise_trader_sampling_collection_4.py index 08805c30..158ca5da 100644 --- a/scripts/expertise/expertise_trader_sampling_collection_4.py +++ b/scripts/expertise/expertise_trader_sampling_collection_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_sampling_collection_4') - - actor.addSkillMod('expertise_resource_sampling_increase', 25) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_sampling_collection_4') - - actor.removeSkillMod('expertise_resource_sampling_increase', 25) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_sampling_collection_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_sampling_collection_4") return diff --git a/scripts/expertise/expertise_trader_sampling_efficiency_1.py b/scripts/expertise/expertise_trader_sampling_efficiency_1.py index 0722f5bb..2f4c90f2 100644 --- a/scripts/expertise/expertise_trader_sampling_efficiency_1.py +++ b/scripts/expertise/expertise_trader_sampling_efficiency_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_sampling_efficiency_1') - - actor.addSkillMod('expertise_resource_sampling_time_decrease', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_sampling_efficiency_1') - - actor.removeSkillMod('expertise_resource_sampling_time_decrease', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_sampling_efficiency_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_sampling_efficiency_1") return diff --git a/scripts/expertise/expertise_trader_sampling_efficiency_2.py b/scripts/expertise/expertise_trader_sampling_efficiency_2.py index c9043c3f..f197eff0 100644 --- a/scripts/expertise/expertise_trader_sampling_efficiency_2.py +++ b/scripts/expertise/expertise_trader_sampling_efficiency_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_sampling_efficiency_2') - - actor.addSkillMod('expertise_resource_sampling_time_decrease', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_sampling_efficiency_2') - - actor.removeSkillMod('expertise_resource_sampling_time_decrease', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_sampling_efficiency_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_sampling_efficiency_2") return diff --git a/scripts/expertise/expertise_trader_sampling_efficiency_3.py b/scripts/expertise/expertise_trader_sampling_efficiency_3.py index 2d3d621c..cf2e5c0c 100644 --- a/scripts/expertise/expertise_trader_sampling_efficiency_3.py +++ b/scripts/expertise/expertise_trader_sampling_efficiency_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_sampling_efficiency_3') - - actor.addSkillMod('expertise_resource_sampling_time_decrease', 5) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_sampling_efficiency_3') - - actor.removeSkillMod('expertise_resource_sampling_time_decrease', 5) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_sampling_efficiency_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_sampling_efficiency_3") return diff --git a/scripts/expertise/expertise_trader_warehousing_1.py b/scripts/expertise/expertise_trader_warehousing_1.py index c865daf6..9ca8b894 100644 --- a/scripts/expertise/expertise_trader_warehousing_1.py +++ b/scripts/expertise/expertise_trader_warehousing_1.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_warehousing_1') - - actor.addSkillMod('vendor_item_limit', 50) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_warehousing_1') - - actor.removeSkillMod('vendor_item_limit', 50) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_trader_warehousing_1") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_trader_warehousing_1") return diff --git a/scripts/expertise/expertise_trader_warehousing_2.py b/scripts/expertise/expertise_trader_warehousing_2.py index 99f6db9d..5541c71e 100644 --- a/scripts/expertise/expertise_trader_warehousing_2.py +++ b/scripts/expertise/expertise_trader_warehousing_2.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_warehousing_2') - - actor.addSkillMod('vendor_item_limit', 50) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_warehousing_2') - - actor.removeSkillMod('vendor_item_limit', 50) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_trader_warehousing_2") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_trader_warehousing_2") return diff --git a/scripts/expertise/expertise_trader_warehousing_3.py b/scripts/expertise/expertise_trader_warehousing_3.py index 19d00373..eb1dc350 100644 --- a/scripts/expertise/expertise_trader_warehousing_3.py +++ b/scripts/expertise/expertise_trader_warehousing_3.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_warehousing_3') - - actor.addSkillMod('vendor_item_limit', 50) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_warehousing_3') - - actor.removeSkillMod('vendor_item_limit', 50) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_trader_warehousing_3") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_trader_warehousing_3") return diff --git a/scripts/expertise/expertise_trader_warehousing_4.py b/scripts/expertise/expertise_trader_warehousing_4.py index cb2f936c..96495edd 100644 --- a/scripts/expertise/expertise_trader_warehousing_4.py +++ b/scripts/expertise/expertise_trader_warehousing_4.py @@ -1,48 +1,9 @@ import sys -def addExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.addSkill('expertise_trader_warehousing_4') - - actor.addSkillMod('vendor_item_limit', 50) - - addAbilities(core, actor, player) - - return - -def removeExpertisePoint(core, actor): - - player = actor.getSlottedObject('ghost') - - if not player: - return - - if not player.getProfession() == 'trader_1a': - return - - actor.removeSkill('expertise_trader_warehousing_4') - - actor.removeSkillMod('vendor_item_limit', 50) - - removeAbilities(core, actor, player) - - return - -# this checks what abilities the player gets by level, need to also call this on level-up def addAbilities(core, actor, player): - - + actor.addAbility("expertise_trader_trader_warehousing_4") return def removeAbilities(core, actor, player): - - + actor.removeAbility("expertise_trader_trader_warehousing_4") return diff --git a/scripts/mobiles/canon/jedi_master.py b/scripts/mobiles/canon/jedi_master.py index 9770c507..d2b65aaf 100644 --- a/scripts/mobiles/canon/jedi_master.py +++ b/scripts/mobiles/canon/jedi_master.py @@ -4,6 +4,12 @@ from java.util import Vector def addTemplate(core): mobileTemplate = MobileTemplate() + + mobileTemplate.setCreatureName('eow_dark_jedi_sentinel_uber') + mobileTemplate.setLevel(90) + mobileTemplate.setDifficulty(2) + mobileTemplate.setAttackRange(6) + templates = Vector() templates.add('object/mobile/shared_dressed_dark_jedi_master_female_twk_01.iff') templates.add('object/mobile/shared_dressed_dark_jedi_master_female_twk_02.iff') @@ -14,13 +20,16 @@ def addTemplate(core): templates.add('object/mobile/shared_dressed_dark_jedi_master_male_human_05.iff') templates.add('object/mobile/shared_dressed_dark_jedi_master_male_human_06.iff') mobileTemplate.setTemplates(templates) - mobileTemplate.setLevel(90) - mobileTemplate.setDifficulty(2) - mobileTemplate.setCustomWeaponTemplate('object/weapon/melee/2h_sword/crafted_saber/shared_sword_lightsaber_two_handed_gen5.iff') + + weaponTemplates = Vector() + weaponTemplates.add('object/weapon/melee/sword/crafted_saber/shared_sword_lightsaber_one_handed_gen5.iff') + weaponTemplates.add('object/weapon/melee/2h_sword/crafted_saber/shared_sword_lightsaber_two_handed_gen5.iff') + weaponTemplates.add('object/weapon/melee/polearm/crafted_saber/shared_sword_lightsaber_polearm_gen5.iff') + mobileTemplate.setWeaponTemplates(weaponTemplates) + attacks = Vector() mobileTemplate.setDefaultAttack('saberHit') mobileTemplate.setAttacks(attacks) - mobileTemplate.setCreatureName('eow_dark_jedi_sentinel_uber') - mobileTemplate.setAttackRange(6) + core.spawnService.addMobileTemplate('jedi_master', mobileTemplate) \ No newline at end of file diff --git a/scripts/mobiles/canon/stormtrooper.py b/scripts/mobiles/canon/stormtrooper.py new file mode 100644 index 00000000..90da938f --- /dev/null +++ b/scripts/mobiles/canon/stormtrooper.py @@ -0,0 +1,27 @@ +import sys +from services.spawn import MobileTemplate +from java.util import Vector + +def addTemplate(core): + mobileTemplate = MobileTemplate() + + mobileTemplate.setCreatureName('stormtrooper') + mobileTemplate.setLevel(90) + mobileTemplate.setDifficulty(0) + mobileTemplate.setAttackRange(24) + + templates = Vector() + templates.add('object/mobile/shared_dressed_stormtrooper_m.iff') + mobileTemplate.setTemplates(templates) + + weaponTemplates = Vector() + weaponTemplates.add('object/weapon/ranged/rifle/shared_rifle_e11.iff') + weaponTemplates.add('object/weapon/ranged/rifle/shared_rifle_t21.iff') + mobileTemplate.setWeaponTemplates(weaponTemplates) + + attacks = Vector() + mobileTemplate.setDefaultAttack('rangedShot') + mobileTemplate.setAttacks(attacks) + + core.spawnService.addMobileTemplate('stormtrooper', mobileTemplate) + \ No newline at end of file diff --git a/scripts/mobiles/naboo/chuba.py b/scripts/mobiles/naboo/chuba.py index c40d2421..085d9e77 100644 --- a/scripts/mobiles/naboo/chuba.py +++ b/scripts/mobiles/naboo/chuba.py @@ -6,6 +6,7 @@ def addTemplate(core): mobileTemplate = MobileTemplate() templates = Vector() templates.add('object/mobile/shared_chuba_hue.iff') + mobileTemplate.setCreatureName('chuba') mobileTemplate.setTemplates(templates) mobileTemplate.setLevel(5) attacks = Vector() diff --git a/scripts/mobiles/tatooine/kreetle.py b/scripts/mobiles/tatooine/kreetle.py index 6d96166b..ec037bd4 100644 --- a/scripts/mobiles/tatooine/kreetle.py +++ b/scripts/mobiles/tatooine/kreetle.py @@ -6,6 +6,7 @@ def addTemplate(core): mobileTemplate = MobileTemplate() templates = Vector() templates.add('object/mobile/shared_kreetle.iff') + mobileTemplate.setCreatureName('kreetle') mobileTemplate.setTemplates(templates) mobileTemplate.setLevel(5) attacks = Vector() diff --git a/scripts/mobiles/tatooine/womprat.py b/scripts/mobiles/tatooine/womprat.py index f1531b4c..836d9922 100644 --- a/scripts/mobiles/tatooine/womprat.py +++ b/scripts/mobiles/tatooine/womprat.py @@ -6,6 +6,7 @@ def addTemplate(core): mobileTemplate = MobileTemplate() templates = Vector() templates.add('object/mobile/shared_womp_rat.iff') + mobileTemplate.setCreatureName('womprat') mobileTemplate.setTemplates(templates) mobileTemplate.setLevel(5) attacks = Vector() diff --git a/scripts/object/mobile/respec_seller_f_1.py b/scripts/object/mobile/respec_seller_f_1.py index ccad8904..fce43dfc 100644 --- a/scripts/object/mobile/respec_seller_f_1.py +++ b/scripts/object/mobile/respec_seller_f_1.py @@ -1,4 +1,7 @@ import sys +from resources.datatables import Options def setup(core, object): + object.setAttachment('radial_filename', 'conversation') + object.setAttachment('conversationFile', 'respec') return \ No newline at end of file diff --git a/scripts/object/tangible/loot/generic_usable/stim_syringe_generic.py b/scripts/object/tangible/loot/generic_usable/stim_syringe_generic.py index ccad8904..15085ba3 100644 --- a/scripts/object/tangible/loot/generic_usable/stim_syringe_generic.py +++ b/scripts/object/tangible/loot/generic_usable/stim_syringe_generic.py @@ -1,4 +1,5 @@ import sys def setup(core, object): + object.setAttachment('radial_filename', 'usable') return \ No newline at end of file diff --git a/scripts/object/tangible/wearables/backpack/fannypack_s01.py b/scripts/object/tangible/wearables/backpack/fannypack_s01.py index ccad8904..b0e3e3ee 100644 --- a/scripts/object/tangible/wearables/backpack/fannypack_s01.py +++ b/scripts/object/tangible/wearables/backpack/fannypack_s01.py @@ -1,4 +1,16 @@ import sys def setup(core, object): + object.setStfFilename('static_item_n') + object.setStfName('item_fannypack_04_01') + object.setDetailFilename('static_item_d') + object.setDetailName('item_fannypack_04_01') + + object.setIntAttribute('cat_stat_mod_bonus.@stat_n:constitution_modified', 50) + object.setIntAttribute('cat_stat_mod_bonus.@stat_n:luck_modified', 50) + object.setIntAttribute('cat_stat_mod_bonus.@stat_n:precision_modified', 50) + object.setIntAttribute('cat_stat_mod_bonus.@stat_n:strength_modified', 50) + + object.setStringAttribute('@set_bonus:piece_bonus_count_2', '@set_bonus:set_bonus_jedi_robe_1') + object.setAttachment('setBonus', 'set_bonus_jedi_robe') return \ No newline at end of file diff --git a/scripts/object/tangible/wearables/robe/robe_jedi_light_s03.py b/scripts/object/tangible/wearables/robe/robe_jedi_light_s03.py index a40fe4b9..904d0be2 100644 --- a/scripts/object/tangible/wearables/robe/robe_jedi_light_s03.py +++ b/scripts/object/tangible/wearables/robe/robe_jedi_light_s03.py @@ -5,12 +5,17 @@ def setup(core, object): object.setStfName('item_jedi_robe_light_03_03') object.setDetailFilename('static_item_d') object.setDetailName('item_jedi_robe_light_03_03') - object.setIntAttribute('cat_stat_mod_bonus.@stat_n:constitution_modified', 185) - object.setIntAttribute('cat_stat_mod_bonus.@stat_n:strength_modified', 185) - object.setIntAttribute('cat_stat_mod_bonus.@stat_n:agility_modified', 185) + object.setStringAttribute('protection_level', 'Luminous') object.setStringAttribute('class_required', 'Jedi') object.setIntAttribute('required_combat_level', 80) - object.setAttachment('type', 'jedi_robe') + + object.setIntAttribute('cat_stat_mod_bonus.@stat_n:constitution_modified', 185) + object.setIntAttribute('cat_stat_mod_bonus.@stat_n:strength_modified', 185) + object.setIntAttribute('cat_stat_mod_bonus.@stat_n:agility_modified', 185) + object.setStringAttribute('@set_bonus:piece_bonus_count_2', '@set_bonus:set_bonus_jedi_robe_1') + + object.setAttachment('type', 'jedi_robe') + object.setAttachment('setBonus', 'set_bonus_jedi_robe') return diff --git a/scripts/object/tangible/wearables/robe/robe_jedi_light_s04.py b/scripts/object/tangible/wearables/robe/robe_jedi_light_s04.py index be022790..cbbd49cd 100644 --- a/scripts/object/tangible/wearables/robe/robe_jedi_light_s04.py +++ b/scripts/object/tangible/wearables/robe/robe_jedi_light_s04.py @@ -1,31 +1,26 @@ import sys def setup(core, object): + object.setStfFilename('static_item_n') + object.setStfName('item_jedi_robe_light_04_04') + object.setDetailFilename('static_item_d') + object.setDetailName('item_jedi_robe_light_04_04') + + object.setStringAttribute('protection_level', 'Radiant') + object.setStringAttribute('class_required', 'Jedi') + object.setIntAttribute('required_combat_level', 90) + + object.setIntAttribute('cat_stat_mod_bonus.@stat_n:constitution_modified', 250) + object.setIntAttribute('cat_stat_mod_bonus.@stat_n:strength_modified', 250) + object.setIntAttribute('cat_stat_mod_bonus.@stat_n:agility_modified', 250) + + + object.setStringAttribute('proc_name', '@ui_buff:proc_old_light_jedi_gift') + object.setStringAttribute('@set_bonus:piece_bonus_count_2', '@set_bonus:set_bonus_jedi_robe_1') + + object.setAttachment('type', 'jedi_robe') + object.setAttachment('setBonus', 'set_bonus_jedi_robe') + return - -def equip(core, actor, target): - core.skillModService.addSkillMod(actor, 'agility_modified', 250) - core.skillModService.addSkillMod(actor, 'constitution_modified', 250) - core.skillModService.addSkillMod(actor, 'strength_modified', 250) - - Buff = actor.getBuffByName('proc_old_light_jedi_gift') - if actor.getBuffList().contains(Buff): - core.buffService.removeBuffFromCreature(actor, Buff) - return - - if actor: - core.buffService.addBuffToCreature(actor, 'proc_old_light_jedi_gift') - return - return - -def unequip(core, actor, target): - core.skillModService.deductSkillMod(actor, 'agility_modified', 250) - core.skillModService.deductSkillMod(actor, 'constitution_modified', 250) - core.skillModService.deductSkillMod(actor, 'strength_modified', 250) - - Buff = actor.getBuffByName('proc_old_light_jedi_gift') - if actor.getBuffList().contains(Buff): - core.buffService.removeBuffFromCreature(actor, Buff) - return - return + \ No newline at end of file diff --git a/scripts/radial/conversation.py b/scripts/radial/conversation.py new file mode 100644 index 00000000..ee774b7d --- /dev/null +++ b/scripts/radial/conversation.py @@ -0,0 +1,15 @@ +from resources.common import RadialOptions +import sys + +def createRadial(core, owner, target, radials): + radials.add(RadialOptions(0, 21, 1, '')) + radials.add(RadialOptions(0, 7, 1, '')) + radials.add(RadialOptions(0, 26, 1, '')) + return + +def handleSelection(core, owner, target, option): + if option == 26 and target: + print 'test' + core.conversationService.handleStartConversation(owner, target) + return + \ No newline at end of file diff --git a/scripts/radial/player.py b/scripts/radial/player.py index 6ad15a17..08fa50e0 100644 --- a/scripts/radial/player.py +++ b/scripts/radial/player.py @@ -7,7 +7,7 @@ def createRadial(core, owner, target, radials): if owner.getPerformanceWatchee() == target: if target.getPerformanceType() is True: radials.add(RadialOptions(0, 141, 3, 'Stop Watching')) - elif owner.getPerformanceListenee() == target: # TODO: Get rid of PerformanceWatchee variable, no need for listenee (same thing really) + elif owner.getPerformanceListenee() == target: radials.add(RadialOptions(0, 141, 3, 'Stop Listening')) else: if target.getPerformanceType() is True: @@ -27,6 +27,6 @@ def handleSelection(core, owner, target, option): return if option == 141: - #core.commandService.callCommand(owner, 'stopwatching', target, '') #SWGList error for remove audience in CreatureObject + core.commandService.callCommand(owner, 'stopwatching', target, '') return return \ No newline at end of file diff --git a/scripts/skillMods/action.py b/scripts/skillMods/action.py new file mode 100644 index 00000000..5d92ea61 --- /dev/null +++ b/scripts/skillMods/action.py @@ -0,0 +1,12 @@ +import sys + +def add(core, actor, name, base): + actor.addSkillMod(name, base) + actor.setMaxAction(actor.getMaxAction() + base) + return + +def deduct(core, actor, name, base): + actor.deductSkillMod(name, base) + actor.setMaxAction(actor.getMaxAction() - base) + return + \ No newline at end of file diff --git a/scripts/skillMods/actionPercent.py b/scripts/skillMods/actionPercent.py new file mode 100644 index 00000000..aaae3c10 --- /dev/null +++ b/scripts/skillMods/actionPercent.py @@ -0,0 +1,14 @@ +import sys + +# Temporarily disabled until the skillmod calculation system is refactored + +def add(core, actor, name, base): + #actor.addSkillMod(name, base) + #actor.setMaxAction(actor.getMaxAction() + int((float(actor.getMaxAction()) * (float(base) / float(100))))) + return + +def deduct(core, actor, name, base): + #actor.deductSkillMod(name, base) + #actor.setMaxAction(actor.getMaxAction() - int((float(actor.getMaxAction()) * (float(base) / float(100))))) + return + \ No newline at end of file diff --git a/scripts/skillMods/expertise_focus.py b/scripts/skillMods/expertise_focus.py index 0d10255e..c73060b3 100644 --- a/scripts/skillMods/expertise_focus.py +++ b/scripts/skillMods/expertise_focus.py @@ -2,14 +2,14 @@ import sys def add(core, actor, name, base): actor.addSkillMod(name, base) - core.skillModService.addSkillMod(actor, 'stamina_modified', (actor.getSkillModBase('expertise_stance_constitution'))) + core.skillModService.addSkillMod(actor, 'stamina_modified', (actor.getSkillModBase('expertise_focus_stamina'))) core.skillModService.addSkillMod(actor, 'display_only_critical', 100 * (actor.getSkillModBase('expertise_focus_critical_buff_line'))) core.skillModService.addSkillMod(actor, 'expertise_damage_melee', 1 * (actor.getSkillModBase('expertise_focus_damage_increase'))) return def deduct(core, actor, name, base): actor.deductSkillMod(name, base) - core.skillModService.deductSkillMod(actor, 'stamina_modified', (actor.getSkillModBase('expertise_stance_constitution'))) + core.skillModService.deductSkillMod(actor, 'stamina_modified', (actor.getSkillModBase('expertise_focus_stamina'))) core.skillModService.deductSkillMod(actor, 'display_only_critical', 100 * (actor.getSkillModBase('expertise_focus_critical_buff_line'))) core.skillModService.deductSkillMod(actor, 'expertise_damage_melee', 1 * (actor.getSkillModBase('expertise_focus_damage_increase'))) return diff --git a/scripts/skillMods/expertise_focus_damage_increase.py b/scripts/skillMods/expertise_focus_damage_increase.py new file mode 100644 index 00000000..ee7769e2 --- /dev/null +++ b/scripts/skillMods/expertise_focus_damage_increase.py @@ -0,0 +1,10 @@ +import sys + +def add(core, actor, name, base): + actor.addSkillMod(name, base) + return + +def deduct(core, actor, name, base): + actor.deductSkillMod(name, base) + return + \ No newline at end of file diff --git a/scripts/skillMods/health.py b/scripts/skillMods/health.py new file mode 100644 index 00000000..b4a86dd4 --- /dev/null +++ b/scripts/skillMods/health.py @@ -0,0 +1,12 @@ +import sys + +def add(core, actor, name, base): + actor.addSkillMod(name, base) + actor.setMaxHealth(actor.getMaxHealth() + base) + return + +def deduct(core, actor, name, base): + actor.deductSkillMod(name, base) + actor.setMaxHealth(actor.getMaxHealth() - base) + return + \ No newline at end of file diff --git a/scripts/skillMods/healthPercent.py b/scripts/skillMods/healthPercent.py new file mode 100644 index 00000000..de8a3424 --- /dev/null +++ b/scripts/skillMods/healthPercent.py @@ -0,0 +1,14 @@ +import sys + +# Temporarily disabled until the skillmod calculation system is refactored + +def add(core, actor, name, base): + #actor.addSkillMod(name, base) + #actor.setMaxHealth(actor.getMaxHealth() + int((float(actor.getMaxHealth()) * (float(base) / float(100))))) + return + +def deduct(core, actor, name, base): + #actor.deductSkillMod(name, base) + #actor.setMaxHealth(actor.getMaxHealth() - int((actor.getMaxHealth() * (float(base) / float(100))))) + return + \ No newline at end of file diff --git a/scripts/skillMods/movement.py b/scripts/skillMods/movement.py index a842f3db..fd0ded59 100644 --- a/scripts/skillMods/movement.py +++ b/scripts/skillMods/movement.py @@ -1,11 +1,11 @@ import sys def add(core, actor, name, base): - actor.addSkillMod(name, base) - actor.setSpeedMultiplierBase(actor.getSpeedMultiplierBase() + base / 100) + #actor.addSkillMod(name, base) + actor.setSpeedMultiplierMod(actor.getSpeedMultiplierMod() + (float(base) / float(10))) return def deduct(core, actor, name, base): - actor.setSpeedMultiplierBase(actor.getSpeedMultiplierBase() - base / 100) - actor.deductSkillMod(name, base) + #actor.deductSkillMod(name, base) + actor.setSpeedMultiplierMod(actor.getSpeedMultiplierMod() - (float(base) / float(10))) return \ No newline at end of file diff --git a/scripts/static_spawns/kaas.py b/scripts/static_spawns/kaas.py index 6b171a07..41460025 100644 --- a/scripts/static_spawns/kaas.py +++ b/scripts/static_spawns/kaas.py @@ -1,13 +1,74 @@ import sys +# Project SWG: Dromund Kaas: Static Spawns +# (C)2014 ProjectSWG + +# Do not make ANY changes to this script without direct approval from Levarris! + from resources.datatables import Options from resources.datatables import StateStatus def addPlanetSpawns(core, planet): + stcSvc = core.staticService + objSvc = core.objectService +#Dark Temple Area + #Structures + stcSvc.spawnObject('object/building/military/shared_military_base_police_station_imperial_lok_otto.iff', 'kaas', long(0), float(-5117.8), float(80.0), float(-2314.1), float(0), float(0)) + stcSvc.spawnObject('object/building/player/shared_player_house_corellia_medium_style_01.iff', 'kaas', long(0), float(-5078.6), float(80.0), float(-2302.5), float(0), float(0)) + stcSvc.spawnObject('object/building/general/shared_bunker_imperial_weapons_research_facility_01.iff', 'kaas', long(0), float(-5159.5), float(80.0), float(-2298.7), float(0), float(0)) + stcSvc.spawnObject('object/building/content/aurilia/shared_aurilia_pyramid_hut.iff', 'kaas', long(0), float(-5163.9), float(79.0), float(-2369.6), float(0.71), float(0.71)) + stcSvc.spawnObject('object/building/content/aurilia/shared_aurilia_pyramid_hut.iff', 'kaas', long(0), float(-5163.9), float(79.0), float(-2351.6), float(0.71), float(0.71)) + stcSvc.spawnObject('object/building/content/aurilia/shared_aurilia_pyramid_hut.iff', 'kaas', long(0), float(-5072.1), float(79.0), float(-2369.6), float(-0.71), float(0.71)) + stcSvc.spawnObject('object/building/content/aurilia/shared_aurilia_pyramid_hut.iff', 'kaas', long(0), float(-5072.1), float(79.0), float(-2351.6), float(-0.71), float(0.71)) - #stcSvc.spawnObject('object/mobile/shared_3po_protocol_droid_red.iff', 'tatooine', long(26582), float(-14.3), float(2.0), float(47.4), float(0.70), float(0.71)) + #Decor + stcSvc.spawnObject('object/static/vehicle/shared_static_lambda_shuttle.iff', 'kaas', long(0), float(-5078.1), float(80.0), float(-2256.0), float(-0.70), float(0.70)) + stcSvc.spawnObject('object/building/content/aurilia/shared_aurilia_crystal_centerpiece.iff', 'kaas', long(0), float(-5121.5), float(80.0), float(-2360.5), float(0), float(0)) + stcSvc.spawnObject('object/static/structure/tatooine/shared_antenna_tatt_style_1.iff', 'kaas', long(0), float(-5146.7), float(80.0), float(-2301.7), float(0), float(0)) + #Streetlamps + stcSvc.spawnObject('object/static/structure/general/shared_streetlamp_large_blue_style_01_on.iff', 'kaas', long(0), float(-5109.9), float(80.0), float(-2289.9), float(0), float(0)) + stcSvc.spawnObject('object/static/structure/general/shared_streetlamp_large_blue_style_01_on.iff', 'kaas', long(0), float(-5125.9), float(80.0), float(-2289.9), float(0), float(0)) + stcSvc.spawnObject('object/static/structure/general/shared_streetlamp_large_blue_style_01_on.iff', 'kaas', long(0), float(-5115.0), float(80.0), float(-2346.6), float(0), float(0)) + stcSvc.spawnObject('object/static/structure/general/shared_streetlamp_large_blue_style_01_on.iff', 'kaas', long(0), float(-5120.8), float(80.0), float(-2346.6), float(0), float(0)) + stcSvc.spawnObject('object/static/structure/general/shared_streetlamp_large_blue_style_01_on.iff', 'kaas', long(0), float(-5127.3), float(80.0), float(-2219.0), float(0), float(0)) + stcSvc.spawnObject('object/static/structure/general/shared_streetlamp_large_blue_style_01_on.iff', 'kaas', long(0), float(-5111.2), float(80.0), float(-2219.0), float(0), float(0)) + stcSvc.spawnObject('object/static/structure/general/shared_streetlamp_large_blue_style_01_on.iff', 'kaas', long(0), float(-5162.8), float(80.0), float(-2285.9), float(0), float(0)) + stcSvc.spawnObject('object/static/structure/general/shared_streetlamp_large_blue_style_01_on.iff', 'kaas', long(0), float(-5067.3), float(80.0), float(-2294.9), float(0), float(0)) + stcSvc.spawnObject('object/static/structure/general/shared_streetlamp_large_blue_style_01_on.iff', 'kaas', long(0), float(-5068.6), float(80.0), float(-2228.1), float(0), float(0)) + stcSvc.spawnObject('object/static/structure/general/shared_streetlamp_large_blue_style_01_on.iff', 'kaas', long(0), float(-5078.5), float(80.0), float(-2360.5), float(0), float(0)) + stcSvc.spawnObject('object/static/structure/general/shared_streetlamp_large_blue_style_01_on.iff', 'kaas', long(0), float(-5157.5), float(80.0), float(-2360.5), float(0), float(0)) + #Dark Temple Interior + stcSvc.spawnObject('object/static/structure/content/shared_exar_kun_torch_01.iff', 'kaas', long(468319), float(0.0), float(-1.3), float(20.8), float(0), float(0)) + + +#Village of the Descendants Area + stcSvc.spawnObject('object/building/general/shared_cave_01.iff', 'kaas', long(0), float(3348.1), float(110), float(2562.1), float(0), float(0)) + +#Kaas City Ruins + +#Tomb of Vitiate + +#Northwest Cave + stcSvc.spawnObject('object/building/general/shared_cave_01.iff', 'kaas', long(0), float(-6135.3), float(185), float(6575.0), float(0), float(0)) + +#Abandoned Separatist Base + stcSvc.spawnObject('object/building/military/shared_military_base_police_station_rebel_style_01.iff', 'kaas', long(0), float(-3509), float(77), float(6800), float(0), float(0)) + +#Sith Meditation Chamber + stcSvc.spawnObject('object/building/player/shared_player_house_sith_meditation_room.iff', 'kaas', long(0), float(4766), float(126), float(-7307), float(0), float(0)) + +#Large Ruin + stcSvc.spawnObject('object/static/structure/dantooine/shared_dant_jedi_main_structure.iff', 'kaas', long(0), float(-434), float(77), float(-2252), float(0), float(0)) + +#Central North Ruin + stcSvc.spawnObject('object/static/structure/dantooine/shared_dant_jedi_wall_1.iff', 'kaas', long(0), float(-50), float(77), float(6313), float(0), float(0)) + stcSvc.spawnObject('object/static/structure/dantooine/shared_dant_jedi_wall_2.iff', 'kaas', long(0), float(-58), float(77), float(6304), float(0.71), float(0.71)) + stcSvc.spawnObject('object/static/structure/dantooine/shared_dant_jedi_wall_1.iff', 'kaas', long(0), float(-58), float(77), float(6321), float(-0.71), float(0.71)) + stcSvc.spawnObject('object/static/structure/dantooine/shared_dant_jedi_wall_2.iff', 'kaas', long(0), float(-71), float(77), float(6312), float(0), float(0)) + stcSvc.spawnObject('object/static/structure/dantooine/shared_dant_jedi_temple_pillar.iff', 'kaas', long(0), float(-71.0), float(78), float(6320.8), float(0), float(0)) + return diff --git a/scripts/static_spawns/tatooine.py b/scripts/static_spawns/tatooine.py index 785f26b5..7944d2f3 100644 --- a/scripts/static_spawns/tatooine.py +++ b/scripts/static_spawns/tatooine.py @@ -9,6 +9,9 @@ def addPlanetSpawns(core, planet): #stcSvc.spawnObject('object/mobile/shared_3po_protocol_droid_red.iff', 'tatooine', long(26582), float(-14.3), float(2.0), float(47.4), float(0.70), float(0.71)) stcSvc.spawnObject('object/tangible/terminal/shared_terminal_character_builder.iff', 'tatooine', long(0), float(3525), float(4), float(-4801), float(0.70), float(0.71)) + #object = stcSvc.spawnObject('object/mobile/shared_respec_seller_f_1.iff', 'tatooine', long(0), float(3533.14), float(5), float(-4788.86), float(-0.3327), float(0.9288)) + #object.setOptionsBitmask(264) + return diff --git a/src/main/NGECore.java b/src/main/NGECore.java index 64815dfa..c33a3e94 100644 --- a/src/main/NGECore.java +++ b/src/main/NGECore.java @@ -52,6 +52,7 @@ import services.AttributeService; import services.BuffService; import services.CharacterService; import services.ConnectionService; +import services.ConversationService; import services.DevService; import services.EntertainmentService; import services.EquipmentService; @@ -169,8 +170,12 @@ public class NGECore { //public MissionService missionService; public InstanceService instanceService; public DevService devService; +<<<<<<< HEAD public SurveyService surveyService; public ResourceService resourceService; +======= + public ConversationService conversationService; +>>>>>>> origin/master // Login Server public NetworkDispatch loginDispatch; @@ -194,11 +199,16 @@ public class NGECore { private BusConfiguration eventBusConfig = BusConfiguration.Default(1, new ThreadPoolExecutor(1, 4, 1, TimeUnit.MINUTES, new LinkedBlockingQueue())); private ObjectDatabase buildingODB; +<<<<<<< HEAD private ObjectDatabase resourcesODB; private ObjectDatabase resourceRootsODB; private ObjectDatabase resourceHistoryODB; public static boolean PACKET_DEBUG = false; +======= + + +>>>>>>> origin/master public NGECore() { @@ -275,6 +285,7 @@ public class NGECore { equipmentService = new EquipmentService(this); entertainmentService = new EntertainmentService(this); devService = new DevService(this); + conversationService = new ConversationService(this); if (config.keyExists("JYTHONCONSOLE.PORT")) { int jythonPort = config.getInt("JYTHONCONSOLE.PORT"); @@ -433,14 +444,39 @@ public class NGECore { spawnService.loadLairGroups(); spawnService.loadSpawnAreas(); + equipmentService.loadBonusSets(); + retroService.run(); didServerCrash = false; System.out.println("Started Server."); + cleanupCreatureODB(); setGalaxyStatus(2); } + private void cleanupCreatureODB() { + EntityCursor cursor = creatureODB.getCursor(Long.class, CreatureObject.class); + + Iterator it = cursor.iterator(); + List deletedObjects = new ArrayList(); + + while(it.hasNext()) { + CreatureObject creature = it.next(); + if(!characterService.playerExists(creature.getObjectID())) + deletedObjects.add(creature); + } + + cursor.close(); + + Transaction txn = creatureODB.getEnvironment().beginTransaction(null, null); + for(CreatureObject creature : deletedObjects) { + creatureODB.delete(creature.getObjectID(), Long.class, CreatureObject.class, txn); + } + txn.commitSync(); + System.out.println("Deleted " + deletedObjects.size() + " creatures."); + } + public void stop() { System.out.println("Stopping Servers and Connections."); databaseConnection.close(); diff --git a/src/protocol/swg/ChatCreateRoom.java b/src/protocol/swg/ChatCreateRoom.java new file mode 100644 index 00000000..5f63614a --- /dev/null +++ b/src/protocol/swg/ChatCreateRoom.java @@ -0,0 +1,38 @@ +/******************************************************************************* + * Copyright (c) 2013 + * + * This File is part of NGECore2. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + * + * Using NGEngine to work with NGECore2 is making a combined work based on NGEngine. + * Therefore all terms and conditions of the GNU Lesser General Public License cover the combination. + ******************************************************************************/ +package protocol.swg; + +import org.apache.mina.core.buffer.IoBuffer; + +public class ChatCreateRoom extends SWGMessage { + + @Override + public void deserialize(IoBuffer data) { + + } + + @Override + public IoBuffer serialize() { + return null; + } + +} diff --git a/src/protocol/swg/ChatEnterRoomById.java b/src/protocol/swg/ChatEnterRoomById.java new file mode 100644 index 00000000..29fd69cd --- /dev/null +++ b/src/protocol/swg/ChatEnterRoomById.java @@ -0,0 +1,50 @@ +/******************************************************************************* + * Copyright (c) 2013 + * + * This File is part of NGECore2. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + * + * Using NGEngine to work with NGECore2 is making a combined work based on NGEngine. + * Therefore all terms and conditions of the GNU Lesser General Public License cover the combination. + ******************************************************************************/ +package protocol.swg; + +import org.apache.mina.core.buffer.IoBuffer; + +public class ChatEnterRoomById extends SWGMessage { + + private int roomId; + + public ChatEnterRoomById() { } + + @Override + public void deserialize(IoBuffer data) { + setRoomId(data.getInt()); + } + + @Override + public IoBuffer serialize() { + return null; + } + + public int getRoomId() { + return roomId; + } + + public void setRoomId(int roomId) { + this.roomId = roomId; + } + +} diff --git a/src/protocol/swg/ChatOnSendRoomMessage.java b/src/protocol/swg/ChatOnSendRoomMessage.java index 4ab43d6c..0d7729e5 100644 --- a/src/protocol/swg/ChatOnSendRoomMessage.java +++ b/src/protocol/swg/ChatOnSendRoomMessage.java @@ -28,9 +28,11 @@ import org.apache.mina.core.buffer.IoBuffer; public class ChatOnSendRoomMessage extends SWGMessage { private int errorCode; + private int msgId; - public ChatOnSendRoomMessage(int errorCode) { + public ChatOnSendRoomMessage(int errorCode, int msgId) { this.errorCode = errorCode; + this.msgId = msgId; } @Override @@ -43,7 +45,7 @@ public class ChatOnSendRoomMessage extends SWGMessage { buffer.putShort((short) 3); buffer.putInt(0xE7B61633); buffer.putInt(errorCode); - buffer.putInt(1); // msg id + buffer.putInt(msgId); // msg id return buffer.flip(); } diff --git a/src/protocol/swg/ChatSendToRoom.java b/src/protocol/swg/ChatSendToRoom.java new file mode 100644 index 00000000..c3a07dac --- /dev/null +++ b/src/protocol/swg/ChatSendToRoom.java @@ -0,0 +1,71 @@ +/******************************************************************************* + * Copyright (c) 2013 + * + * This File is part of NGECore2. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + * + * Using NGEngine to work with NGECore2 is making a combined work based on NGEngine. + * Therefore all terms and conditions of the GNU Lesser General Public License cover the combination. + ******************************************************************************/ +package protocol.swg; + +import org.apache.mina.core.buffer.IoBuffer; + +public class ChatSendToRoom extends SWGMessage { + + private String message; + private int roomId; + private int msgId; + + public ChatSendToRoom() { } + + @Override + public void deserialize(IoBuffer data) { + setMessage(getUnicodeString(data)); + data.getInt(); + setRoomId(data.getInt()); + setMsgId(data.getInt()); + } + + @Override + public IoBuffer serialize() { + return null; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public int getRoomId() { + return roomId; + } + + public void setRoomId(int roomId) { + this.roomId = roomId; + } + + public int getMsgId() { + return msgId; + } + + public void setMsgId(int msgId) { + this.msgId = msgId; + } + +} diff --git a/src/protocol/swg/ObjControllerMessage.java b/src/protocol/swg/ObjControllerMessage.java index d6edf15c..a8b3d10a 100644 --- a/src/protocol/swg/ObjControllerMessage.java +++ b/src/protocol/swg/ObjControllerMessage.java @@ -63,6 +63,10 @@ public class ObjControllerMessage extends SWGMessage { public static final int IMAGE_DESIGN_START = 0x023A; public static final int IMAGE_DESIGN_CHANGE = 0x0238; public static final int IMAGE_DESIGN_END = 0x0239; + public static final int START_CONVERSATION = 0x00DD; + public static final int STOP_CONVERSATION = 0x00DE; + public static final int CONVERSATION_MESSAGE = 0x00DF; + public static final int CONVERSATION_OPTIONS = 0x00E0; public ObjControllerMessage() { diff --git a/src/protocol/swg/objectControllerObjects/NpcConversationMessage.java b/src/protocol/swg/objectControllerObjects/NpcConversationMessage.java new file mode 100644 index 00000000..93a05982 --- /dev/null +++ b/src/protocol/swg/objectControllerObjects/NpcConversationMessage.java @@ -0,0 +1,60 @@ +/******************************************************************************* + * Copyright (c) 2013 + * + * This File is part of NGECore2. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + * + * Using NGEngine to work with NGECore2 is making a combined work based on NGEngine. + * Therefore all terms and conditions of the GNU Lesser General Public License cover the combination. + ******************************************************************************/ +package protocol.swg.objectControllerObjects; + +import java.nio.ByteOrder; + +import org.apache.mina.core.buffer.IoBuffer; + +import protocol.swg.ObjControllerMessage; +import resources.common.ObjControllerOpcodes; +import resources.common.OutOfBand; + +public class NpcConversationMessage extends ObjControllerObject { + + private long objectId; + private OutOfBand outOfBand; + + public NpcConversationMessage(long objectId, OutOfBand outOfBand) { + this.objectId = objectId; + this.outOfBand = outOfBand; + } + + @Override + public void deserialize(IoBuffer data) { + + } + + @Override + public IoBuffer serialize() { + IoBuffer outOfBandBuffer = outOfBand.serialize(); + IoBuffer buffer = IoBuffer.allocate(16 + outOfBandBuffer.array().length).order(ByteOrder.LITTLE_ENDIAN); + + buffer.putInt(ObjControllerMessage.CONVERSATION_MESSAGE); + buffer.putLong(objectId); + buffer.putInt(0); + buffer.put(outOfBandBuffer.array()); + System.out.println(buffer.getInt(16)); + return buffer.flip(); + } + +} diff --git a/src/protocol/swg/objectControllerObjects/NpcConversationOptions.java b/src/protocol/swg/objectControllerObjects/NpcConversationOptions.java new file mode 100644 index 00000000..b85e42e2 --- /dev/null +++ b/src/protocol/swg/objectControllerObjects/NpcConversationOptions.java @@ -0,0 +1,70 @@ +/******************************************************************************* + * Copyright (c) 2013 + * + * This File is part of NGECore2. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + * + * Using NGEngine to work with NGECore2 is making a combined work based on NGEngine. + * Therefore all terms and conditions of the GNU Lesser General Public License cover the combination. + ******************************************************************************/ +package protocol.swg.objectControllerObjects; + +import java.nio.ByteOrder; +import java.util.Vector; + +import org.apache.mina.core.buffer.IoBuffer; + +import protocol.swg.ObjControllerMessage; +import resources.common.ConversationOption; +import resources.common.ObjControllerOpcodes; + +public class NpcConversationOptions extends ObjControllerObject { + + private long npcId; + private long objectId; + private Vector conversationOptions = new Vector(); + + public NpcConversationOptions(long objectId, long npcId) { + this.objectId = objectId; + this.npcId = npcId; + } + + @Override + public void deserialize(IoBuffer data) { + } + + public void addOption(ConversationOption option) { + conversationOptions.add(option); + } + + @Override + public IoBuffer serialize() { + IoBuffer buffer = IoBuffer.allocate(17).order(ByteOrder.LITTLE_ENDIAN); + buffer.setAutoExpand(true); + buffer.putInt(ObjControllerMessage.CONVERSATION_OPTIONS); + buffer.putLong(objectId); + + buffer.putInt(0); + buffer.put((byte) conversationOptions.size()); + + for(ConversationOption option : conversationOptions) { + buffer.put(option.getOutOfBand().serialize()); + } + int size = buffer.position(); + buffer.flip(); + return IoBuffer.allocate(size).order(ByteOrder.LITTLE_ENDIAN).put(buffer.array(), 0, size).flip(); + } + +} diff --git a/src/protocol/swg/objectControllerObjects/ObjectMenuResponse.java b/src/protocol/swg/objectControllerObjects/ObjectMenuResponse.java index 0fc7e6d3..f75b5ee2 100644 --- a/src/protocol/swg/objectControllerObjects/ObjectMenuResponse.java +++ b/src/protocol/swg/objectControllerObjects/ObjectMenuResponse.java @@ -77,7 +77,8 @@ public class ObjectMenuResponse extends ObjControllerObject { result.put(++counter); result.put(radialOption.getParentId()); result.putShort(radialOption.getOptionId()); - result.put(radialOption.getOptionType()); //result.put((byte) 3); + //result.put(radialOption.getOptionType()); + result.put((byte) 3); result.put(getUnicodeString(radialOption.getDescription())); } result.put(radialCount); diff --git a/src/protocol/swg/objectControllerObjects/SecureTrade.java b/src/protocol/swg/objectControllerObjects/SecureTrade.java index bd61aad4..3f48253c 100644 --- a/src/protocol/swg/objectControllerObjects/SecureTrade.java +++ b/src/protocol/swg/objectControllerObjects/SecureTrade.java @@ -1,3 +1,24 @@ +/******************************************************************************* + * Copyright (c) 2013 + * + * This File is part of NGECore2. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + * + * Using NGEngine to work with NGECore2 is making a combined work based on NGEngine. + * Therefore all terms and conditions of the GNU Lesser General Public License cover the combination. + ******************************************************************************/ package protocol.swg.objectControllerObjects; import java.nio.ByteOrder; diff --git a/src/protocol/swg/objectControllerObjects/SetProfessionTemplate.java b/src/protocol/swg/objectControllerObjects/SetProfessionTemplate.java new file mode 100644 index 00000000..775a8322 --- /dev/null +++ b/src/protocol/swg/objectControllerObjects/SetProfessionTemplate.java @@ -0,0 +1,62 @@ +/******************************************************************************* + * Copyright (c) 2013 + * + * This File is part of NGECore2. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + * + * Using NGEngine to work with NGECore2 is making a combined work based on NGEngine. + * Therefore all terms and conditions of the GNU Lesser General Public License cover the combination. + ******************************************************************************/ +package protocol.swg.objectControllerObjects; + +import java.io.UnsupportedEncodingException; +import java.nio.ByteBuffer; + +import org.apache.mina.core.buffer.IoBuffer; + +import engine.resources.common.Utilities; + +public class SetProfessionTemplate extends ObjControllerObject { + + private String profession; + + @Override + public void deserialize(IoBuffer data) { + data.getLong(); + data.getInt(); + short size = data.getShort(); + try { + profession = new String(ByteBuffer.allocate(size).put(data.array(), data.position(), size).array(), "US-ASCII"); + } catch (UnsupportedEncodingException e) { + e.printStackTrace(); + } + data.position(data.position() + size); + } + + @Override + public IoBuffer serialize() { + // TODO Auto-generated method stub + return null; + } + + public String getProfession() { + return profession; + } + + public void setProfession(String profession) { + this.profession = profession; + } + +} diff --git a/src/protocol/swg/objectControllerObjects/StartNpcConversation.java b/src/protocol/swg/objectControllerObjects/StartNpcConversation.java new file mode 100644 index 00000000..d4056d90 --- /dev/null +++ b/src/protocol/swg/objectControllerObjects/StartNpcConversation.java @@ -0,0 +1,63 @@ +/******************************************************************************* + * Copyright (c) 2013 + * + * This File is part of NGECore2. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + * + * Using NGEngine to work with NGECore2 is making a combined work based on NGEngine. + * Therefore all terms and conditions of the GNU Lesser General Public License cover the combination. + ******************************************************************************/ +package protocol.swg.objectControllerObjects; + +import java.nio.ByteOrder; + +import org.apache.mina.core.buffer.IoBuffer; + +import protocol.swg.ObjControllerMessage; +import resources.common.ObjControllerOpcodes; + +public class StartNpcConversation extends ObjControllerObject { + + private long npcId; + private long objectId; + + public StartNpcConversation(long objectId, long npcId) { + this.objectId = objectId; + this.npcId = npcId; + } + + @Override + public void deserialize(IoBuffer data) { + // TODO Auto-generated method stub + + } + + @Override + public IoBuffer serialize() { + IoBuffer buffer = IoBuffer.allocate(31).order(ByteOrder.LITTLE_ENDIAN); + + buffer.putInt(ObjControllerMessage.START_CONVERSATION); + buffer.putLong(objectId); + + buffer.putInt(0); + buffer.putLong(npcId); + buffer.putInt(0); + buffer.putShort((short) 0); + buffer.put((byte) 0); + + return buffer.flip(); + } + +} diff --git a/src/protocol/swg/objectControllerObjects/StopNpcConversation.java b/src/protocol/swg/objectControllerObjects/StopNpcConversation.java new file mode 100644 index 00000000..469b1725 --- /dev/null +++ b/src/protocol/swg/objectControllerObjects/StopNpcConversation.java @@ -0,0 +1,67 @@ +/******************************************************************************* + * Copyright (c) 2013 + * + * This File is part of NGECore2. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + * + * Using NGEngine to work with NGECore2 is making a combined work based on NGEngine. + * Therefore all terms and conditions of the GNU Lesser General Public License cover the combination. + ******************************************************************************/ +package protocol.swg.objectControllerObjects; + +import java.nio.ByteOrder; + +import org.apache.mina.core.buffer.IoBuffer; + +import protocol.swg.ObjControllerMessage; +import resources.common.ObjControllerOpcodes; + +public class StopNpcConversation extends ObjControllerObject { + + private long npcId; + private long objectId; + private String stfFile; + private String stfLabel; + + public StopNpcConversation(long objectId, long npcId, String stfFile, String stfLabel) { + this.objectId = objectId; + this.npcId = npcId; + this.stfFile = stfFile; + this.stfLabel = stfLabel; + } + + @Override + public void deserialize(IoBuffer data) { + // TODO Auto-generated method stub + + } + + @Override + public IoBuffer serialize() { + IoBuffer buffer = IoBuffer.allocate(40 + stfFile.length() + stfLabel.length()).order(ByteOrder.LITTLE_ENDIAN); + + buffer.putInt(ObjControllerMessage.STOP_CONVERSATION); + buffer.putLong(objectId); + + buffer.putInt(0); + buffer.putLong(npcId); + buffer.put(getAsciiString(stfFile)); + buffer.putInt(0); + buffer.put(getAsciiString(stfLabel)); + buffer.putLong(0); + + return buffer.flip(); + } +} diff --git a/src/resources/common/ConversationOption.java b/src/resources/common/ConversationOption.java new file mode 100644 index 00000000..840fdcba --- /dev/null +++ b/src/resources/common/ConversationOption.java @@ -0,0 +1,50 @@ +/******************************************************************************* + * Copyright (c) 2013 + * + * This File is part of NGECore2. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + * + * Using NGEngine to work with NGECore2 is making a combined work based on NGEngine. + * Therefore all terms and conditions of the GNU Lesser General Public License cover the combination. + ******************************************************************************/ +package resources.common; + +public class ConversationOption { + + private OutOfBand outOfBand; + private int index; + + public ConversationOption(OutOfBand outOfBand, int index) { + this.setOutOfBand(outOfBand); + this.setIndex(index); + } + + public OutOfBand getOutOfBand() { + return outOfBand; + } + + public void setOutOfBand(OutOfBand outOfBand) { + this.outOfBand = outOfBand; + } + + public int getIndex() { + return index; + } + + public void setIndex(int index) { + this.index = index; + } + +} diff --git a/src/resources/common/Cooldown.java b/src/resources/common/Cooldown.java new file mode 100644 index 00000000..edaf7e94 --- /dev/null +++ b/src/resources/common/Cooldown.java @@ -0,0 +1,62 @@ +/******************************************************************************* + * Copyright (c) 2013 + * + * This File is part of NGECore2. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + * + * Using NGEngine to work with NGECore2 is making a combined work based on NGEngine. + * Therefore all terms and conditions of the GNU Lesser General Public License cover the combination. + ******************************************************************************/ +package resources.common; + +import java.util.concurrent.Executors; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.TimeUnit; + +public class Cooldown { + private long startTimestamp; + private long endTimestamp; + + private ScheduledFuture removalTask; + + public Cooldown(long end) { + startTimestamp = System.currentTimeMillis(); + endTimestamp = startTimestamp + end; + } + + public long getStartTimestamp() { + return startTimestamp; + } + + public void setStartTimestamp(long startTimestamp) { + this.startTimestamp = startTimestamp; + } + + public long getEndTimestamp() { + return endTimestamp; + } + + public void setEndTimestamp(long endTimestamp) { + this.endTimestamp = endTimestamp; + } + + public ScheduledFuture getRemovalTask() { + return removalTask; + } + + public void setRemovalTask(ScheduledFuture removalTask) { + this.removalTask = removalTask; + } +} diff --git a/src/resources/common/ObjControllerOpcodes.java b/src/resources/common/ObjControllerOpcodes.java index bf4edcb7..c2d117bd 100644 --- a/src/resources/common/ObjControllerOpcodes.java +++ b/src/resources/common/ObjControllerOpcodes.java @@ -37,4 +37,10 @@ public class ObjControllerOpcodes { public static final int ChangeRoleIconChoice = 0x4D040000; public static final int IMAGE_DESIGN_CHANGE = 0x38020000; public static final int IMAGE_DESIGN_END = 0x39020000; + public static final int NPC_CONVERSATION_MESSAGE = 0xDF000000; + public static final int START_NPC_CONVERSATION = 0xDD000000; + public static final int STOP_NPC_CONVERSATION = 0xDE000000; + public static final int NPC_CONVERSATION_OPTIONS = 0xE0000000; + public static final int SET_PROFESSION_TEMPLATE = 0x5C040000; + } diff --git a/src/resources/common/Opcodes.java b/src/resources/common/Opcodes.java index 9f906000..4ac4d5ad 100644 --- a/src/resources/common/Opcodes.java +++ b/src/resources/common/Opcodes.java @@ -25,6 +25,8 @@ import engine.resources.common.CRC; public class Opcodes { + public static int ChatEnterRoomById = CRC.StringtoCRC("ChatEnterRoomById"); + public static int ChatSendToRoom = CRC.StringtoCRC("ChatSendToRoom"); public static int ChatDeletePersistentMessage = 0x8F251641; public static int ChatInstantMessageToCharacter = 0x84BB21F7; public static int ChatPersistentMessageToServer = 0x25A29FA6; diff --git a/src/resources/common/OutOfBand.java b/src/resources/common/OutOfBand.java new file mode 100644 index 00000000..63505020 --- /dev/null +++ b/src/resources/common/OutOfBand.java @@ -0,0 +1,119 @@ +/******************************************************************************* + * Copyright (c) 2013 + * + * This File is part of NGECore2. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + * + * Using NGEngine to work with NGECore2 is making a combined work based on NGEngine. + * Therefore all terms and conditions of the GNU Lesser General Public License cover the combination. + ******************************************************************************/ +package resources.common; + +import java.nio.ByteOrder; +import java.util.Vector; +import resources.common.StringUtilities; +import org.apache.mina.core.buffer.IoBuffer; + +public class OutOfBand { + + private short count; + private Vector prosePackages = new Vector(); + + public void addProsePackage(ProsePackage prosePackage) { + prosePackages.add(prosePackage); + setCount((short) (getCount() + 1)); + } + + public IoBuffer serialize() { + + IoBuffer buffer = IoBuffer.allocate(50).order(ByteOrder.LITTLE_ENDIAN); + buffer.setAutoExpand(true); + + buffer.putInt(4); + buffer.putShort((short) 0); // unk + buffer.putShort(getCount()); + + for(ProsePackage prosePackage : prosePackages) { + + buffer.put((byte) 1); + buffer.putInt(-1); + buffer.put(StringUtilities.getAsciiString(prosePackage.getStfFile())); + buffer.putInt(0); + buffer.put(StringUtilities.getAsciiString(prosePackage.getStfLabel())); + + buffer.putLong(prosePackage.getTuObjectId()); + buffer.put(StringUtilities.getAsciiString(prosePackage.getTuStfFile())); + buffer.putInt(0); + buffer.put(StringUtilities.getAsciiString(prosePackage.getTuStfLabel())); + buffer.put(StringUtilities.getUnicodeString(prosePackage.getTuCustomString())); + + buffer.putLong(prosePackage.getTtObjectId()); + buffer.put(StringUtilities.getAsciiString(prosePackage.getTtStfFile())); + buffer.putInt(0); + buffer.put(StringUtilities.getAsciiString(prosePackage.getTtStfLabel())); + buffer.put(StringUtilities.getUnicodeString(prosePackage.getTtCustomString())); + + buffer.putLong(prosePackage.getToObjectId()); + buffer.put(StringUtilities.getAsciiString(prosePackage.getToStfFile())); + buffer.putInt(0); + buffer.put(StringUtilities.getAsciiString(prosePackage.getToStfLabel())); + buffer.put(StringUtilities.getUnicodeString(prosePackage.getToCustomString())); + + buffer.putInt(prosePackage.getDiInteger()); + buffer.putFloat(prosePackage.getDfFloat()); + + //buffer.put(prosePackage.getDisplayFlag()); + buffer.put((byte) 0); + + int stfLength = prosePackage.getStfFile().length() + prosePackage.getStfLabel().length() + + prosePackage.getTuStfFile().length() + prosePackage.getTuStfLabel().length() + + prosePackage.getTtStfFile().length() + prosePackage.getTtStfLabel().length() + + prosePackage.getToStfFile().length() + prosePackage.getToStfLabel().length(); + + //if(stfLength % 2 == 1) { + buffer.put((byte) 0); + //} + + } + + setLength(buffer); + int size = buffer.position(); + buffer.flip(); + return IoBuffer.allocate(size).order(ByteOrder.LITTLE_ENDIAN).put(buffer.array(), 0, size).flip(); + } + + public void setLength(IoBuffer buffer) { + buffer.putInt(0, (buffer.position() - 4) / 2); + } + + public short getCount() { + return count; + } + + public void setCount(short count) { + this.count = count; + } + + public Vector getProsePackages() { + return prosePackages; + } + + public void setProsePackages(Vector prosePackages) { + this.prosePackages = prosePackages; + } + + + +} diff --git a/src/resources/common/ProsePackage.java b/src/resources/common/ProsePackage.java new file mode 100644 index 00000000..4a1ef88c --- /dev/null +++ b/src/resources/common/ProsePackage.java @@ -0,0 +1,208 @@ +/******************************************************************************* + * Copyright (c) 2013 + * + * This File is part of NGECore2. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + * + * Using NGEngine to work with NGECore2 is making a combined work based on NGEngine. + * Therefore all terms and conditions of the GNU Lesser General Public License cover the combination. + ******************************************************************************/ +package resources.common; + +public class ProsePackage { + + /* + * TU = Text You + * TT = Text Target + * TO = Text Object + * DI/DF = Decimal Value + */ + + private byte displayFlag = 1; + + private String stfFile = ""; + private String stfLabel = ""; + + private long tuObjectId; + private String tuStfFile = ""; + private String tuStfLabel = ""; + private String tuCustomString = ""; + + private long ttObjectId; + private String ttStfFile = ""; + private String ttStfLabel = ""; + private String ttCustomString = ""; + + private long toObjectId; + private String toStfFile = ""; + private String toStfLabel = ""; + private String toCustomString = ""; + + private int diInteger; + private float dfFloat; + + // TODO: Add more constructors + + public ProsePackage(String stfFile, String stfLabel) { + this.stfFile = stfFile; + this.stfLabel = stfLabel; + } + + public ProsePackage(String stfFile, String stfLabel, long tuObjectId, String tuStfFile, String tuStfLabel, String tuCustomString) { + this.stfFile = stfFile; + this.stfLabel = stfLabel; + this.tuObjectId = tuObjectId; + this.tuStfFile = tuStfFile; + this.tuStfLabel = tuStfLabel; + this.tuCustomString = tuCustomString; + } + + public byte getDisplayFlag() { + return displayFlag; + } + + public void setDisplayFlag(byte displayFlag) { + this.displayFlag = displayFlag; + } + + public String getStfFile() { + return stfFile; + } + + public void setStfFile(String stfFile) { + this.stfFile = stfFile; + } + + public String getStfLabel() { + return stfLabel; + } + + public void setStfLabel(String stfLabel) { + this.stfLabel = stfLabel; + } + + public long getTuObjectId() { + return tuObjectId; + } + + public void setTuObjectId(long tuObjectId) { + this.tuObjectId = tuObjectId; + } + + public String getTuStfFile() { + return tuStfFile; + } + + public void setTuStfFile(String tuStfFile) { + this.tuStfFile = tuStfFile; + } + + public String getTuStfLabel() { + return tuStfLabel; + } + + public void setTuStfLabel(String tuStfLabel) { + this.tuStfLabel = tuStfLabel; + } + + public String getTuCustomString() { + return tuCustomString; + } + + public void setTuCustomString(String tuCustomString) { + this.tuCustomString = tuCustomString; + } + + public long getTtObjectId() { + return ttObjectId; + } + + public void setTtObjectId(long ttObjectId) { + this.ttObjectId = ttObjectId; + } + + public String getTtStfFile() { + return ttStfFile; + } + + public void setTtStfFile(String ttStfFile) { + this.ttStfFile = ttStfFile; + } + + public String getTtStfLabel() { + return ttStfLabel; + } + + public void setTtStfLabel(String ttStfLabel) { + this.ttStfLabel = ttStfLabel; + } + + public String getTtCustomString() { + return ttCustomString; + } + + public void setTtCustomString(String ttCustomString) { + this.ttCustomString = ttCustomString; + } + + public long getToObjectId() { + return toObjectId; + } + + public void setToObjectId(long toObjectId) { + this.toObjectId = toObjectId; + } + + public String getToStfFile() { + return toStfFile; + } + + public void setToStfFile(String toStfFile) { + this.toStfFile = toStfFile; + } + + public String getToStfLabel() { + return toStfLabel; + } + + public void setToStfLabel(String toStfLabel) { + this.toStfLabel = toStfLabel; + } + + public String getToCustomString() { + return toCustomString; + } + + public void setToCustomString(String toCustomString) { + this.toCustomString = toCustomString; + } + + public int getDiInteger() { + return diInteger; + } + + public void setDiInteger(int diInteger) { + this.diInteger = diInteger; + } + + public float getDfFloat() { + return dfFloat; + } + + public void setDfFloat(float dfFloat) { + this.dfFloat = dfFloat; + } + +} diff --git a/src/resources/objects/BuffItem.java b/src/resources/objects/BuffItem.java index 050c21e9..b87ce0af 100644 --- a/src/resources/objects/BuffItem.java +++ b/src/resources/objects/BuffItem.java @@ -21,6 +21,9 @@ ******************************************************************************/ package resources.objects; +import com.sleepycat.persist.model.Persistent; + +@Persistent public class BuffItem { private int affectAmount; private int entertainerBonus; diff --git a/src/resources/objects/SWGMap.java b/src/resources/objects/SWGMap.java index 0227a725..48638350 100644 --- a/src/resources/objects/SWGMap.java +++ b/src/resources/objects/SWGMap.java @@ -119,13 +119,17 @@ public class SWGMap implements Map { if (map.containsKey(key)) { V oldValue = map.put(key, value); - queue(item(2, (String) key, ((IDelta) value).getBytes(), true, true)); + if (oldValue != null) { + queue(item(2, (String) key, ((IDelta) value).getBytes(), true, true)); + } return oldValue; } else { V oldValue = map.put(key, value); - queue(item(0, (String) key, ((IDelta) value).getBytes(), true, true)); + if (oldValue != null) { + queue(item(0, (String) key, ((IDelta) value).getBytes(), true, true)); + } return oldValue; } @@ -170,7 +174,9 @@ public class SWGMap implements Map { key instanceof Integer || key instanceof Float || key instanceof Long) { V value = map.remove(key); - queue(item(1, key, ((IDelta) map.get(key)).getBytes(), true, true)); + if (value != null) { + queue(item(1, (String) key, ((IDelta) value).getBytes(), true, true)); + } return value; } @@ -230,6 +236,7 @@ public class SWGMap implements Map { } } if (useData) buffer.put(data); + buffer.flip(); updateCounter++; @@ -241,6 +248,7 @@ public class SWGMap implements Map { buffer.putInt(1); buffer.putInt(updateCounter); buffer.put(data); + buffer.flip(); messageBuilder.sendListDelta(viewType, updateType, buffer); } @@ -255,6 +263,7 @@ public class SWGMap implements Map { buffer.putInt(data.size()); buffer.putInt(updateCounter); for (byte[] queued : data) buffer.put(queued); + buffer.flip(); messageBuilder.sendListDelta(viewType, updateType, buffer); } diff --git a/src/resources/objects/SkillMod.java b/src/resources/objects/SkillMod.java index d155b882..a9550ce4 100644 --- a/src/resources/objects/SkillMod.java +++ b/src/resources/objects/SkillMod.java @@ -67,12 +67,9 @@ public class SkillMod extends Delta { @Override public byte[] getBytes() { - IoBuffer buffer = createBuffer(name.length() + 10); - - buffer.put(getAsciiString(name)); + IoBuffer buffer = createBuffer(8); buffer.putInt(base); buffer.putInt((int) modifier); - return buffer.array(); } diff --git a/src/resources/objects/creature/CreatureMessageBuilder.java b/src/resources/objects/creature/CreatureMessageBuilder.java index 5ebafb62..1893b318 100644 --- a/src/resources/objects/creature/CreatureMessageBuilder.java +++ b/src/resources/objects/creature/CreatureMessageBuilder.java @@ -24,11 +24,13 @@ package resources.objects.creature; import java.nio.ByteOrder; + import org.apache.mina.core.buffer.IoBuffer; import com.sleepycat.persist.model.Persistent; import engine.resources.common.CRC; +import resources.common.StringUtilities; import resources.objects.Buff; import resources.objects.ObjectMessageBuilder; import resources.objects.SkillMod; @@ -71,7 +73,7 @@ public class CreatureMessageBuilder extends ObjectMessageBuilder { } else { buffer.putInt(creature.getSkills().size()); buffer.putInt(creature.getSkillsUpdateCounter()); - for(String skill : creature.getSkills().get()) + for(String skill : creature.getSkills()) buffer.put(getAsciiString(skill)); } int size = buffer.position(); @@ -157,20 +159,14 @@ public class CreatureMessageBuilder extends ObjectMessageBuilder { buffer.putInt(0); // HAM Encumberance List unused in NGE buffer.putInt(0); - if(creature.getSkillMods().isEmpty()) { - buffer.putInt(0); - buffer.putInt(0); - } else { - buffer.putInt(creature.getSkillMods().size()); - buffer.putInt(creature.getSkillMods().getUpdateCounter()); - - for(SkillMod skillMod : creature.getSkillMods()) { - buffer.put((byte) 0); - buffer.put(getAsciiString(skillMod.getName())); - buffer.putInt(skillMod.getBase()); - buffer.putInt((int) skillMod.getModifier()); - } + buffer.putInt(creature.getSkillMods().size()); + buffer.putInt(creature.getSkillMods().getUpdateCounter()); + for (SkillMod skillMod : creature.getSkillMods().values()) { + buffer.put((byte) 0); + buffer.put(getAsciiString(skillMod.getName())); + buffer.put(skillMod.getBytes()); } + buffer.putFloat(creature.getSpeedMultiplierBase()); buffer.putFloat(creature.getSpeedMultiplierMod()); @@ -369,7 +365,7 @@ public class CreatureMessageBuilder extends ObjectMessageBuilder { buff.setTotalPlayTime(0); buffer.put((byte) 1); buffer.putInt(0); - buffer.putInt(CRC.StringtoCRC(buff.getBuffName())); + buffer.putInt(CRC.StringtoCRC(buff.getBuffName().toLowerCase())); if(buff.getDuration() > 0) { buffer.putInt((int) (buff.getTotalPlayTime() + buff.getRemainingDuration())); buffer.putInt(0); @@ -850,46 +846,6 @@ public class CreatureMessageBuilder extends ObjectMessageBuilder { } - public IoBuffer buildAddSkillModDelta(String name, int base) { - - CreatureObject creature = (CreatureObject) object; - - IoBuffer buffer = bufferPool.allocate(19 + name.length(), false).order(ByteOrder.LITTLE_ENDIAN); - buffer.putInt(1); - buffer.putInt(creature.getSkillModsUpdateCounter()); - buffer.put((byte) 0); - buffer.put(getAsciiString(name)); - buffer.putInt(base); - buffer.putInt(0); - - int size = buffer.position(); - buffer.flip(); - buffer = createDelta("CREO", (byte) 4, (short) 1, (short) 3, buffer, size + 4); - - return buffer; - - } - - public IoBuffer buildRemoveSkillModDelta(String name, int base) { - - CreatureObject creature = (CreatureObject) object; - - IoBuffer buffer = bufferPool.allocate(19 + name.length(), false).order(ByteOrder.LITTLE_ENDIAN); - buffer.putInt(1); - buffer.putInt(creature.getSkillModsUpdateCounter()); - buffer.put((byte) 1); - buffer.put(getAsciiString(name)); - buffer.putInt(base); - buffer.putInt(0); - - int size = buffer.position(); - buffer.flip(); - buffer = createDelta("CREO", (byte) 4, (short) 1, (short) 3, buffer, size + 4); - - return buffer; - - } - public IoBuffer buildAddSkillDelta(String name) { CreatureObject creature = (CreatureObject) object; @@ -1218,26 +1174,25 @@ public class CreatureMessageBuilder extends ObjectMessageBuilder { public void sendListDelta(byte viewType, short updateType, IoBuffer buffer) { switch (viewType) { - case 1: - case 3: case 4: { - switch(updateType) { - case 3: { - buffer = createDelta("CREO", (byte) 4, (short) 1, (byte) 3, buffer.flip(), buffer.array().length + 4); + switch (updateType) { + case 3: { + buffer = createDelta("CREO", (byte) 4, (short) 1, (byte) 3, buffer, buffer.array().length + 4); if (object.getClient() != null && object.getClient().getSession() != null) { - //object.getClient().getSession().write(buffer); + object.getClient().getSession().write(buffer); } + break; } - } } + case 1: + case 3: case 6: case 8: case 9: - default: - { + default: { return; } } diff --git a/src/resources/objects/creature/CreatureObject.java b/src/resources/objects/creature/CreatureObject.java index de703925..c76f6309 100644 --- a/src/resources/objects/creature/CreatureObject.java +++ b/src/resources/objects/creature/CreatureObject.java @@ -25,7 +25,11 @@ import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.List; +import java.util.Vector; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.Executors; import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.TimeUnit; import org.apache.mina.core.buffer.IoBuffer; @@ -44,11 +48,12 @@ import com.sleepycat.persist.model.Entity; import com.sleepycat.persist.model.NotPersistent; import main.NGECore; - import engine.clients.Client; +import resources.common.Cooldown; import resources.objects.Buff; import resources.objects.DamageOverTime; import resources.objects.SWGList; +import resources.objects.SWGMap; import resources.objects.SkillMod; import engine.resources.objects.IPersistent; import engine.resources.objects.MissionCriticalObject; @@ -59,7 +64,7 @@ import engine.resources.scene.Quaternion; import resources.objects.tangible.TangibleObject; import resources.objects.weapon.WeaponObject; -@Entity(version=4) +@Entity(version=6) public class CreatureObject extends TangibleObject implements IPersistent { @NotPersistent @@ -68,7 +73,7 @@ public class CreatureObject extends TangibleObject implements IPersistent { // CREO 1 private int bankCredits = 0; private int cashCredits = 0; - private SWGList skills; + private List skills; @NotPersistent private int skillsUpdateCounter = 0; @@ -83,9 +88,7 @@ public class CreatureObject extends TangibleObject implements IPersistent { // CREO 4 private float accelerationMultiplierBase = 1; private float accelerationMultiplierMod = 1; - private SWGList skillMods; - @NotPersistent - private int skillModsUpdateCounter = 0; + private SWGMap skillMods; private float speedMultiplierBase = 1; private float speedMultiplierMod = 1; private float runSpeed = (float) 7.3; @@ -127,7 +130,7 @@ public class CreatureObject extends TangibleObject implements IPersistent { private CreatureObject performanceWatchee; private CreatureObject performanceListenee; @NotPersistent - private SWGList performanceAudience = new SWGList(); + private Vector performanceAudience = new Vector(); private int health = 1000; private int action = 300; @NotPersistent @@ -171,21 +174,22 @@ public class CreatureObject extends TangibleObject implements IPersistent { private boolean staticNPC = false; // temp @NotPersistent private int flourishCount = 0; - @NotPersistent private boolean performingEffect; - @NotPersistent private boolean performingFlourish; - private int coverCharge; + @NotPersistent + private TangibleObject conversingNpc; + @NotPersistent + private ConcurrentHashMap cooldowns = new ConcurrentHashMap(); public CreatureObject(long objectID, Planet planet, Point3D position, Quaternion orientation, String Template) { super(objectID, planet, Template, position, orientation); messageBuilder = new CreatureMessageBuilder(this); loadTemplateData(); - skills = new SWGList(messageBuilder, 1, 3); - skillMods = new SWGList(messageBuilder, 4, 3); + skills = new ArrayList(); + skillMods = new SWGMap(messageBuilder, 4, 3); abilities = new SWGList(messageBuilder, 4, 14); missionCriticalObjects = new SWGList(messageBuilder, 4, 13); equipmentList = new SWGList(messageBuilder, 6, 0x17); @@ -257,12 +261,12 @@ public class CreatureObject extends TangibleObject implements IPersistent { } } - public SWGList getSkills() { + public List getSkills() { return skills; } public boolean hasSkill(String name) { - synchronized(objectMutex) { + /*synchronized(objectMutex) { for (String skill : skills) { if (skill.equals(name)) { return true; @@ -270,7 +274,8 @@ public class CreatureObject extends TangibleObject implements IPersistent { } return false; - } + }*/ + return skills.contains(name); } public short getSkillsUpdateCounter() { @@ -431,8 +436,6 @@ public class CreatureObject extends TangibleObject implements IPersistent { else { next.sendSystemMessage("You stop listening to " + getCustomName() + ".",(byte)0); } next.getSpectatorTask().cancel(true); } - //not sure if this behaviour is correct. might need fixing later. - performanceAudience = new SWGList(); } } public ScheduledFuture getEntertainerExperience() { @@ -561,20 +564,13 @@ public class CreatureObject extends TangibleObject implements IPersistent { this.accelerationMultiplierMod = accelerationMultiplierMod; } } - - public SWGList getSkillMods() { + + public SWGMap getSkillMods() { return skillMods; } public SkillMod getSkillMod(String name) { - synchronized(skillMods.getMutex()) { - for(SkillMod skillMod : skillMods.get()) { - if(skillMod.getName().equals(name)) - return skillMod; - } - } - - return null; + return skillMods.get(name); } public int getSkillModBase(String name) { @@ -583,71 +579,41 @@ public class CreatureObject extends TangibleObject implements IPersistent { } public void addSkillMod(String name, int base) { + SkillMod mod; - if(name == "movement") setSpeedMultiplierMod(getSpeedMultiplierMod() + ((float)base / 10)); - - if(getSkillMod(name) == null) { - // TODO: Send skill mods delta in sendListDelta - SkillMod skillMod = new SkillMod(); - skillMod.setBase(base); - skillMod.setName(name); - skillMod.setModifier(0); - skillMods.add(skillMod); + if (getSkillMod(name) == null) { + mod = new SkillMod(); + mod.setBase(base); + mod.setName(name); + mod.setModifier(0); } else { - - SkillMod mod = getSkillMod(name); + mod = getSkillMod(name); mod.setBase(mod.getBase() + base); - - if(getClient() != null) { - setSkillModsUpdateCounter((short) (getSkillModsUpdateCounter() + 1)); - getClient().getSession().write(messageBuilder.buildAddSkillModDelta(name, mod.getBase())); - } } + skillMods.put(name, mod); } public void deductSkillMod(String name, int base) { - - if(getSkillMod(name) == null) + if (getSkillMod(name) == null) { return; - - if(name == "movement") this.setSpeedMultiplierMod(getSpeedMultiplierMod() - ((float)base / 10)); + } SkillMod mod = getSkillMod(name); mod.setBase(mod.getBase() - base); - if(mod.getBase() <= 0) { + if (mod.getBase() <= 0) { removeSkillMod(mod); } else { - skillMods.set(skillMods.indexOf(mod), mod); - if(getClient() != null) { - setSkillModsUpdateCounter((short) (getSkillModsUpdateCounter() + 1)); - getClient().getSession().write(messageBuilder.buildAddSkillModDelta(name, mod.getBase())); - } - } - } - - public void removeSkillMod(SkillMod mod) { - skillMods.remove(mod); - - if(getClient() != null) { - setSkillModsUpdateCounter((short) (getSkillModsUpdateCounter() + 1)); - getClient().getSession().write(messageBuilder.buildRemoveSkillModDelta(mod.getName(), mod.getBase())); - } - } - - public short getSkillModsUpdateCounter() { - synchronized(objectMutex) { - return (short) skillModsUpdateCounter; + skillMods.put(name, mod); } } - public void setSkillModsUpdateCounter(short skillModsUpdateCounter) { - synchronized(objectMutex) { - this.skillModsUpdateCounter = skillModsUpdateCounter; + public void removeSkillMod(SkillMod mod) { + if (mod != null) { + skillMods.remove(mod.getName()); } } - public float getSpeedMultiplierBase() { synchronized(objectMutex) { @@ -1225,9 +1191,9 @@ public class CreatureObject extends TangibleObject implements IPersistent { setHamListCounter(getHamListCounter() + 1); delta = messageBuilder.buildHealthDelta(health); - notifyObservers(delta, true); this.health = health; } + notifyObservers(delta, true); } @@ -1249,9 +1215,10 @@ public class CreatureObject extends TangibleObject implements IPersistent { } setHamListCounter(getHamListCounter() + 1); delta = messageBuilder.buildActionDelta(action); - notifyObservers(delta, true); this.action = action; - } + } + notifyObservers(delta, true); + } public int getHamListCounter() { @@ -1511,23 +1478,20 @@ public class CreatureObject extends TangibleObject implements IPersistent { } } - public void addAudience(CreatureObject audienceMember) { + public void addSpectator(CreatureObject audienceMember) { synchronized(objectMutex) { - if (performanceAudience == null) { - performanceAudience = new SWGList(); - } performanceAudience.add(audienceMember); } } - public void removeAudience(CreatureObject audienceMember) { + public void removeSpectator(CreatureObject audienceMember) { synchronized(objectMutex) { if (performanceAudience == null) { return; } if (audienceMember.getInspirationTick() != null) audienceMember.getInspirationTick().cancel(true); if(performanceAudience.contains(audienceMember)) - performanceAudience.remove(audienceMember); // SWGList error + performanceAudience.remove(audienceMember); } } @@ -1751,4 +1715,56 @@ public class CreatureObject extends TangibleObject implements IPersistent { this.stationary = stationary; } } + + public TangibleObject getConversingNpc() { + synchronized(objectMutex) { + return conversingNpc; + } + } + + public void setConversingNpc(TangibleObject conversingNpc) { + synchronized(objectMutex) { + this.conversingNpc = conversingNpc; + } + } + + public void addCooldown(String ability, long duration) { + if (cooldowns.containsKey(ability)) + cooldowns.remove(ability); + + Cooldown cd = new Cooldown(duration); + cd.setRemovalTask(Executors.newScheduledThreadPool(1).schedule(new Runnable() { + + @Override + public void run() { + removeCooldown(ability); + } + + }, duration, TimeUnit.MILLISECONDS)); + cooldowns.put(ability, cd); + } + + public boolean hasCooldown(String ability) { + if (cooldowns.containsKey(ability)) + return true; + else + return false; + } + + public boolean removeCooldown(String ability) { + if (cooldowns.containsKey(ability)) { + cooldowns.remove(ability); + return true; + } else { + return false; + } + } + + public Cooldown getCooldown(String ability) { + if (cooldowns.containsKey(ability)) { + return cooldowns.get(ability); + } else { + return null; + } + } } diff --git a/src/services/BuffService.java b/src/services/BuffService.java index cfab49c2..b3a0b655 100644 --- a/src/services/BuffService.java +++ b/src/services/BuffService.java @@ -100,27 +100,32 @@ public class BuffService implements INetworkDispatch { return null; } + if(target.hasBuff(buffName)) return null; + final Buff buff = new Buff(buffName, target.getObjectID()); if(target.getSlottedObject("ghost") != null) buff.setTotalPlayTime(((PlayerObject) target.getSlottedObject("ghost")).getTotalPlayTime()); else buff.setTotalPlayTime(0); - if(FileUtilities.doesFileExist("scripts/buffs/" + buffName + ".py")) - core.scriptService.callScript("scripts/buffs/", buffName, "setup", core, buffer, buff); + if(FileUtilities.doesFileExist("scripts/buffs/" + buffName + ".py")) core.scriptService.callScript("scripts/buffs/", buffName, "setup", core, buffer, buff); for (final Buff otherBuff : target.getBuffList()) { if (buff.getGroup1().equals(otherBuff.getGroup1())) if (buff.getPriority() >= otherBuff.getPriority()) { - if (buff.getBuffName().equals(otherBuff.getBuffName())) { + if (buff.getBuffName().equals(otherBuff.getBuffName())) + { - if(otherBuff.getStacks() < otherBuff.getMaxStacks()) { + if(otherBuff.getStacks() < otherBuff.getMaxStacks()) + { buff.setStacks(otherBuff.getStacks() + 1); if(target.getDotByBuff(otherBuff) != null) // reset duration when theres a dot stack target.getDotByBuff(otherBuff).setStartTime(buff.getStartTime()); - } else { + } + else + { buff.setStacks(buff.getMaxStacks()); } if (buff.getDuration() != -1.0) @@ -136,8 +141,15 @@ public class BuffService implements INetworkDispatch { } } - if(FileUtilities.doesFileExist("scripts/buffs/" + buffName + ".py")) - core.scriptService.callScript("scripts/buffs/", buffName, "add", core, target, buff); + if(FileUtilities.doesFileExist("scripts/buffs/" + buffName + ".py")) core.scriptService.callScript("scripts/buffs/", buffName, "add", core, target, buff); + else + { + if(buff.getEffect1Name().length() > 0) core.skillModService.addSkillMod(target, buff.getEffect1Name(), (int) buff.getEffect1Value()); + if(buff.getEffect2Name().length() > 0) core.skillModService.addSkillMod(target, buff.getEffect2Name(), (int) buff.getEffect2Value()); + if(buff.getEffect3Name().length() > 0) core.skillModService.addSkillMod(target, buff.getEffect3Name(), (int) buff.getEffect3Value()); + if(buff.getEffect4Name().length() > 0) core.skillModService.addSkillMod(target, buff.getEffect4Name(), (int) buff.getEffect4Value()); + if(buff.getEffect5Name().length() > 0) core.skillModService.addSkillMod(target, buff.getEffect5Name(), (int) buff.getEffect5Value()); + } target.addBuff(buff); @@ -167,7 +179,7 @@ public class BuffService implements INetworkDispatch { if (buffer == null) removeBuffFromCreature(target, buff); - if (target.getPosition().getDistance2D(buffer.getWorldPosition()) > 80) { + if (target.getWorldPosition().getDistance2D(buffer.getWorldPosition()) > 80) { removeBuffFromCreature(target, buff); } } @@ -214,8 +226,15 @@ public class BuffService implements INetworkDispatch { dot.getTask().cancel(true); creature.removeDot(dot); } - if(FileUtilities.doesFileExist("scripts/buffs/" + buff.getBuffName() + ".py")) - core.scriptService.callScript("scripts/buffs/", buff.getBuffName(), "remove", core, creature, buff); + if(FileUtilities.doesFileExist("scripts/buffs/" + buff.getBuffName() + ".py")) core.scriptService.callScript("scripts/buffs/", buff.getBuffName(), "remove", core, creature, buff); + else + { + if(buff.getEffect1Name().length() > 0) core.skillModService.deductSkillMod(creature, buff.getEffect1Name(), (int) buff.getEffect1Value()); + if(buff.getEffect2Name().length() > 0) core.skillModService.deductSkillMod(creature, buff.getEffect2Name(), (int) buff.getEffect2Value()); + if(buff.getEffect1Name().length() > 0) core.skillModService.deductSkillMod(creature, buff.getEffect3Name(), (int) buff.getEffect3Value()); + if(buff.getEffect1Name().length() > 0) core.skillModService.deductSkillMod(creature, buff.getEffect4Name(), (int) buff.getEffect4Value()); + if(buff.getEffect1Name().length() > 0) core.skillModService.deductSkillMod(creature, buff.getEffect5Name(), (int) buff.getEffect5Value()); + } creature.removeBuff(buff); for (String effect : buff.getParticleEffect().split(",")) { @@ -228,38 +247,46 @@ public class BuffService implements INetworkDispatch { } } - public void clearBuffs(final CreatureObject creature) { + public void removeBuffFromCreatureByName(CreatureObject creature, String buffName) + { + removeBuffFromCreature(creature, creature.getBuffByName(buffName)); + } + /* + public void clearBuffs(final CreatureObject creature) + { + // This method sucks ass, someone please fix me. indeed, it doesnt even work at all! + for(Buff buff : creature.getBuffList().get()) + { + if(buff.getRemainingDuration() > 0 && buff.getDuration() > 0) buff.setRemovalTask(null); + removeBuffFromCreature(creature, buff); + } + } + */ + + public void clearBuffs(final CreatureObject creature) { + // copy to array for thread safety - + for(final Buff buff : creature.getBuffList().get().toArray(new Buff[] { })) { - + if (buff.getGroup1().startsWith("setBonus")) { continue; } - + if(buff.isGroupBuff() && buff.getGroupBufferId() != creature.getObjectID()) { removeBuffFromCreature(creature, buff); continue; } if(buff.getRemainingDuration() > 0 && buff.getDuration() > 0) { - ScheduledFuture task = scheduler.schedule(new Runnable() { - - @Override - public void run() { - - removeBuffFromCreature(creature, buff); - - } - - }, (long) buff.getRemainingDuration(), TimeUnit.SECONDS); + ScheduledFuture task = scheduler.schedule(() -> removeBuffFromCreature(creature, buff), (long) buff.getRemainingDuration(), TimeUnit.SECONDS); buff.setRemovalTask(task); continue; } else { removeBuffFromCreature(creature, buff); } - + } - + } public void addGroupBuff(CreatureObject buffer, String buffName) { diff --git a/src/services/CharacterService.java b/src/services/CharacterService.java index 5977b9be..b0900a76 100644 --- a/src/services/CharacterService.java +++ b/src/services/CharacterService.java @@ -317,6 +317,13 @@ public class CharacterService implements INetworkDispatch { Console.println("Added empty mission " + missionsAdded); }*/ + // TODO: Race abilities + if (client.isGM()) + object.addAbility("admin"); + + object.addAbility("startDance"); + object.addAbility("startDance+Basic"); + object.addObjectToEquipList(datapad); object.addObjectToEquipList(inventory); object.addObjectToEquipList(bank); @@ -535,6 +542,29 @@ public class CharacterService implements INetworkDispatch { return false; } + /** + * Checks the database for if the object ID of the player exists. + * @param objectId Object ID to check for in the database + * @return Returns True if the player exists + */ + public boolean playerExists(long objectId) { + + try { + PreparedStatement ps = databaseConnection.preparedStatement("SELECT id FROM characters WHERE id=?"); + ps.setLong(1, objectId); + ResultSet resultSet = ps.executeQuery(); + + boolean isDuplicate = resultSet.next(); + resultSet.getStatement().close(); + if (isDuplicate) { return true; } + else { return false; } + } + + catch (SQLException e) { e.printStackTrace(); } + return false; + } + + private void createStarterClothing(CreatureObject creature, String raceTemplate, String profession) { try { ProfessionTemplateVisitor visitor = ClientFileManager.loadFile("creation/profession_defaults_" + profession + ".iff", ProfessionTemplateVisitor.class); diff --git a/src/services/ConnectionService.java b/src/services/ConnectionService.java index 75470eae..1ca12d05 100644 --- a/src/services/ConnectionService.java +++ b/src/services/ConnectionService.java @@ -200,17 +200,17 @@ public class ConnectionService implements INetworkDispatch { if(object.getAttachment("inspireDuration") != null) object.setAttachment("inspireDuration", null); - if(object.getInspirationTick() != null) { - object.getInspirationTick().cancel(true); - object.setInspirationTick(null); + if(object.getPerformanceListenee() != null) { + object.getPerformanceListenee().removeSpectator(object); + object.setPerformanceListenee(null); } - if(object.getSpectatorTask() != null) { - object.getSpectatorTask().cancel(true); - object.setSpectatorTask(null); + if(object.getPerformanceWatchee() != null) { + object.getPerformanceWatchee().removeSpectator(object); + object.setPerformanceWatchee(null); } - core.groupService.handleGroupDisband(object); + core.groupService.handleGroupDisband(object, false); if (core.instanceService.isInInstance(object)) { core.instanceService.remove(core.instanceService.getActiveInstance(object), object); @@ -264,7 +264,6 @@ public class ConnectionService implements INetworkDispatch { object.setPerformanceListenee(null); object.setPerformanceWatchee(null); object.setAttachment("disconnectTask", null); - object.setAttachment("buffWorkshop", null); object.createTransaction(core.getCreatureODB().getEnvironment()); core.getCreatureODB().put(object, Long.class, CreatureObject.class, object.getTransaction()); diff --git a/src/services/ConversationService.java b/src/services/ConversationService.java new file mode 100644 index 00000000..a4f624dc --- /dev/null +++ b/src/services/ConversationService.java @@ -0,0 +1,148 @@ +/******************************************************************************* + * Copyright (c) 2013 + * + * This File is part of NGECore2. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + * + * Using NGEngine to work with NGECore2 is making a combined work based on NGEngine. + * Therefore all terms and conditions of the GNU Lesser General Public License cover the combination. + ******************************************************************************/ +package services; + +import java.util.Map; +import java.util.Vector; +import java.util.concurrent.ConcurrentHashMap; + +import org.python.core.Py; +import org.python.core.PyObject; + +import protocol.swg.ObjControllerMessage; +import protocol.swg.objectControllerObjects.NpcConversationMessage; +import protocol.swg.objectControllerObjects.NpcConversationOptions; +import protocol.swg.objectControllerObjects.StartNpcConversation; +import protocol.swg.objectControllerObjects.StopNpcConversation; +import resources.common.ConversationOption; +import resources.common.OutOfBand; +import resources.objects.creature.CreatureObject; +import resources.objects.tangible.TangibleObject; +import main.NGECore; +import engine.resources.service.INetworkDispatch; +import engine.resources.service.INetworkRemoteEvent; + +public class ConversationService implements INetworkDispatch { + + private NGECore core; + private Map conversationHandlers = new ConcurrentHashMap(); + + public ConversationService(NGECore core) { + this.core = core; + } + + public void handleStartConversation(CreatureObject player, TangibleObject npc) { + if(npc.getAttachment("conversationFile") == null) + return; + + if(player.getConversingNpc() != null && player.getConversingNpc() != npc) + handleEndConversation(player, player.getConversingNpc()); + + player.setConversingNpc(npc); + sendStartConversation(player, npc); + core.scriptService.callScript("scripts/conversation/", (String) npc.getAttachment("conversationFile"), "startConversation", core, player, npc); + } + + public void handleConversationSelection(CreatureObject player, int selectionId) { + + TangibleObject npc = player.getConversingNpc(); + + if(npc == null) { + System.out.println("npc is null"); + return; + } + + PyObject func = conversationHandlers.get(player); + + if(func == null) { + System.out.println("handler func is null"); + return; + } + + conversationHandlers.remove(player); + func.__call__(Py.java2py(core), Py.java2py(player), Py.java2py(npc), Py.java2py(selectionId)); + + } + + public void handleEndConversation(CreatureObject player, TangibleObject npc) { + + conversationHandlers.remove(player); + player.setConversingNpc(null); + core.scriptService.callScript("scripts/conversation/", (String) npc.getAttachment("conversationFile"), "endConversation", core, player, npc); + + } + + public void sendStartConversation(CreatureObject player, TangibleObject npc) { + if(player.getClient() == null) + return; + + StartNpcConversation startConvo = new StartNpcConversation(player.getObjectID(), npc.getObjectID()); + ObjControllerMessage objController = new ObjControllerMessage(0x0B, startConvo); + player.getClient().getSession().write(objController.serialize()); + } + + public void sendStopConversation(CreatureObject player, TangibleObject npc, String stfFile, String stfLabel) { + if(player.getClient() == null) + return; + + StopNpcConversation stopConvo = new StopNpcConversation(player.getObjectID(), npc.getObjectID(), stfFile, stfLabel); + ObjControllerMessage objController = new ObjControllerMessage(0x0B, stopConvo); + player.getClient().getSession().write(objController.serialize()); + } + + public void sendConversationMessage(CreatureObject player, TangibleObject npc, OutOfBand outOfBand) { + if(player.getClient() == null) + return; + + NpcConversationMessage convoMessage = new NpcConversationMessage(player.getObjectID(), outOfBand); + ObjControllerMessage objController = new ObjControllerMessage(0x0B, convoMessage); + player.getClient().getSession().write(objController.serialize()); + } + + public void sendConversationOptions(CreatureObject player, TangibleObject npc, Vector options, PyObject handler) { + if(player.getClient() == null) + return; + + conversationHandlers.put(player, handler); + + NpcConversationOptions convoOptions = new NpcConversationOptions(player.getObjectID(), npc.getObjectID()); + options.forEach(convoOptions::addOption); + ObjControllerMessage objController = new ObjControllerMessage(0x0B, convoOptions); + player.getClient().getSession().write(objController.serialize()); + } + + + @Override + public void insertOpcodes(Map arg0, + Map arg1) { + // TODO Auto-generated method stub + + } + + @Override + public void shutdown() { + // TODO Auto-generated method stub + + } + + +} diff --git a/src/services/DevService.java b/src/services/DevService.java index ed001164..502b7f2f 100644 --- a/src/services/DevService.java +++ b/src/services/DevService.java @@ -1,3 +1,4 @@ +<<<<<<< HEAD /******************************************************************************* * Copyright (c) 2013 * @@ -346,3 +347,972 @@ public class DevService implements INetworkDispatch { } } +======= +/******************************************************************************* + * Copyright (c) 2013 + * + * This File is part of NGECore2. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + * + * Using NGEngine to work with NGECore2 is making a combined work based on NGEngine. + * Therefore all terms and conditions of the GNU Lesser General Public License cover the combination. + ******************************************************************************/ +package services; + +import java.nio.ByteOrder; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Random; +import java.util.Vector; + +import org.apache.mina.core.buffer.IoBuffer; +import org.apache.mina.core.session.IoSession; + +import protocol.swg.ExpertiseRequestMessage; + +import resources.common.Console; +import resources.common.FileUtilities; +import resources.common.Opcodes; +import resources.common.SpawnPoint; +import resources.objects.building.BuildingObject; +import resources.objects.creature.CreatureObject; +import resources.objects.player.PlayerObject; +import resources.objects.tangible.TangibleObject; +import services.sui.SUIWindow; +import services.sui.SUIService.ListBoxType; +import services.sui.SUIWindow.SUICallback; +import services.sui.SUIWindow.Trigger; +import main.NGECore; +import engine.clientdata.ClientFileManager; +import engine.clientdata.visitors.DatatableVisitor; +import engine.clients.Client; +import engine.resources.objects.SWGObject; +import engine.resources.scene.Planet; +import engine.resources.scene.Point3D; +import engine.resources.service.INetworkDispatch; +import engine.resources.service.INetworkRemoteEvent; + +@SuppressWarnings("unused") +public class DevService implements INetworkDispatch { + + private NGECore core; + + public DevService(NGECore core) { + this.core = core; + } + + public void sendCharacterBuilderSUI(CreatureObject creature, int childMenu) + { + Map suiOptions = new HashMap(); + + switch(childMenu) + { + case 0: // Root + suiOptions.put((long) 1, "Character"); + suiOptions.put((long) 2, "Items"); + break; + case 1: // Character + suiOptions.put((long) 10, "Set combat level to 90"); + suiOptions.put((long) 11, "Give 100,000 credits"); + suiOptions.put((long) 12, "Reset expertise"); + break; + case 2: // Items + suiOptions.put((long) 20, "Armor"); + suiOptions.put((long) 21, "Weapons"); + suiOptions.put((long) 22, "Misc Items"); + suiOptions.put((long) 23, "Jedi Items"); + break; + case 3: // [Items] Weapons + suiOptions.put((long) 30, "Jedi Weapons"); + suiOptions.put((long) 31, "Melee Weapons"); + suiOptions.put((long) 32, "Ranged Weapons"); + break; + case 4: // [Items] Misc Items + suiOptions.put((long) 40, "Unity Ring"); + suiOptions.put((long) 41, "Tusken Rucksack"); + suiOptions.put((long) 42, "Heroism Jewlery Set"); + break; + case 5: // [Items] Armor + suiOptions.put((long) 50, "Assault Armor"); + suiOptions.put((long) 51, "Battle Armor"); + suiOptions.put((long) 52, "Reconnaissance Armor"); + break; + case 6: // [Items] Assault Armor + suiOptions.put((long) 60, "Composite"); + suiOptions.put((long) 61, "Ithorian Sentinel"); + suiOptions.put((long) 62, "Kashyyykian Hunting"); + break; + case 7: // [Items] Battle Armor + suiOptions.put((long) 70, "Bone"); + suiOptions.put((long) 71, "Ithorian Defender"); + suiOptions.put((long) 72, "Kashyyykian Black Mountain"); + break; + case 8: // [Items] Reconnaissance Armor + suiOptions.put((long) 80, "Marauder"); + suiOptions.put((long) 81, "Ithorian Guardian"); + suiOptions.put((long) 82, "Kashyyykian Ceremonial"); + break; + case 9: // [Items] Jedi Items + suiOptions.put((long) 90, "(Light) Jedi Robe"); + suiOptions.put((long) 91, "(Dark) Jedi Robe"); + suiOptions.put((long) 92, "Belt of Master Bodo Baas"); + break; + } + + final SUIWindow window = core.suiService.createListBox(ListBoxType.LIST_BOX_OK_CANCEL, "Character Builder Terminal", "Select the desired option and click OK.", suiOptions, creature, null, 10); + Vector returnList = new Vector(); + + returnList.add("List.lstList:SelectedRow"); + + window.addHandler(0, "", Trigger.TRIGGER_OK, returnList, new SUICallback() + { + public void process(SWGObject owner, int eventType, Vector returnList) + { + int index = Integer.parseInt(returnList.get(0)); + int childIndex = (int) window.getObjectIdByIndex(index); + + CreatureObject player = (CreatureObject) owner; + SWGObject inventory = player.getSlottedObject("inventory"); + Planet planet = player.getPlanet(); + + switch(childIndex) + { + // Root + case 1: // Character + sendCharacterBuilderSUI(player, 1); + return; + case 2: // Items + sendCharacterBuilderSUI(player, 2); + return; + + // Character + case 10: // Set combat level to 90 + core.playerService.grantLevel(player, 90); // Commented out until fixed + //core.playerService.giveExperience(player, 999999999); + return; + case 11: // Give 100,000 credits + player.setCashCredits(player.getCashCredits() + 100000); + return; + case 12: // Reset expertise + // Seefo->Light: I commented out the below line because it gave us an error and didn't properly remove the skill, could you try the method SWGList.reverseGet that I added? + //player.getSkills().get().stream().filter(s -> s.contains("expertise")).forEach(s -> core.skillService.removeSkill(creature, s)); + + // Using this for now + for(int i = creature.getSkills().size() - 1; i >= 0; i-- ) + { + String skill = creature.getSkills().get(i); + if(skill.contains("expertise")) core.skillService.removeSkill(player, skill); + } + return; + + // Items + case 20: // Armor + sendCharacterBuilderSUI(player, 5); + return; + case 21: // Weapons + sendCharacterBuilderSUI(player, 3); + return; + case 22: // Misc Items + sendCharacterBuilderSUI(player, 4); + return; + case 23: // Jedi Items + sendCharacterBuilderSUI(player, 9); + return; + + // [Items] Weapons + case 30: // Jedi Weapons + TangibleObject lightsaber1 = (TangibleObject) core.objectService.createObject("object/weapon/melee/sword/crafted_saber/shared_sword_lightsaber_one_handed_gen5.iff", planet); + lightsaber1.setIntAttribute("required_combat_level", 90); + lightsaber1.setFloatAttribute("cat_wpn_damage.wpn_attack_speed", 1); + lightsaber1.setStringAttribute("class_required", "Jedi"); + lightsaber1.setStringAttribute("cat_wpn_damage.wpn_damage_type", "Energy"); + lightsaber1.setStringAttribute("cat_wpn_damage.damage", "689-1379"); + + TangibleObject lightsaber2 = (TangibleObject) core.objectService.createObject("object/weapon/melee/2h_sword/crafted_saber/shared_sword_lightsaber_two_handed_gen5.iff", planet); + lightsaber2.setIntAttribute("required_combat_level", 90); + lightsaber2.setFloatAttribute("cat_wpn_damage.wpn_attack_speed", 1); + lightsaber2.setStringAttribute("class_required", "Jedi"); + lightsaber2.setStringAttribute("cat_wpn_damage.wpn_damage_type", "Energy"); + lightsaber2.setStringAttribute("cat_wpn_damage.damage", "689-1379"); + + TangibleObject lightsaber3 = (TangibleObject) core.objectService.createObject("object/weapon/melee/polearm/crafted_saber/shared_sword_lightsaber_polearm_gen5.iff", planet); + lightsaber3.setIntAttribute("required_combat_level", 90); + lightsaber3.setFloatAttribute("cat_wpn_damage.wpn_attack_speed", 1); + lightsaber3.setStringAttribute("class_required", "Jedi"); + lightsaber3.setStringAttribute("cat_wpn_damage.wpn_damage_type", "Energy"); + lightsaber3.setStringAttribute("cat_wpn_damage.damage", "689-1379"); + + Random random = new Random(); + + lightsaber1.setCustomizationVariable("/private/index_color_blade", (byte) random.nextInt(47)); + lightsaber2.setCustomizationVariable("/private/index_color_blade", (byte) random.nextInt(47)); + lightsaber3.setCustomizationVariable("/private/index_color_blade", (byte) random.nextInt(47)); + + inventory.add(lightsaber1); + inventory.add(lightsaber2); + inventory.add(lightsaber3); + return; + case 31: // Melee Weapons + SWGObject sword1 = core.objectService.createObject("object/weapon/melee/sword/shared_sword_01.iff", planet); + sword1.setIntAttribute("required_combat_level", 90); + sword1.setFloatAttribute("cat_wpn_damage.wpn_attack_speed", 1); + sword1.setStringAttribute("class_required", "None"); + sword1.setStringAttribute("cat_wpn_damage.wpn_damage_type", "Energy"); + sword1.setStringAttribute("cat_wpn_damage.damage", "1100-1200"); + + inventory.add(sword1); + return; + case 32: // Ranged Weapons + SWGObject rifle1 = core.objectService.createObject("object/weapon/ranged/rifle/shared_rifle_e11.iff", planet); + rifle1.setIntAttribute("required_combat_level", 90); + rifle1.setFloatAttribute("cat_wpn_damage.wpn_attack_speed", (float) 0.8); + rifle1.setStringAttribute("class_required", "None"); + rifle1.setStringAttribute("cat_wpn_damage.wpn_damage_type", "Energy"); + rifle1.setStringAttribute("cat_wpn_damage.damage", "800-1250"); + + inventory.add(rifle1); + + SWGObject pistol = core.objectService.createObject("object/weapon/ranged/pistol/shared_pistol_cdef.iff", planet); + pistol.setIntAttribute("required_combat_level", 90); + pistol.setFloatAttribute("cat_wpn_damage.wpn_attack_speed", (float) 0.4); + pistol.setStringAttribute("class_required", "None"); + pistol.setStringAttribute("cat_wpn_damage.wpn_damage_type", "Energy"); + pistol.setStringAttribute("cat_wpn_damage.damage", "400-559"); + + inventory.add(pistol); + return; + case 40: + TangibleObject ring = (TangibleObject) core.objectService.createObject("object/tangible/wearables/ring/shared_ring_s01.iff", planet); + ring.setCustomName("Unity Ring"); + inventory.add(ring); + case 41: + TangibleObject backpack = (TangibleObject) core.objectService.createObject("object/tangible/wearables/backpack/shared_backpack_krayt_skull.iff", planet); + backpack.setIntAttribute("cat_stat_mod_bonus.@stat_n:agility_modified", 25); + backpack.setIntAttribute("cat_stat_mod_bonus.@stat_n:constitution_modified", 30); + backpack.setIntAttribute("cat_stat_mod_bonus.@stat_n:luck_modified", 25); + backpack.setIntAttribute("cat_stat_mod_bonus.@stat_n:precision_modified", 35); + backpack.setIntAttribute("cat_stat_mod_bonus.@stat_n:stamina_modified", 30); + backpack.setIntAttribute("cat_stat_mod_bonus.@stat_n:strength_modified", 35); + inventory.add(backpack); + return; + case 42: + TangibleObject heroismBand = (TangibleObject) core.objectService.createObject("object/tangible/wearables/ring/shared_ring_s01.iff", planet); + heroismBand.setStfFilename("static_item_n"); + heroismBand.setStfName("item_band_set_hero_01_01"); + heroismBand.setStringAttribute("@set_bonus:piece_bonus_count_3", "@set_bonus:set_bonus_hero_1"); + heroismBand.setStringAttribute("@set_bonus:piece_bonus_count_4", "@set_bonus:set_bonus_hero_2"); + heroismBand.setStringAttribute("@set_bonus:piece_bonus_count_5", "@set_bonus:set_bonus_hero_3"); + heroismBand.setAttachment("setBonus", "set_bonus_hero"); + + TangibleObject heroismRing = (TangibleObject) core.objectService.createObject("object/tangible/wearables/ring/shared_ring_s01.iff", planet); + heroismRing.setStfFilename("static_item_n"); + heroismRing.setStfName("item_ring_set_hero_01_01"); + heroismRing.setStringAttribute("@set_bonus:piece_bonus_count_3", "@set_bonus:set_bonus_hero_1"); + heroismRing.setStringAttribute("@set_bonus:piece_bonus_count_4", "@set_bonus:set_bonus_hero_2"); + heroismRing.setStringAttribute("@set_bonus:piece_bonus_count_5", "@set_bonus:set_bonus_hero_3"); + heroismRing.setAttachment("setBonus", "set_bonus_hero"); + + TangibleObject heroismNecklace = (TangibleObject) core.objectService.createObject("object/tangible/wearables/necklace/shared_necklace_s01.iff", planet); + heroismNecklace.setStfFilename("static_item_n"); + heroismNecklace.setStfName("item_necklace_set_hero_01_01"); + heroismNecklace.setStringAttribute("@set_bonus:piece_bonus_count_3", "@set_bonus:set_bonus_hero_1"); + heroismNecklace.setStringAttribute("@set_bonus:piece_bonus_count_4", "@set_bonus:set_bonus_hero_2"); + heroismNecklace.setStringAttribute("@set_bonus:piece_bonus_count_5", "@set_bonus:set_bonus_hero_3"); + heroismNecklace.setAttachment("setBonus", "set_bonus_hero"); + + TangibleObject heroismBraceletRight = (TangibleObject) core.objectService.createObject("object/tangible/wearables/bracelet/shared_bracelet_s02_r.iff", planet); + heroismBraceletRight.setStfFilename("static_item_n"); + heroismBraceletRight.setStfName("item_bracelet_r_set_hero_01_01"); + heroismBraceletRight.setStringAttribute("@set_bonus:piece_bonus_count_3", "@set_bonus:set_bonus_hero_1"); + heroismBraceletRight.setStringAttribute("@set_bonus:piece_bonus_count_4", "@set_bonus:set_bonus_hero_2"); + heroismBraceletRight.setStringAttribute("@set_bonus:piece_bonus_count_5", "@set_bonus:set_bonus_hero_3"); + heroismBraceletRight.setAttachment("setBonus", "set_bonus_hero"); + + TangibleObject heroismBraceletLeft = (TangibleObject) core.objectService.createObject("object/tangible/wearables/bracelet/shared_bracelet_s02_l.iff", planet); + heroismBraceletLeft.setStfFilename("static_item_n"); + heroismBraceletLeft.setStfName("item_bracelet_l_set_hero_01_01"); + heroismBraceletLeft.setStringAttribute("@set_bonus:piece_bonus_count_3", "@set_bonus:set_bonus_hero_1"); + heroismBraceletLeft.setStringAttribute("@set_bonus:piece_bonus_count_4", "@set_bonus:set_bonus_hero_2"); + heroismBraceletLeft.setStringAttribute("@set_bonus:piece_bonus_count_5", "@set_bonus:set_bonus_hero_3"); + heroismBraceletLeft.setAttachment("setBonus", "set_bonus_hero"); + + inventory.add(heroismBand); + inventory.add(heroismRing); + inventory.add(heroismNecklace); + inventory.add(heroismBraceletRight); + inventory.add(heroismBraceletLeft); + return; + case 50: // [Items] Assault Armor + sendCharacterBuilderSUI(player, 6); + return; + case 51: // [Items] Battle Armor + sendCharacterBuilderSUI(player, 7); + return; + case 52: // [Items] Reconnaissance Armor + sendCharacterBuilderSUI(player, 8); + return; + case 60: // Composite Armor + SWGObject comp_bicep_r = core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_bicep_r.iff", planet); + comp_bicep_r.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + comp_bicep_r.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + comp_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + comp_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + comp_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + comp_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject comp_bicep_l = core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_bicep_l.iff", planet); + comp_bicep_l.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + comp_bicep_l.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + comp_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + comp_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + comp_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + comp_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject comp_bracer_r = core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_bracer_r.iff", planet); + comp_bracer_r.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + comp_bracer_r.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + comp_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + comp_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + comp_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + comp_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject comp_bracer_l = core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_bracer_l.iff", planet); + comp_bracer_l.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + comp_bracer_l.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + comp_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + comp_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + comp_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + comp_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject comp_leggings = core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_leggings.iff", planet); + comp_leggings.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + comp_leggings.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + comp_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + comp_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + comp_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + comp_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject comp_helmet = core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_helmet.iff", planet); + comp_helmet.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + comp_helmet.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + comp_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + comp_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + comp_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + comp_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject comp_chest = core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_chest_plate.iff", planet); + comp_chest.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + comp_chest.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + comp_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + comp_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + comp_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + comp_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject comp_boots = core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_boots.iff", planet); + SWGObject comp_gloves = core.objectService.createObject("object/tangible/wearables/armor/composite/shared_armor_composite_gloves.iff", planet); + + + + inventory.add(comp_bicep_r); + inventory.add(comp_bicep_l); + inventory.add(comp_bracer_r); + inventory.add(comp_bracer_l); + inventory.add(comp_leggings); + inventory.add(comp_helmet); + inventory.add(comp_chest); + inventory.add(comp_boots); + inventory.add(comp_gloves); + + + return; + case 61: // Ithorian Sentinel + SWGObject sent_bicep_r = core.objectService.createObject("object/tangible/wearables/armor/ithorian_sentinel/shared_ith_armor_s03_bicep_r.iff", planet); + sent_bicep_r.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + sent_bicep_r.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + sent_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + sent_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + sent_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + sent_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject sent_bicep_l = core.objectService.createObject("object/tangible/wearables/armor/ithorian_sentinel/shared_ith_armor_s03_bicep_l.iff", planet); + sent_bicep_l.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + sent_bicep_l.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + sent_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + sent_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + sent_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + sent_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject sent_bracer_r = core.objectService.createObject("object/tangible/wearables/armor/ithorian_sentinel/shared_ith_armor_s03_bracer_r.iff", planet); + sent_bracer_r.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + sent_bracer_r.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + sent_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + sent_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + sent_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + sent_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject sent_bracer_l = core.objectService.createObject("object/tangible/wearables/armor/ithorian_sentinel/shared_ith_armor_s03_bracer_l.iff", planet); + sent_bracer_l.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + sent_bracer_l.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + sent_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + sent_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + sent_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + sent_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject sent_leggings = core.objectService.createObject("object/tangible/wearables/armor/ithorian_sentinel/shared_ith_armor_s03_leggings.iff", planet); + sent_leggings.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + sent_leggings.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + sent_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + sent_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + sent_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + sent_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject sent_helmet = core.objectService.createObject("object/tangible/wearables/armor/ithorian_sentinel/shared_ith_armor_s03_helmet.iff", planet); + sent_helmet.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + sent_helmet.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + sent_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + sent_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + sent_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + sent_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject sent_chest = core.objectService.createObject("object/tangible/wearables/armor/ithorian_sentinel/shared_ith_armor_s03_chest_plate.iff", planet); + sent_chest.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + sent_chest.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + sent_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + sent_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + sent_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + sent_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject sent_boots = core.objectService.createObject("object/tangible/wearables/armor/ithorian_sentinel/shared_ith_armor_s03_boots.iff", planet); + SWGObject sent_gloves = core.objectService.createObject("object/tangible/wearables/armor/ithorian_sentinel/shared_ith_armor_s03_gloves.iff", planet); + + + + inventory.add(sent_bicep_r); + inventory.add(sent_bicep_l); + inventory.add(sent_bracer_r); + inventory.add(sent_bracer_l); + inventory.add(sent_leggings); + inventory.add(sent_helmet); + inventory.add(sent_chest); + inventory.add(sent_boots); + inventory.add(sent_gloves); + + + return; + case 62: // Kashyyykian Hunting + SWGObject hunt_bicep_r = core.objectService.createObject("object/tangible/wearables/armor/kashyyykian_hunting/shared_armor_kashyyykian_hunting_bicep_r.iff", planet); + hunt_bicep_r.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + hunt_bicep_r.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + hunt_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + hunt_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + hunt_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + hunt_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject hunt_bicep_l = core.objectService.createObject("object/tangible/wearables/armor/kashyyykian_hunting/shared_armor_kashyyykian_hunting_bicep_l.iff", planet); + hunt_bicep_l.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + hunt_bicep_l.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + hunt_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + hunt_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + hunt_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + hunt_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject hunt_bracer_r = core.objectService.createObject("object/tangible/wearables/armor/kashyyykian_hunting/shared_armor_kashyyykian_hunting_bracer_r.iff", planet); + hunt_bracer_r.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + hunt_bracer_r.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + hunt_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + hunt_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + hunt_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + hunt_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject hunt_bracer_l = core.objectService.createObject("object/tangible/wearables/armor/kashyyykian_hunting/shared_armor_kashyyykian_hunting_bracer_l.iff", planet); + hunt_bracer_l.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + hunt_bracer_l.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + hunt_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + hunt_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + hunt_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + hunt_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject hunt_leggings = core.objectService.createObject("object/tangible/wearables/armor/kashyyykian_hunting/shared_armor_kashyyykian_hunting_leggings.iff", planet); + hunt_leggings.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + hunt_leggings.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + hunt_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + hunt_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + hunt_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + hunt_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject hunt_chest = core.objectService.createObject("object/tangible/wearables/armor/kashyyykian_hunting/shared_armor_kashyyykian_hunting_chestplate.iff", planet); + hunt_chest.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 7000); + hunt_chest.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 5000); + hunt_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + hunt_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + hunt_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + hunt_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + + + inventory.add(hunt_bicep_r); + inventory.add(hunt_bicep_l); + inventory.add(hunt_bracer_r); + inventory.add(hunt_bracer_l); + inventory.add(hunt_leggings); + inventory.add(hunt_chest); + + + return; + case 70: // Bone Armor + SWGObject bone_bicep_r = core.objectService.createObject("object/tangible/wearables/armor/bone/shared_armor_bone_s01_bicep_r.iff", planet); + bone_bicep_r.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 6000); + bone_bicep_r.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 6000); + bone_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + bone_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + bone_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + bone_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject bone_bicep_l = core.objectService.createObject("object/tangible/wearables/armor/bone/shared_armor_bone_s01_bicep_l.iff", planet); + bone_bicep_l.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 6000); + bone_bicep_l.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 6000); + bone_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + bone_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + bone_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + bone_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject bone_bracer_r = core.objectService.createObject("object/tangible/wearables/armor/bone/shared_armor_bone_s01_bracer_r.iff", planet); + bone_bracer_r.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 6000); + bone_bracer_r.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 6000); + bone_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + bone_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + bone_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + bone_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject bone_bracer_l = core.objectService.createObject("object/tangible/wearables/armor/bone/shared_armor_bone_s01_bracer_l.iff", planet); + bone_bracer_l.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 6000); + bone_bracer_l.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 6000); + bone_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + bone_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + bone_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + bone_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject bone_leggings = core.objectService.createObject("object/tangible/wearables/armor/bone/shared_armor_bone_s01_leggings.iff", planet); + bone_leggings.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 6000); + bone_leggings.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 6000); + bone_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + bone_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + bone_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + bone_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject bone_helmet = core.objectService.createObject("object/tangible/wearables/armor/bone/shared_armor_bone_s01_helmet.iff", planet); + bone_helmet.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 6000); + bone_helmet.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 6000); + bone_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + bone_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + bone_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + bone_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject bone_chest = core.objectService.createObject("object/tangible/wearables/armor/bone/shared_armor_bone_s01_chest_plate.iff", planet); + bone_chest.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 6000); + bone_chest.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 6000); + bone_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + bone_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + bone_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + bone_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject bone_boots = core.objectService.createObject("object/tangible/wearables/armor/bone/shared_armor_bone_s01_boots.iff", planet); + SWGObject bone_gloves = core.objectService.createObject("object/tangible/wearables/armor/bone/shared_armor_bone_s01_gloves.iff", planet); + + + + inventory.add(bone_bicep_r); + inventory.add(bone_bicep_l); + inventory.add(bone_bracer_r); + inventory.add(bone_bracer_l); + inventory.add(bone_leggings); + inventory.add(bone_helmet); + inventory.add(bone_chest); + inventory.add(bone_boots); + inventory.add(bone_gloves); + + + return; + case 71: // Ithorian Defender + SWGObject def_bicep_r = core.objectService.createObject("object/tangible/wearables/armor/ithorian_defender/shared_ith_armor_s01_bicep_r.iff", planet); + def_bicep_r.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 6000); + def_bicep_r.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 6000); + def_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + def_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + def_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + def_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject def_bicep_l = core.objectService.createObject("object/tangible/wearables/armor/ithorian_defender/shared_ith_armor_s01_bicep_l.iff", planet); + def_bicep_l.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 6000); + def_bicep_l.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 6000); + def_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + def_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + def_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + def_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject def_bracer_r = core.objectService.createObject("object/tangible/wearables/armor/ithorian_defender/shared_ith_armor_s01_bracer_r.iff", planet); + def_bracer_r.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 6000); + def_bracer_r.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 6000); + def_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + def_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + def_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + def_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject def_bracer_l = core.objectService.createObject("object/tangible/wearables/armor/ithorian_defender/shared_ith_armor_s01_bracer_l.iff", planet); + def_bracer_l.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 6000); + def_bracer_l.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 6000); + def_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + def_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + def_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + def_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject def_leggings = core.objectService.createObject("object/tangible/wearables/armor/ithorian_defender/shared_ith_armor_s01_leggings.iff", planet); + def_leggings.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 6000); + def_leggings.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 6000); + def_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + def_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + def_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + def_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject def_helmet = core.objectService.createObject("object/tangible/wearables/armor/ithorian_defender/shared_ith_armor_s01_helmet.iff", planet); + def_helmet.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 6000); + def_helmet.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 6000); + def_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + def_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + def_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + def_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject def_chest = core.objectService.createObject("object/tangible/wearables/armor/ithorian_defender/shared_ith_armor_s01_chest_plate.iff", planet); + def_chest.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 6000); + def_chest.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 6000); + def_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + def_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + def_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + def_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject def_boots = core.objectService.createObject("object/tangible/wearables/armor/ithorian_defender/shared_ith_armor_s01_boots.iff", planet); + SWGObject def_gloves = core.objectService.createObject("object/tangible/wearables/armor/ithorian_defender/shared_ith_armor_s01_gloves.iff", planet); + + + + inventory.add(def_bicep_r); + inventory.add(def_bicep_l); + inventory.add(def_bracer_r); + inventory.add(def_bracer_l); + inventory.add(def_leggings); + inventory.add(def_helmet); + inventory.add(def_chest); + inventory.add(def_boots); + inventory.add(def_gloves); + + + return; + case 72: // Kashyyykian Black Mountain + SWGObject moun_bicep_r = core.objectService.createObject("object/tangible/wearables/armor/kashyyykian_black_mtn/shared_armor_kashyyykian_black_mtn_bicep_r.iff", planet); + moun_bicep_r.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 6000); + moun_bicep_r.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 6000); + moun_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + moun_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + moun_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + moun_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject moun_bicep_l = core.objectService.createObject("object/tangible/wearables/armor/kashyyykian_black_mtn/shared_armor_kashyyykian_black_mtn_bicep_l.iff", planet); + moun_bicep_l.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 6000); + moun_bicep_l.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 6000); + moun_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + moun_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + moun_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + moun_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject moun_bracer_r = core.objectService.createObject("object/tangible/wearables/armor/kashyyykian_black_mtn/shared_armor_kashyyykian_black_mtn_bracer_r.iff", planet); + moun_bracer_r.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 6000); + moun_bracer_r.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 6000); + moun_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + moun_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + moun_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + moun_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject moun_bracer_l = core.objectService.createObject("object/tangible/wearables/armor/kashyyykian_black_mtn/shared_armor_kashyyykian_black_mtn_bracer_l.iff", planet); + moun_bracer_l.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 6000); + moun_bracer_l.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 6000); + moun_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + moun_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + moun_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + moun_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject moun_leggings = core.objectService.createObject("object/tangible/wearables/armor/kashyyykian_black_mtn/shared_armor_kashyyykian_black_mtn_leggings.iff", planet); + moun_leggings.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 6000); + moun_leggings.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 6000); + moun_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + moun_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + moun_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + moun_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject moun_chest = core.objectService.createObject("object/tangible/wearables/armor/kashyyykian_black_mtn/shared_armor_kashyyykian_black_mtn_chestplate.iff", planet); + moun_chest.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 6000); + moun_chest.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 6000); + moun_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + moun_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + moun_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + moun_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + + + inventory.add(moun_bicep_r); + inventory.add(moun_bicep_l); + inventory.add(moun_bracer_r); + inventory.add(moun_bracer_l); + inventory.add(moun_leggings); + inventory.add(moun_chest); + + + return; + case 80: // Marauder Armor + SWGObject mar_bicep_r = core.objectService.createObject("object/tangible/wearables/armor/marauder/shared_armor_marauder_s02_bicep_r.iff", planet); + mar_bicep_r.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 5000); + mar_bicep_r.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 7000); + mar_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + mar_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + mar_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + mar_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject mar_bicep_l = core.objectService.createObject("object/tangible/wearables/armor/marauder/shared_armor_marauder_s02_bicep_l.iff", planet); + mar_bicep_l.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 5000); + mar_bicep_l.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 7000); + mar_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + mar_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + mar_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + mar_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject mar_bracer_r = core.objectService.createObject("object/tangible/wearables/armor/marauder/shared_armor_marauder_s02_bracer_r.iff", planet); + mar_bracer_r.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 5000); + mar_bracer_r.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 7000); + mar_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + mar_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + mar_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + mar_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject mar_bracer_l = core.objectService.createObject("object/tangible/wearables/armor/marauder/shared_armor_marauder_s02_bracer_l.iff", planet); + mar_bracer_l.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 5000); + mar_bracer_l.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 7000); + mar_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + mar_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + mar_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + mar_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject mar_leggings = core.objectService.createObject("object/tangible/wearables/armor/marauder/shared_armor_marauder_s02_leggings.iff", planet); + mar_leggings.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 5000); + mar_leggings.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 7000); + mar_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + mar_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + mar_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + mar_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject mar_helmet = core.objectService.createObject("object/tangible/wearables/armor/marauder/shared_armor_marauder_s02_helmet.iff", planet); + mar_helmet.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 5000); + mar_helmet.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 7000); + mar_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + mar_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + mar_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + mar_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject mar_chest = core.objectService.createObject("object/tangible/wearables/armor/marauder/shared_armor_marauder_s02_chest_plate.iff", planet); + mar_chest.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 5000); + mar_chest.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 7000); + mar_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + mar_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + mar_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + mar_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject mar_boots = core.objectService.createObject("object/tangible/wearables/armor/marauder/shared_armor_marauder_s02_boots.iff", planet); + SWGObject mar_gloves = core.objectService.createObject("object/tangible/wearables/armor/marauder/shared_armor_marauder_s02_gloves.iff", planet); + + + + inventory.add(mar_bicep_r); + inventory.add(mar_bicep_l); + inventory.add(mar_bracer_r); + inventory.add(mar_bracer_l); + inventory.add(mar_leggings); + inventory.add(mar_helmet); + inventory.add(mar_chest); + inventory.add(mar_boots); + inventory.add(mar_gloves); + + + return; + case 81: // Ithorian Guardian + SWGObject gau_bicep_r = core.objectService.createObject("object/tangible/wearables/armor/ithorian_guardian/shared_ith_armor_s02_bicep_r.iff", planet); + gau_bicep_r.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 5000); + gau_bicep_r.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 7000); + gau_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + gau_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + gau_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + gau_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject gau_bicep_l = core.objectService.createObject("object/tangible/wearables/armor/ithorian_guardian/shared_ith_armor_s02_bicep_l.iff", planet); + gau_bicep_l.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 5000); + gau_bicep_l.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 7000); + gau_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + gau_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + gau_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + gau_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject gau_bracer_r = core.objectService.createObject("object/tangible/wearables/armor/ithorian_guardian/shared_ith_armor_s02_bracer_r.iff", planet); + gau_bracer_r.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 5000); + gau_bracer_r.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 7000); + gau_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + gau_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + gau_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + gau_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject gau_bracer_l = core.objectService.createObject("object/tangible/wearables/armor/ithorian_guardian/shared_ith_armor_s02_bracer_l.iff", planet); + gau_bracer_l.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 5000); + gau_bracer_l.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 7000); + gau_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + gau_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + gau_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + gau_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject gau_leggings = core.objectService.createObject("object/tangible/wearables/armor/ithorian_guardian/shared_ith_armor_s02_leggings.iff", planet); + gau_leggings.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 5000); + gau_leggings.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 7000); + gau_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + gau_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + gau_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + gau_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject gau_helmet = core.objectService.createObject("object/tangible/wearables/armor/ithorian_guardian/shared_ith_armor_s02_helmet.iff", planet); + gau_helmet.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 5000); + gau_helmet.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 7000); + gau_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + gau_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + gau_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + gau_helmet.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject gau_chest = core.objectService.createObject("object/tangible/wearables/armor/ithorian_guardian/shared_ith_armor_s02_chest_plate.iff", planet); + gau_chest.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 5000); + gau_chest.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 7000); + gau_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + gau_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + gau_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + gau_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject gau_boots = core.objectService.createObject("object/tangible/wearables/armor/ithorian_guardian/shared_ith_armor_s02_boots.iff", planet); + SWGObject gau_gloves = core.objectService.createObject("object/tangible/wearables/armor/ithorian_guardian/shared_ith_armor_s02_gloves.iff", planet); + + + + inventory.add(gau_bicep_r); + inventory.add(gau_bicep_l); + inventory.add(gau_bracer_r); + inventory.add(gau_bracer_l); + inventory.add(gau_leggings); + inventory.add(gau_helmet); + inventory.add(gau_chest); + inventory.add(gau_boots); + inventory.add(gau_gloves); + + + return; + case 82: // Kashyyykian Ceremonial + SWGObject cer_bicep_r = core.objectService.createObject("object/tangible/wearables/armor/kashyyykian_ceremonial/shared_armor_kashyyykian_ceremonial_bicep_r.iff", planet); + cer_bicep_r.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 5000); + cer_bicep_r.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 7000); + cer_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + cer_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + cer_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + cer_bicep_r.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject cer_bicep_l = core.objectService.createObject("object/tangible/wearables/armor/kashyyykian_ceremonial/shared_armor_kashyyykian_ceremonial_bicep_l.iff", planet); + cer_bicep_l.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 5000); + cer_bicep_l.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 7000); + cer_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + cer_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + cer_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + cer_bicep_l.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject cer_bracer_r = core.objectService.createObject("object/tangible/wearables/armor/kashyyykian_ceremonial/shared_armor_kashyyykian_ceremonial_bracer_r.iff", planet); + cer_bracer_r.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 5000); + cer_bracer_r.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 7000); + cer_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + cer_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + cer_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + cer_bracer_r.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject cer_bracer_l = core.objectService.createObject("object/tangible/wearables/armor/kashyyykian_ceremonial/shared_armor_kashyyykian_ceremonial_bracer_l.iff", planet); + cer_bracer_l.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 5000); + cer_bracer_l.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 7000); + cer_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + cer_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + cer_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + cer_bracer_l.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject cer_leggings = core.objectService.createObject("object/tangible/wearables/armor/kashyyykian_ceremonial/shared_armor_kashyyykian_ceremonial_leggings.iff", planet); + cer_leggings.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 5000); + cer_leggings.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 7000); + cer_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + cer_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + cer_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + cer_leggings.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + SWGObject cer_chest = core.objectService.createObject("object/tangible/wearables/armor/kashyyykian_ceremonial/shared_armor_kashyyykian_ceremonial_chestplate.iff", planet); + cer_chest.setIntAttribute("cat_armor_standard_protection.armor_eff_kinetic", 5000); + cer_chest.setIntAttribute("cat_armor_standard_protection.armor_eff_energy", 7000); + cer_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_heat", 6000); + cer_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_cold", 6000); + cer_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_acid", 6000); + cer_chest.setIntAttribute("cat_armor_special_protection.special_protection_type_electricity", 6000); + + + + inventory.add(cer_bicep_r); + inventory.add(cer_bicep_l); + inventory.add(cer_bracer_r); + inventory.add(cer_bracer_l); + inventory.add(cer_leggings); + inventory.add(cer_chest); + + return; + + case 90: // (Light) Jedi Robe + inventory.add(core.objectService.createObject("object/tangible/wearables/robe/shared_robe_jedi_light_s03.iff", planet)); + return; + case 91: // (Dark) Jedi Robe + inventory.add(core.objectService.createObject("object/tangible/wearables/robe/shared_robe_jedi_dark_s03.iff", planet)); + return; + case 92: // Belt of Master Bodo Baas + inventory.add(core.objectService.createObject("object/tangible/wearables/backpack/shared_fannypack_s01.iff", planet)); + return; + } + } + }); + + core.suiService.openSUIWindow(window); + } + + @Override + public void insertOpcodes(Map swgOpcodes, Map objControllerOpcodes) { + } + + + @Override + public void shutdown() { + + } + +} +>>>>>>> origin/master diff --git a/src/services/EntertainmentService.java b/src/services/EntertainmentService.java index a523b5e5..2821f0f1 100644 --- a/src/services/EntertainmentService.java +++ b/src/services/EntertainmentService.java @@ -1,960 +1,963 @@ -package services; - -import java.nio.ByteOrder; -import java.util.HashMap; -import java.util.Iterator; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Random; -import java.util.Vector; -import java.util.concurrent.ConcurrentHashMap; -import java.util.concurrent.Executors; -import java.util.concurrent.ScheduledExecutorService; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.TimeUnit; - -import main.NGECore; - -import org.apache.mina.core.buffer.IoBuffer; -import org.apache.mina.core.session.IoSession; - -import protocol.swg.ObjControllerMessage; -import protocol.swg.OkMessage; -import protocol.swg.PlayClientEffectObjectMessage; -import protocol.swg.objectControllerObjects.BuffBuilderChangeMessage; -import protocol.swg.objectControllerObjects.BuffBuilderEndMessage; -import protocol.swg.objectControllerObjects.BuffBuilderStartMessage; -import protocol.swg.objectControllerObjects.ImageDesignMessage; -import resources.common.BuffBuilder; -import resources.common.Console; -import resources.common.IDAttribute; -import resources.common.MathUtilities; -import resources.common.ObjControllerOpcodes; -import resources.common.Performance; -import resources.common.PerformanceEffect; -import resources.common.RGB; -import resources.common.StringUtilities; -import resources.datatables.Posture; -import resources.objects.Buff; -import resources.objects.BuffItem; -import resources.objects.SWGList; -import resources.objects.SkillMod; -import resources.objects.creature.CreatureObject; -import resources.objects.player.PlayerObject; -import resources.objects.tangible.TangibleObject; -import resources.visitors.IDManagerVisitor; -import services.sui.SUIService.InputBoxType; -import services.sui.SUIWindow; -import services.sui.SUIWindow.SUICallback; -import services.sui.SUIWindow.Trigger; -import engine.clientdata.ClientFileManager; -import engine.clientdata.visitors.DatatableVisitor; -import engine.clients.Client; -import engine.resources.objects.SWGObject; -import engine.resources.service.INetworkDispatch; -import engine.resources.service.INetworkRemoteEvent; - -public class EntertainmentService implements INetworkDispatch { - - private NGECore core; - private final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1); - - private Vector buffBuilderSkills = new Vector(); - //FIXME: create a wrapper class for double key lookup maps - private ConcurrentHashMap performances = new ConcurrentHashMap(); - private ConcurrentHashMap performancesByIndex = new ConcurrentHashMap(); - private ConcurrentHashMap danceMap = new ConcurrentHashMap(); - - private ConcurrentHashMap designMap = new ConcurrentHashMap(); - - private Random ranWorkshop = new Random(); - - private Map performanceEffects = new ConcurrentHashMap(); - - public EntertainmentService(NGECore core) { - this.core = core; - populateSkillCaps(); - populatePerformanceTable(); - populatePerformanceEffects(); - registerCommands(); - loadCharacterCustomizationData(); - } - - @Override - public void insertOpcodes(Map swgOpcodes, Map objControllerOpcodes) { - objControllerOpcodes.put(ObjControllerOpcodes.IMAGE_DESIGN_CHANGE, new INetworkRemoteEvent() { - - @Override - public void handlePacket(IoSession session, IoBuffer data) throws Exception { - - data.order(ByteOrder.LITTLE_ENDIAN); - - Client client = core.getClient(session); - - if(client == null) - return; - - SWGObject sender = client.getParent(); - - if(sender == null) - return; - - ImageDesignMessage sentPacket = new ImageDesignMessage(); - sentPacket.deserialize(data); - - CreatureObject designTarget = (CreatureObject) core.objectService.getObject(sentPacket.getTargetId()); - CreatureObject designer = (CreatureObject) core.objectService.getObject(sentPacket.getDesignerId()); - - if (designTarget == null || designer == null) - return; - - if (designTarget.getClient() == null || designTarget.getClient().getSession() == null) - return; - - if (designer.getClient() == null || designer.getClient().getSession() == null) - return; - - Vector colorAttributes = sentPacket.getColorAttributes(); - Vector bodyAttributes = sentPacket.getBodyAttributes(); - // TODO: Attribute check for colors? - if (bodyAttributes != null) { - for (IDAttribute atr : bodyAttributes) { - //System.out.println("ATTRIBUTE: " + atr.getName() + " value of " + atr.getFloatValue()); - if (atr.getFloatValue() > 1f || atr.getFloatValue() < 0) { // RIP Height Exploit <3 - return; - } - } - } - - /*if (colorAttributes != null) { - for (IDAttribute atr : colorAttributes) { - System.out.println("COLOR ATTRIBUTE: " + atr.getName() + " value of " + atr.getValue()); - } - }*/ - - if (sentPacket.getTargetId() != sentPacket.getDesignerId()) { - - if (sentPacket.isCustomerAccepted() && sentPacket.isDesignerCommited()) { - System.out.print("Both Accepted!"); - - sentPacket.setEndMessage(true); - - int fee = sentPacket.getMoneyDemanded() + sentPacket.getMoneyOffered(); - if (fee > 0) { - int payersCash = designTarget.getCashCredits(); - - if (payersCash < fee) { - - if (designTarget != designer) { - ObjControllerMessage msg = new ObjControllerMessage(0x0B, sentPacket); - designTarget.getClient().getSession().write(msg.serialize()); - - // Window is closed already, so this shouldn't be necessary - //ObjControllerMessage designMsg = new ObjControllerMessage(0x0B, sentPacket); - //designer.getClient().getSession().write(designMsg.serialize()); - - designTarget.sendSystemMessage("You don't have enough credits to pay the fee.", (byte) 0); - designer.sendSystemMessage("Your target did not have the required payment fee", (byte) 0); - - } - }else { - // TODO: Apply customization - designTarget.setCashCredits(designTarget.getCashCredits() - fee); - designer.setCashCredits(designer.getCashCredits() + fee); - - handleImageDesign(designer, designTarget, colorAttributes, bodyAttributes, sentPacket.getHair(), sentPacket.getHoloEmote()); - - sentPacket.setEndMessage(true); - sentPacket.setObjectId(designTarget.getObjectId()); - - ObjControllerMessage msg = new ObjControllerMessage(0x0B, sentPacket); - designTarget.getClient().getSession().write(msg.serialize()); - } - } else { - handleImageDesign(designer, designTarget, colorAttributes, bodyAttributes, sentPacket.getHair(), sentPacket.getHoloEmote()); - sentPacket.setEndMessage(true); - sentPacket.setObjectId(designTarget.getObjectId()); - - ObjControllerMessage msg = new ObjControllerMessage(0x0B, sentPacket); - designTarget.getClient().getSession().write(msg.serialize()); - } - - } else if (sentPacket.getObjectId() == designTarget.getObjectId()) { - sentPacket.setObjectId(designer.getObjectId()); - - ObjControllerMessage msg = new ObjControllerMessage(0x0B, sentPacket); - designer.getClient().getSession().write(msg.serialize()); - - } else if (sentPacket.getObjectId() == designer.getObjectId()) { - sentPacket.setObjectId(designTarget.getObjectId()); - - ObjControllerMessage msg = new ObjControllerMessage(0x0B, sentPacket); - designTarget.getClient().getSession().write(msg.serialize()); - } - } else { - // No need to send a close packet message because the client automatically closes the ID window for the Desginer when they commit - if (sentPacket.isDesignerCommited()) - handleImageDesign(designer, designTarget, colorAttributes, bodyAttributes, sentPacket.getHair(), sentPacket.getHoloEmote()); - else - return; - } - } - - }); - - objControllerOpcodes.put(ObjControllerOpcodes.IMAGE_DESIGN_END, new INetworkRemoteEvent() { - - @Override - public void handlePacket(IoSession session, IoBuffer data) throws Exception { - - data.order(ByteOrder.LITTLE_ENDIAN); - - Client client = core.getClient(session); - - if(client == null) - return; - - SWGObject sender = client.getParent(); - - if(sender == null) - return; - - ImageDesignMessage sentPacket = new ImageDesignMessage(); - sentPacket.deserialize(data); - - if (sentPacket.getTargetId() == sentPacket.getDesignerId()) - return; - - if (sentPacket.getObjectId() == sentPacket.getDesignerId()) { - CreatureObject target = (CreatureObject) core.objectService.getObject(sentPacket.getTargetId()); - if (target == null) - return; - - sentPacket.setEndMessage(true); - sentPacket.setObjectId(target.getObjectId()); - ObjControllerMessage endMessage = new ObjControllerMessage(0x0B, sentPacket); - target.getClient().getSession().write(endMessage.serialize()); - - } else if (sentPacket.getObjectId() == sentPacket.getTargetId()) { - CreatureObject designer = (CreatureObject) core.objectService.getObject(sentPacket.getDesignerId()); - if (designer == null) - return; - - sentPacket.setEndMessage(true); - sentPacket.setObjectId(designer.getObjectId()); - ObjControllerMessage endMessage = new ObjControllerMessage(0x0B, sentPacket); - designer.getClient().getSession().write(endMessage.serialize()); - } - } - - }); - - objControllerOpcodes.put(ObjControllerOpcodes.BUFF_BUILDER_END, new INetworkRemoteEvent() { - - @Override - public void handlePacket(IoSession session, IoBuffer data) throws Exception { - - data.order(ByteOrder.LITTLE_ENDIAN); - - Client client = core.getClient(session); - - if(client == null) - return; - - SWGObject sender = client.getParent(); - - if(sender == null) - return; - - BuffBuilderEndMessage sentPacket = new BuffBuilderEndMessage(); - sentPacket.deserialize(data); - - SWGObject buffer = core.objectService.getObject(sentPacket.getBufferId()); - SWGObject buffRecipient = core.objectService.getObject(sentPacket.getBuffRecipientId()); - - if(buffer == null || buffRecipient == null) - return; - - // No need to send end packet when buffing yourself. - if (buffRecipient != buffer) { - if(buffRecipient.getClient() == null || buffRecipient.getClient().getSession() == null) - return; - - if (sender.getObjectId() == buffer.getObjectId()) { - // send close packet to recipient - BuffBuilderEndMessage end = new BuffBuilderEndMessage(sentPacket); - end.setObjectId(buffRecipient.getObjectId()); - - end.setBufferId(buffer.getObjectId()); - end.setBuffRecipientId(buffRecipient.getObjectId()); - - ObjControllerMessage closeMessage = new ObjControllerMessage(0x0B, end); - buffRecipient.getClient().getSession().write(closeMessage.serialize()); - - } - if (sender.getObjectId() == buffRecipient.getObjectId()) { - // send close packet to buffer - BuffBuilderEndMessage end = new BuffBuilderEndMessage(sentPacket); - end.setObjectId(buffer.getObjectId()); - - end.setBufferId(buffer.getObjectId()); - end.setBuffRecipientId(buffRecipient.getObjectId()); - - ObjControllerMessage closeMessage = new ObjControllerMessage(0x0B, end); - buffer.getClient().getSession().write(closeMessage.serialize()); - CreatureObject cre = (CreatureObject) buffer; - cre.sendSystemMessage("The buff recipient cancelled the buff builder session.", (byte) 0); - } - } - } - }); - - objControllerOpcodes.put(ObjControllerOpcodes.BUFF_BUILDER_CHANGE, new INetworkRemoteEvent() { - - @Override - public void handlePacket(IoSession session, IoBuffer data) throws Exception { - data.order(ByteOrder.LITTLE_ENDIAN); - - Client client = core.getClient(session); - - if(client == null) - return; - - SWGObject sender = client.getParent(); - - if(sender == null) - return; - - BuffBuilderChangeMessage sentPacket = new BuffBuilderChangeMessage(); - sentPacket.deserialize(data); - - Vector statBuffs = sentPacket.getStatBuffs(); - - CreatureObject buffer = (CreatureObject) core.objectService.getObject(sentPacket.getBufferId()); - CreatureObject buffRecipient = (CreatureObject) core.objectService.getObject(sentPacket.getBuffRecipientId()); - - if (buffer != buffRecipient) { - - BuffBuilderChangeMessage changeMessage = new BuffBuilderChangeMessage(); - changeMessage.setBuffCost(sentPacket.getBuffCost()); - changeMessage.setTime(sentPacket.getTime()); - changeMessage.setBufferId(buffer.getObjectId()); - changeMessage.setBuffRecipientId(buffRecipient.getObjectId()); - - if (!statBuffs.isEmpty()) - changeMessage.setStatBuffs(statBuffs); - - if (sentPacket.getAccepted() == true && sentPacket.getBuffRecipientAccepted() == 1) { - - if (sentPacket.getBuffCost() > 0) { - if (buffRecipient.getCashCredits() >= sentPacket.getBuffCost()) { - buffRecipient.setCashCredits(buffRecipient.getCashCredits() - sentPacket.getBuffCost()); - } else { - return; - } - } - - giveInspirationBuff(buffRecipient, buffer, statBuffs); - - BuffBuilderEndMessage endBuilder = new BuffBuilderEndMessage(changeMessage); - endBuilder.setObjectId(buffer.getObjectId()); - - BuffBuilderEndMessage endRecipient = new BuffBuilderEndMessage(changeMessage); - endRecipient.setObjectId(buffRecipient.getObjectId()); - - ObjControllerMessage closeBuilder = new ObjControllerMessage(0x0B, endBuilder); - buffer.getClient().getSession().write(closeBuilder.serialize()); - - ObjControllerMessage closeRecipient = new ObjControllerMessage(0x0B, endRecipient); - buffRecipient.getClient().getSession().write(closeRecipient.serialize()); - - } else if (sentPacket.getAccepted() == true && sentPacket.getBuffRecipientAccepted() == 0) { - changeMessage.setAccepted(true); - changeMessage.setObjectId(buffRecipient.getObjectId()); - - ObjControllerMessage objMsg = new ObjControllerMessage(0x0B, changeMessage); - buffRecipient.getClient().getSession().write(objMsg.serialize()); - } else { - changeMessage.setAccepted(false); - changeMessage.setObjectId(sentPacket.getBuffRecipientId()); - - ObjControllerMessage objMsg = new ObjControllerMessage(0x0B, changeMessage); - buffRecipient.getClient().getSession().write(objMsg.serialize()); - } - - } else { - if (sentPacket.getAccepted() == true) { - giveInspirationBuff(buffRecipient, buffer, statBuffs); - BuffBuilderEndMessage endBuilder = new BuffBuilderEndMessage(sentPacket); - endBuilder.setObjectId(buffer.getObjectId()); - - ObjControllerMessage objMsg = new ObjControllerMessage(0x0B, endBuilder); - buffRecipient.getClient().getSession().write(objMsg.serialize()); - } - } - } - - }); - } - - private void populatePerformanceTable() { - - try { - DatatableVisitor PerformanceVisitor = ClientFileManager.loadFile("datatables/performance/performance.iff", DatatableVisitor.class); - - //rformanceVisitor. - - for (int r = 0; r < PerformanceVisitor.getRowCount(); r++) { - Performance p = new Performance(); - - /* for (int j=0; j < PerformanceVisitor.getColumnCount(); j++) { - System.out.println(j + ": " + PerformanceVisitor.getObject(r, j)); - }*/ - - p.setPerformanceName( ( (String) PerformanceVisitor.getObject(r, 0) ).toLowerCase()); - p.setInstrumentAudioId((int) PerformanceVisitor.getObject(r, 1)); - p.setRequiredSong((String) PerformanceVisitor.getObject(r, 2)); - p.setRequiredInstrument((String) PerformanceVisitor.getObject(r, 3)); - p.setRequiredDance((String) PerformanceVisitor.getObject(r, 4)); - p.setDanceVisualId((int) PerformanceVisitor.getObject(r, 5)); - p.setActionPointsPerLoop((int) PerformanceVisitor.getObject(r, 6)); - p.setLoopDuration((float) PerformanceVisitor.getObject(r, 7)); - p.setType((int) PerformanceVisitor.getObject(r, 8)); - p.setBaseXp((int) PerformanceVisitor.getObject(r, 9)); - p.setFlourishXpMod((int) PerformanceVisitor.getObject(r, 10)); - p.setHealMindWound((int) PerformanceVisitor.getObject(r, 11)); - p.setHealShockWound((int) PerformanceVisitor.getObject(r, 12)); - p.setRequiredSkillMod((String) PerformanceVisitor.getObject(r, 13)); - p.setRequiredSkillModValue((int) PerformanceVisitor.getObject(r, 14)); - p.setMainloop((String) PerformanceVisitor.getObject(r, 15)); - p.setFlourish1((String) PerformanceVisitor.getObject(r, 16)); - p.setFlourish2((String) PerformanceVisitor.getObject(r, 17)); - p.setFlourish3((String) PerformanceVisitor.getObject(r, 18)); - p.setFlourish4((String) PerformanceVisitor.getObject(r, 19)); - p.setFlourish5((String) PerformanceVisitor.getObject(r, 20)); - p.setFlourish6((String) PerformanceVisitor.getObject(r, 21)); - p.setFlourish7((String) PerformanceVisitor.getObject(r, 22)); - p.setFlourish8((String) PerformanceVisitor.getObject(r, 23)); - p.setIntro((String) PerformanceVisitor.getObject(r, 24)); - p.setOutro((String) PerformanceVisitor.getObject(r, 25)); - p.setLineNumber(r); - - if (p.getType() == -1788534963) { - danceMap.put(new Integer(p.getDanceVisualId()), p); - } - performances.put(p.getPerformanceName(), p); - performancesByIndex.put(r, p); - } - - } catch (InstantiationException | IllegalAccessException e) { - e.printStackTrace(); - } - } - - private void populateSkillCaps() { - try { - DatatableVisitor buffBuilder = ClientFileManager.loadFile("datatables/buff/buff_builder.iff", DatatableVisitor.class); - - for (int r = 0; r < buffBuilder.getRowCount(); r++) { - String skillName = ((String) buffBuilder.getObject(r, 0)); - String category = ((String) buffBuilder.getObject(r, 1)); - String statAffects = ((String) buffBuilder.getObject(r, 2)); - int maxTimes = ((int) buffBuilder.getObject(r, 3)); - int cost = ((int) buffBuilder.getObject(r, 4)); - int affectAmount = ((int) buffBuilder.getObject(r, 5)); - String requiredExpertise = ((String) buffBuilder.getObject(r, 6)); - - BuffBuilder item = new BuffBuilder(); - item.setStatName(skillName); - item.setCategory(category); - item.setStatAffects(statAffects); - item.setMaxTimesApplied(maxTimes); - item.setCost(cost); - item.setAffectAmount(affectAmount); - item.setRequiredExpertise(requiredExpertise); - - buffBuilderSkills.add(item); - } - } catch (InstantiationException | IllegalAccessException e) { - e.printStackTrace(); - } - } - - private void populatePerformanceEffects() { - try { - DatatableVisitor effects = ClientFileManager.loadFile("datatables/performance/perform_effect.iff", DatatableVisitor.class); - - for (int r = 0; r < effects.getRowCount(); r++) { - String effectName = ((String) effects.getObject(r, 0)); - String performanceType = ((String) effects.getObject(r, 1)); - int requiredSkillModValue = ((int) effects.getObject(r, 2)); - Boolean requiredPerforming = ((Boolean) effects.getObject(r, 3)); - int targetType = ((int) effects.getObject(r, 4)); - float effectDuration = ((float) effects.getObject(r, 5)); - int effectActionCost = ((int) effects.getObject(r, 6)); - - PerformanceEffect item = new PerformanceEffect(); - item.setEffectActionCost(effectActionCost); - item.setEffectDuration(effectDuration); - item.setName(effectName); - item.setPerformanceType(performanceType); - item.setRequiredPerforming(requiredPerforming); - item.setRequiredSkillModValue(requiredSkillModValue); - item.setTargetType(targetType); - - performanceEffects.put(effectName.toLowerCase(), item); - - } - } catch (InstantiationException | IllegalAccessException e) { - e.printStackTrace(); - } - } - - private void registerCommands() { - core.commandService.registerCommand("bandflourish"); - core.commandService.registerCommand("flourish"); - core.commandService.registerAlias("flo","flourish"); - core.commandService.registerCommand("groupdance"); - core.commandService.registerCommand("startdance"); - core.commandService.registerCommand("stopdance"); - core.commandService.registerCommand("watch"); - //core.commandService.registerCommand("stopwatching"); // SWGList error - core.commandService.registerCommand("holoEmote"); - core.commandService.registerCommand("covercharge"); - //core.commandService.registerCommand("en_holographic_recall"); - //core.commandService.registerCommand("en_holographic_image"); - core.commandService.registerCommand("imagedesign"); - // TODO: Add /bandsolo, /bandpause, /changeBandMusic, /changeDance, /changeGroupDance, /changeMusic - - // Entertainer Effects - core.commandService.registerCommand("centerStage"); - core.commandService.registerCommand("colorSwirl"); - core.commandService.registerCommand("colorlights"); - core.commandService.registerCommand("floorLights"); // referred to also as Dance Floor - core.commandService.registerCommand("dazzle"); - core.commandService.registerCommand("distract"); - core.commandService.registerCommand("featuredSolo"); - core.commandService.registerCommand("firejet"); - core.commandService.registerCommand("firejet2"); - core.commandService.registerCommand("laserShow"); - core.commandService.registerCommand("smokebomb"); - core.commandService.registerCommand("spotlight"); - core.commandService.registerCommand("ventriloquism"); - } - - public void giveInspirationBuff(CreatureObject reciever, CreatureObject buffer, Vector buffVector) { - - Vector availableStats = buffBuilderSkills; - Vector stats = new Vector(); - - for (BuffItem item : buffVector) { - for(BuffBuilder builder : availableStats) { - if(builder.getStatName().equalsIgnoreCase(item.getSkillName())) { - if(builder.getMaxTimesApplied() < item.getInvested()) - return; - - // Ent. Expertise Percent + (invested points * affect amount) = stat - int bonusPoints = (int) (builder.getAffectAmount() *((float) item.getEntertainerBonus()/100f)); - int affectTotal = bonusPoints + (item.getInvested() * builder.getAffectAmount()); - - BuffItem stat = new BuffItem(builder.getStatAffects(), item.getInvested(), item.getEntertainerBonus()); - stat.setAffectAmount(affectTotal); - - stats.add(stat); - } - } - } - - reciever.setAttachment("buffWorkshop", stats); - - if (buffer == reciever) - reciever.setAttachment("inspireDuration", 215); - - //PlayerObject rPlayer = (PlayerObject) reciever.getSlottedObject("ghost"); - - //long timeStamp = 0; - //if (reciever.getAttachment("buffWorkshopTimestamp") != null) - //timeStamp = (long) reciever.getAttachment("buffWorkshopTimestamp"); - - core.buffService.addBuffToCreature(reciever, "buildabuff_inspiration", buffer); - /*if (core.buffService.addBuffToCreature(reciever, "buildabuff_inspiration", buffer) && !rPlayer.getProfession().equals("entertainer_1a")) { - if (timeStamp == 0 || (System.currentTimeMillis() - timeStamp > 86400000)) { - float random = ranWorkshop.nextFloat(); - if (random < 0.75f) { - - if(rPlayer.getProfession().contains("trader")) { core.collectionService.addCollection(buffer, "prof_trader"); } - - else { - core.collectionService.addCollection(buffer, rPlayer.getProfession()); - } - } - } else { buffer.sendSystemMessage("@collection:buffed_too_soon", (byte) 0); } - reciever.setAttachment("buffWorkshopTimestamp", System.currentTimeMillis()); - }*/ - } - - public int getDanceVisualId(String danceName) { - Performance p = performances.get(danceName); - - //if 0 , then it's no dance. need to handle that in the script. - return ((p == null) ? 0 : p.getDanceVisualId()); - } - - public Map getAvailableDances(CreatureObject actor) { - - Map dances = new HashMap(); - for (int index : danceMap.keySet()) { - if (!canDance(actor, danceMap.get(index) )) { continue; } - dances.put( new Long( danceMap.get(index).getDanceVisualId() ), danceMap.get(index).getPerformanceName() ); - } - - return dances; - - } - - public boolean isDance(int visualId) { - return ( danceMap.get(visualId) != null ) ; - } - - public boolean canDance(CreatureObject actor, Performance dance) { - if (actor.hasAbility(dance.getRequiredDance())) { - return true; - } - return false; - } - - public boolean canDance(CreatureObject actor, int visualId) { - if (!isDance(visualId)) { return false; } - return canDance(actor, danceMap.get(visualId)); - } - - public Performance getDance(int visualId) { - return danceMap.get(visualId); - } - - public Performance getPerformance(String name) { - return performances.get(name); - } - - public Performance getPerformanceByIndex(int index) { - return performancesByIndex.get(index); - } - - public Map getPerformanceEffects() { - return performanceEffects; - } - - public void startPerformance(CreatureObject actor, int performanceId, int performanceCounter, String skillName, boolean isDance) { - actor.setPerformanceId(performanceId, isDance); - actor.setPerformanceCounter(performanceCounter); - actor.setCurrentAnimation(skillName); - actor.setPerformanceType(isDance); - - actor.startPerformance(); - } - - public void startPerformanceExperience(final CreatureObject entertainer) { - final ScheduledFuture experienceTask = scheduler.scheduleAtFixedRate(() -> { - - Performance p = performancesByIndex.get(entertainer.getPerformanceId()); - if (p == null) { - entertainer.setFlourishCount(0); - return; - } - - int floXP = p.getFlourishXpMod(); - int floCount = entertainer.getFlourishCount(); - - //FIXME: this is not an accurate implementation yet. It needs group bonuses and other things. - int XP = (int) Math.round( ((floCount > 2) ? 2 : floCount) * floXP * 3.8 ); - - entertainer.setFlourishCount(0); - core.playerService.giveExperience(entertainer, XP); - - }, 10000, 10000, TimeUnit.MILLISECONDS); - - entertainer.setEntertainerExperience(experienceTask); - - } - - public void startSpectating(final CreatureObject spectator, final CreatureObject performer, boolean spectateType) { - - // visual - if (spectator.getPerformanceWatchee() == performer && spectateType) - spectator.getPerformanceWatchee().removeAudience(spectator); - // music - else if (spectator.getPerformanceListenee() == performer && !spectateType) - spectator.getPerformanceListenee().removeAudience(spectator); - - spectator.setPerformanceWatchee(performer); - performer.addAudience(spectator); - spectator.setMoodAnimation("entertained"); - - final ScheduledFuture spectatorTask = scheduler.scheduleAtFixedRate(() -> { - - if (spectator.getPosition().getDistance2D(performer.getWorldPosition()) > (float) 70) { - - if(((performer.getPerformanceType()) ? "dance" : "music").equals("dance")) { - spectator.setPerformanceWatchee(null); - spectator.sendSystemMessage("You stop watching " + performer.getCustomName() + " because " + performer.getCustomName() - + " is out of range.", (byte) 0); - } - else { - spectator.setPerformanceListenee(null); - spectator.sendSystemMessage("You stop listening to " + performer.getCustomName() + " because " + performer.getCustomName() - + " is out of range.", (byte) 0); - } - spectator.setMoodAnimation("neutral"); - performer.removeAudience(spectator); - - if (spectator.getInspirationTick().cancel(true)) - spectator.getSpectatorTask().cancel(true); - } - - }, 2, 2, TimeUnit.SECONDS); - - spectator.setSpectatorTask(spectatorTask); - - if(((PlayerObject)performer.getSlottedObject("ghost")).getProfession().equals("entertainer_1a")) { - handleInspirationTicks(spectator, performer); - } - - if(spectateType) - spectator.sendSystemMessage("You start watching " + performer.getCustomName() + ".", (byte) 0); - else - spectator.sendSystemMessage("You start listening to " + performer.getCustomName() + ".", (byte) 0); - - } - - public void performFlourish(final CreatureObject performer, int flourish) { - - if (performer.getFlourishCount() > 0 || performer.isPerformingFlourish()) { - performer.sendSystemMessage("@performance:flourish_wait_self", (byte) 0); - return; - } - Performance performance = getPerformanceByIndex(performer.getPerformanceId()); - - if(performance == null) - return; - - String anmFlo = "skill_action_" + flourish; - - if (flourish == 9) - anmFlo = "mistake"; - - performer.setFlourishCount(1); - performer.setPerformingFlourish(true); - performer.sendSystemMessage("@performance:flourish_perform", (byte) 0); - performer.doSkillAnimation(anmFlo); - - scheduler.schedule(() -> { - performer.setFlourishCount(0); - performer.setPerformingFlourish(false); - }, (long) performance.getLoopDuration(), TimeUnit.SECONDS); - } - - public boolean performEffect(final CreatureObject performer, String command, String effect, TangibleObject target) { - PerformanceEffect pEffect = performanceEffects.get(command.toLowerCase()); - - if(pEffect == null) - return false; - - String performance = (performer.getPerformanceType()) ? "dance" : "music"; - - if(performer.isPerformingEffect()) { - performer.sendSystemMessage("@performance:effect_wait_self", (byte) 0); - return false; - } - - if (performer.getPosture() != Posture.SkillAnimating) { - performer.sendSystemMessage("@performance:effect_not_performing", (byte) 0); - return false; - } - - if(performance.equals("dance") && !pEffect.isDance() || performance.equals("music") && !pEffect.isMusic()) { - performer.sendSystemMessage("@performance:effect_not_performing_correct", (byte) 0); - return false; - } - - if(performer.getAction() < pEffect.getEffectActionCost()) { - performer.sendSystemMessage("@performance:effect_too_tired", (byte) 0); - return false; - } - - performer.setAction(performer.getAction() - pEffect.getEffectActionCost()); - - performer.setPerformingEffect(true); - - if(target != null) - target.playEffectObject(effect, ""); - - else - performer.playEffectObject(effect, ""); - - scheduler.schedule(() -> { - performer.setPerformingEffect(false); - }, (long) pEffect.getEffectDuration(), TimeUnit.SECONDS); - - return true; - } - - public void handleInspirationTicks(final CreatureObject spectator, final CreatureObject performer) { - // http://youtu.be/WqyAde-oC7o?t=11m14s << Player watching entertainer (Has ring only, no pet, + 15 min ticks) - // TODO: Camp/Cantina checks for expertise and duration bonus %. Right now only using basic values. - final ScheduledFuture inspirationTick = scheduler.scheduleAtFixedRate(() -> { - - int time = 0; // current buff duration time (minutes) - int buffCap = 215; // 5 hours 35 minutes - 2 hours (buff duration increase bonus) << Taken from video, doesn't account for performance bonuses etc. - - if (spectator.getAttachment("inspireDuration") != null) - time+= (int) spectator.getAttachment("inspireDuration"); - - if (performer.getSkillMod("expertise_en_inspire_buff_duration_increase") != null) { - SkillMod durationMod = performer.getSkillMod("expertise_en_inspire_buff_duration_increase"); - buffCap += durationMod.getBase() + durationMod.getModifier(); - } - - if (time >= buffCap) { - spectator.setAttachment("inspireDuration", buffCap); // incase someone went over cap - spectator.getInspirationTick().cancel(true); - } else { - int entTick = 10; - if (performer.getSkillMod("expertise_en_inspire_pulse_duration_increase") != null) { - SkillMod pulseMod = performer.getSkillMod("expertise_en_inspire_pulse_duration_increase"); - entTick += pulseMod.getBase() + pulseMod.getModifier(); - } - - int duration = (time + entTick); // minutes - int hMinutes = MathUtilities.secondsToHourMinutes(duration * 60); - int hours = MathUtilities.secondsToWholeHours(duration * 60); - - spectator.showFlyText("spam", "buff_duration_tick_observer", String.valueOf(hours) + " hours , " + hMinutes + " minutes ", 0, (float) 0.66, new RGB(255, 182, 193), 3, 78); - - spectator.setAttachment("inspireDuration", duration); - //System.out.println("Inspire Duration: " + spectator.getAttachment("inspireDuration") + " on " + spectator.getCustomName()); - } - - }, 10, 10, TimeUnit.SECONDS); - spectator.setInspirationTick(inspirationTick); - } - - public void handleCoverCharge(final CreatureObject actor, final CreatureObject performer) { - final int charge = performer.getCoverCharge(); - - if (charge == 0) - return; - - else { - SUIWindow notification = core.suiService.createMessageBox(InputBoxType.INPUT_BOX_OK, "Cover Charge", performer.getCustomName() + - " has a cover charge of " + performer.getCoverCharge() + ". Do you wish to pay it?", actor, performer, (float) 30); - Vector returnParams = new Vector(); - - returnParams.add("btnOk:Text"); - - notification.addHandler(0, "", Trigger.TRIGGER_OK, returnParams, (owner, eventType, returnList) -> { - if (eventType == 0) { - if (charge > actor.getCashCredits()) { - actor.sendSystemMessage("You do not have enough credits to cover the charge.", (byte) 0); // TODO: Find the message in the STF files. - return; - } else{ - actor.setCashCredits(actor.getCashCredits() - charge); - actor.sendSystemMessage("You payed the cover charge of " + charge + " to " + performer.getCustomName(), (byte) 0); // TODO: Find the message in the STF files. - performer.setCashCredits(performer.getCashCredits() + charge); - - startSpectating(actor, performer, performer.getPerformanceType()); - - } - } - }); - core.suiService.openSUIWindow(notification); - } - } - - private void handleImageDesign(CreatureObject designer, CreatureObject designTarget, Vector colorAttributes, Vector bodyAttributes, String hairTemplate, String holoEmote) { - - if (hairTemplate != null && !hairTemplate.equals("")) { - if(!hairTemplate.startsWith("object/tangible/hair/")) - return; - String sharedHairTemplate = hairTemplate.replace("/hair_", "/shared_hair_"); - TangibleObject hairObject = (TangibleObject) core.objectService.createObject(sharedHairTemplate, designTarget.getPlanet()); - - if (hairObject == null) - return; - - TangibleObject oldHair = (TangibleObject) designTarget.getSlottedObject("hair"); - if (oldHair == null) - return; - core.objectService.destroyObject(oldHair); - - designTarget.add(hairObject); - - designTarget.addObjectToEquipList(hairObject); - - } - - if (bodyAttributes != null) { - for (IDAttribute atr : bodyAttributes) { - if (atr.getName().equals("height")) - designTarget.setHeight(atr.getFloatValue()); - - // TODO: Body Attributes - } - } - - if (colorAttributes != null) { - for (IDAttribute atr : colorAttributes) { - if (atr.getName().equals("color_hair")){ - // TODO: Color Attributes - } - } - } - if (holoEmote != null) { - PlayerObject player = (PlayerObject) designTarget.getSlottedObject("ghost"); - if (player != null) { - player.setHoloEmote(holoEmote); - player.setHoloEmoteUses(20); - designTarget.sendSystemMessage("@image_designer:new_holoemote", (byte) 0); - } - } - - } - - private void loadCharacterCustomizationData() { - try { - IDManagerVisitor visitor = ClientFileManager.loadFile("customization/customization_id_manager.iff", IDManagerVisitor.class); - - designMap = visitor.getCustomizationMap(); - - } catch (InstantiationException | IllegalAccessException e) { - e.printStackTrace(); - } - } - - public String getCustomizationString(int number){ - synchronized (designMap) { - for (Entry entry : designMap.entrySet()) { - if (entry.getValue().intValue() == number) { - return entry.getKey(); - } - } - } - return ""; - } - - public int getCustomizationValue(String customizationString) { - synchronized(designMap){ - for(Entry entry : designMap.entrySet()) { - if (entry.getKey().equals(customizationString)) { - return entry.getValue().intValue(); - } - } - } - return 0; - } - - @Override - public void shutdown() { - - } - -} +package services; + +import java.nio.ByteOrder; +import java.util.HashMap; +import java.util.Iterator; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Random; +import java.util.Vector; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.Executors; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.TimeUnit; + +import main.NGECore; + +import org.apache.mina.core.buffer.IoBuffer; +import org.apache.mina.core.session.IoSession; + +import protocol.swg.ObjControllerMessage; +import protocol.swg.OkMessage; +import protocol.swg.PlayClientEffectObjectMessage; +import protocol.swg.objectControllerObjects.BuffBuilderChangeMessage; +import protocol.swg.objectControllerObjects.BuffBuilderEndMessage; +import protocol.swg.objectControllerObjects.BuffBuilderStartMessage; +import protocol.swg.objectControllerObjects.ImageDesignMessage; +import resources.common.BuffBuilder; +import resources.common.Console; +import resources.common.IDAttribute; +import resources.common.MathUtilities; +import resources.common.ObjControllerOpcodes; +import resources.common.Performance; +import resources.common.PerformanceEffect; +import resources.common.RGB; +import resources.common.StringUtilities; +import resources.datatables.Posture; +import resources.objects.Buff; +import resources.objects.BuffItem; +import resources.objects.SWGList; +import resources.objects.SkillMod; +import resources.objects.creature.CreatureObject; +import resources.objects.player.PlayerObject; +import resources.objects.tangible.TangibleObject; +import resources.visitors.IDManagerVisitor; +import services.sui.SUIService.InputBoxType; +import services.sui.SUIWindow; +import services.sui.SUIWindow.SUICallback; +import services.sui.SUIWindow.Trigger; +import engine.clientdata.ClientFileManager; +import engine.clientdata.visitors.DatatableVisitor; +import engine.clients.Client; +import engine.resources.objects.SWGObject; +import engine.resources.service.INetworkDispatch; +import engine.resources.service.INetworkRemoteEvent; + +public class EntertainmentService implements INetworkDispatch { + + private NGECore core; + private final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1); + + private Vector buffBuilderSkills = new Vector(); + //FIXME: create a wrapper class for double key lookup maps + private ConcurrentHashMap performances = new ConcurrentHashMap(); + private ConcurrentHashMap performancesByIndex = new ConcurrentHashMap(); + private ConcurrentHashMap danceMap = new ConcurrentHashMap(); + + private ConcurrentHashMap designMap = new ConcurrentHashMap(); + + //private Random ranWorkshop = new Random(); + + private Map performanceEffects = new ConcurrentHashMap(); + + public EntertainmentService(NGECore core) { + this.core = core; + populateSkillCaps(); + populatePerformanceTable(); + populatePerformanceEffects(); + registerCommands(); + loadCharacterCustomizationData(); + } + + @Override + public void insertOpcodes(Map swgOpcodes, Map objControllerOpcodes) { + objControllerOpcodes.put(ObjControllerOpcodes.IMAGE_DESIGN_CHANGE, new INetworkRemoteEvent() { + + @Override + public void handlePacket(IoSession session, IoBuffer data) throws Exception { + + data.order(ByteOrder.LITTLE_ENDIAN); + + Client client = core.getClient(session); + + if(client == null) + return; + + SWGObject sender = client.getParent(); + + if(sender == null) + return; + + ImageDesignMessage sentPacket = new ImageDesignMessage(); + sentPacket.deserialize(data); + + CreatureObject designTarget = (CreatureObject) core.objectService.getObject(sentPacket.getTargetId()); + CreatureObject designer = (CreatureObject) core.objectService.getObject(sentPacket.getDesignerId()); + + if (designTarget == null || designer == null) + return; + + if (designTarget.getClient() == null || designTarget.getClient().getSession() == null) + return; + + if (designer.getClient() == null || designer.getClient().getSession() == null) + return; + + Vector colorAttributes = sentPacket.getColorAttributes(); + Vector bodyAttributes = sentPacket.getBodyAttributes(); + // TODO: Attribute check for colors? + if (bodyAttributes != null) { + for (IDAttribute atr : bodyAttributes) { + //System.out.println("ATTRIBUTE: " + atr.getName() + " value of " + atr.getFloatValue()); + if (atr.getFloatValue() > 1f || atr.getFloatValue() < 0) { // RIP Height Exploit <3 + return; + } + } + } + + /*if (colorAttributes != null) { + for (IDAttribute atr : colorAttributes) { + System.out.println("COLOR ATTRIBUTE: " + atr.getName() + " value of " + atr.getValue()); + } + }*/ + + if (sentPacket.getTargetId() != sentPacket.getDesignerId()) { + + if (sentPacket.isCustomerAccepted() && sentPacket.isDesignerCommited()) { + System.out.print("Both Accepted!"); + + sentPacket.setEndMessage(true); + + int fee = sentPacket.getMoneyDemanded() + sentPacket.getMoneyOffered(); + if (fee > 0) { + int payersCash = designTarget.getCashCredits(); + + if (payersCash < fee) { + + if (designTarget != designer) { + ObjControllerMessage msg = new ObjControllerMessage(0x0B, sentPacket); + designTarget.getClient().getSession().write(msg.serialize()); + + // Window is closed already, so this shouldn't be necessary + //ObjControllerMessage designMsg = new ObjControllerMessage(0x0B, sentPacket); + //designer.getClient().getSession().write(designMsg.serialize()); + + designTarget.sendSystemMessage("You don't have enough credits to pay the fee.", (byte) 0); + designer.sendSystemMessage("Your target did not have the required payment fee", (byte) 0); + + } + }else { + // TODO: Apply customization + designTarget.setCashCredits(designTarget.getCashCredits() - fee); + designer.setCashCredits(designer.getCashCredits() + fee); + + handleImageDesign(designer, designTarget, colorAttributes, bodyAttributes, sentPacket.getHair(), sentPacket.getHoloEmote()); + + sentPacket.setEndMessage(true); + sentPacket.setObjectId(designTarget.getObjectId()); + + ObjControllerMessage msg = new ObjControllerMessage(0x0B, sentPacket); + designTarget.getClient().getSession().write(msg.serialize()); + } + } else { + handleImageDesign(designer, designTarget, colorAttributes, bodyAttributes, sentPacket.getHair(), sentPacket.getHoloEmote()); + sentPacket.setEndMessage(true); + sentPacket.setObjectId(designTarget.getObjectId()); + + ObjControllerMessage msg = new ObjControllerMessage(0x0B, sentPacket); + designTarget.getClient().getSession().write(msg.serialize()); + } + + } else if (sentPacket.getObjectId() == designTarget.getObjectId()) { + sentPacket.setObjectId(designer.getObjectId()); + + ObjControllerMessage msg = new ObjControllerMessage(0x0B, sentPacket); + designer.getClient().getSession().write(msg.serialize()); + + } else if (sentPacket.getObjectId() == designer.getObjectId()) { + sentPacket.setObjectId(designTarget.getObjectId()); + + ObjControllerMessage msg = new ObjControllerMessage(0x0B, sentPacket); + designTarget.getClient().getSession().write(msg.serialize()); + } + } else { + // No need to send a close packet message because the client automatically closes the ID window for the Desginer when they commit + if (sentPacket.isDesignerCommited()) + handleImageDesign(designer, designTarget, colorAttributes, bodyAttributes, sentPacket.getHair(), sentPacket.getHoloEmote()); + else + return; + } + } + + }); + + objControllerOpcodes.put(ObjControllerOpcodes.IMAGE_DESIGN_END, new INetworkRemoteEvent() { + + @Override + public void handlePacket(IoSession session, IoBuffer data) throws Exception { + + data.order(ByteOrder.LITTLE_ENDIAN); + + Client client = core.getClient(session); + + if(client == null) + return; + + SWGObject sender = client.getParent(); + + if(sender == null) + return; + + ImageDesignMessage sentPacket = new ImageDesignMessage(); + sentPacket.deserialize(data); + + if (sentPacket.getTargetId() == sentPacket.getDesignerId()) + return; + + if (sentPacket.getObjectId() == sentPacket.getDesignerId()) { + CreatureObject target = (CreatureObject) core.objectService.getObject(sentPacket.getTargetId()); + if (target == null) + return; + + sentPacket.setEndMessage(true); + sentPacket.setObjectId(target.getObjectId()); + ObjControllerMessage endMessage = new ObjControllerMessage(0x0B, sentPacket); + target.getClient().getSession().write(endMessage.serialize()); + + } else if (sentPacket.getObjectId() == sentPacket.getTargetId()) { + CreatureObject designer = (CreatureObject) core.objectService.getObject(sentPacket.getDesignerId()); + if (designer == null) + return; + + sentPacket.setEndMessage(true); + sentPacket.setObjectId(designer.getObjectId()); + ObjControllerMessage endMessage = new ObjControllerMessage(0x0B, sentPacket); + designer.getClient().getSession().write(endMessage.serialize()); + } + } + + }); + + objControllerOpcodes.put(ObjControllerOpcodes.BUFF_BUILDER_END, new INetworkRemoteEvent() { + + @Override + public void handlePacket(IoSession session, IoBuffer data) throws Exception { + + data.order(ByteOrder.LITTLE_ENDIAN); + + Client client = core.getClient(session); + + if(client == null) + return; + + SWGObject sender = client.getParent(); + + if(sender == null) + return; + + BuffBuilderEndMessage sentPacket = new BuffBuilderEndMessage(); + sentPacket.deserialize(data); + + SWGObject buffer = core.objectService.getObject(sentPacket.getBufferId()); + SWGObject buffRecipient = core.objectService.getObject(sentPacket.getBuffRecipientId()); + + if(buffer == null || buffRecipient == null) + return; + + // No need to send end packet when buffing yourself. + if (buffRecipient != buffer) { + if(buffRecipient.getClient() == null || buffRecipient.getClient().getSession() == null) + return; + + if (sender.getObjectId() == buffer.getObjectId()) { + // send close packet to recipient + BuffBuilderEndMessage end = new BuffBuilderEndMessage(sentPacket); + end.setObjectId(buffRecipient.getObjectId()); + + end.setBufferId(buffer.getObjectId()); + end.setBuffRecipientId(buffRecipient.getObjectId()); + + ObjControllerMessage closeMessage = new ObjControllerMessage(0x0B, end); + buffRecipient.getClient().getSession().write(closeMessage.serialize()); + + } + if (sender.getObjectId() == buffRecipient.getObjectId()) { + // send close packet to buffer + BuffBuilderEndMessage end = new BuffBuilderEndMessage(sentPacket); + end.setObjectId(buffer.getObjectId()); + + end.setBufferId(buffer.getObjectId()); + end.setBuffRecipientId(buffRecipient.getObjectId()); + + ObjControllerMessage closeMessage = new ObjControllerMessage(0x0B, end); + buffer.getClient().getSession().write(closeMessage.serialize()); + CreatureObject cre = (CreatureObject) buffer; + cre.sendSystemMessage("The buff recipient cancelled the buff builder session.", (byte) 0); + } + } + } + }); + + objControllerOpcodes.put(ObjControllerOpcodes.BUFF_BUILDER_CHANGE, new INetworkRemoteEvent() { + + @Override + public void handlePacket(IoSession session, IoBuffer data) throws Exception { + data.order(ByteOrder.LITTLE_ENDIAN); + + Client client = core.getClient(session); + + if(client == null) + return; + + SWGObject sender = client.getParent(); + + if(sender == null) + return; + + BuffBuilderChangeMessage sentPacket = new BuffBuilderChangeMessage(); + sentPacket.deserialize(data); + + Vector statBuffs = sentPacket.getStatBuffs(); + + CreatureObject buffer = (CreatureObject) core.objectService.getObject(sentPacket.getBufferId()); + CreatureObject buffRecipient = (CreatureObject) core.objectService.getObject(sentPacket.getBuffRecipientId()); + + if (buffer != buffRecipient) { + + BuffBuilderChangeMessage changeMessage = new BuffBuilderChangeMessage(); + changeMessage.setBuffCost(sentPacket.getBuffCost()); + changeMessage.setTime(sentPacket.getTime()); + changeMessage.setBufferId(buffer.getObjectId()); + changeMessage.setBuffRecipientId(buffRecipient.getObjectId()); + + if (!statBuffs.isEmpty()) + changeMessage.setStatBuffs(statBuffs); + + if (sentPacket.getAccepted() == true && sentPacket.getBuffRecipientAccepted() == 1) { + + if (sentPacket.getBuffCost() > 0) { + if (buffRecipient.getCashCredits() >= sentPacket.getBuffCost()) { + buffRecipient.setCashCredits(buffRecipient.getCashCredits() - sentPacket.getBuffCost()); + } else { + return; + } + } + + giveInspirationBuff(buffRecipient, buffer, statBuffs); + + BuffBuilderEndMessage endBuilder = new BuffBuilderEndMessage(changeMessage); + endBuilder.setObjectId(buffer.getObjectId()); + + BuffBuilderEndMessage endRecipient = new BuffBuilderEndMessage(changeMessage); + endRecipient.setObjectId(buffRecipient.getObjectId()); + + ObjControllerMessage closeBuilder = new ObjControllerMessage(0x0B, endBuilder); + buffer.getClient().getSession().write(closeBuilder.serialize()); + + ObjControllerMessage closeRecipient = new ObjControllerMessage(0x0B, endRecipient); + buffRecipient.getClient().getSession().write(closeRecipient.serialize()); + + } else if (sentPacket.getAccepted() == true && sentPacket.getBuffRecipientAccepted() == 0) { + changeMessage.setAccepted(true); + changeMessage.setObjectId(buffRecipient.getObjectId()); + + ObjControllerMessage objMsg = new ObjControllerMessage(0x0B, changeMessage); + buffRecipient.getClient().getSession().write(objMsg.serialize()); + } else { + changeMessage.setAccepted(false); + changeMessage.setObjectId(sentPacket.getBuffRecipientId()); + + ObjControllerMessage objMsg = new ObjControllerMessage(0x0B, changeMessage); + buffRecipient.getClient().getSession().write(objMsg.serialize()); + } + + } else { + if (sentPacket.getAccepted() == true) { + giveInspirationBuff(buffRecipient, buffer, statBuffs); + BuffBuilderEndMessage endBuilder = new BuffBuilderEndMessage(sentPacket); + endBuilder.setObjectId(buffer.getObjectId()); + + ObjControllerMessage objMsg = new ObjControllerMessage(0x0B, endBuilder); + buffRecipient.getClient().getSession().write(objMsg.serialize()); + } + } + } + + }); + } + + private void populatePerformanceTable() { + + try { + DatatableVisitor PerformanceVisitor = ClientFileManager.loadFile("datatables/performance/performance.iff", DatatableVisitor.class); + + //rformanceVisitor. + + for (int r = 0; r < PerformanceVisitor.getRowCount(); r++) { + Performance p = new Performance(); + + /* for (int j=0; j < PerformanceVisitor.getColumnCount(); j++) { + System.out.println(j + ": " + PerformanceVisitor.getObject(r, j)); + }*/ + + p.setPerformanceName( ( (String) PerformanceVisitor.getObject(r, 0) ).toLowerCase()); + p.setInstrumentAudioId((int) PerformanceVisitor.getObject(r, 1)); + p.setRequiredSong((String) PerformanceVisitor.getObject(r, 2)); + p.setRequiredInstrument((String) PerformanceVisitor.getObject(r, 3)); + p.setRequiredDance((String) PerformanceVisitor.getObject(r, 4)); + p.setDanceVisualId((int) PerformanceVisitor.getObject(r, 5)); + p.setActionPointsPerLoop((int) PerformanceVisitor.getObject(r, 6)); + p.setLoopDuration((float) PerformanceVisitor.getObject(r, 7)); + p.setType((int) PerformanceVisitor.getObject(r, 8)); + p.setBaseXp((int) PerformanceVisitor.getObject(r, 9)); + p.setFlourishXpMod((int) PerformanceVisitor.getObject(r, 10)); + p.setHealMindWound((int) PerformanceVisitor.getObject(r, 11)); + p.setHealShockWound((int) PerformanceVisitor.getObject(r, 12)); + p.setRequiredSkillMod((String) PerformanceVisitor.getObject(r, 13)); + p.setRequiredSkillModValue((int) PerformanceVisitor.getObject(r, 14)); + p.setMainloop((String) PerformanceVisitor.getObject(r, 15)); + p.setFlourish1((String) PerformanceVisitor.getObject(r, 16)); + p.setFlourish2((String) PerformanceVisitor.getObject(r, 17)); + p.setFlourish3((String) PerformanceVisitor.getObject(r, 18)); + p.setFlourish4((String) PerformanceVisitor.getObject(r, 19)); + p.setFlourish5((String) PerformanceVisitor.getObject(r, 20)); + p.setFlourish6((String) PerformanceVisitor.getObject(r, 21)); + p.setFlourish7((String) PerformanceVisitor.getObject(r, 22)); + p.setFlourish8((String) PerformanceVisitor.getObject(r, 23)); + p.setIntro((String) PerformanceVisitor.getObject(r, 24)); + p.setOutro((String) PerformanceVisitor.getObject(r, 25)); + p.setLineNumber(r); + + if (p.getType() == -1788534963) { + danceMap.put(new Integer(p.getDanceVisualId()), p); + } + performances.put(p.getPerformanceName(), p); + performancesByIndex.put(r, p); + } + + } catch (InstantiationException | IllegalAccessException e) { + e.printStackTrace(); + } + } + + private void populateSkillCaps() { + try { + DatatableVisitor buffBuilder = ClientFileManager.loadFile("datatables/buff/buff_builder.iff", DatatableVisitor.class); + + for (int r = 0; r < buffBuilder.getRowCount(); r++) { + String skillName = ((String) buffBuilder.getObject(r, 0)); + String category = ((String) buffBuilder.getObject(r, 1)); + String statAffects = ((String) buffBuilder.getObject(r, 2)); + int maxTimes = ((int) buffBuilder.getObject(r, 3)); + int cost = ((int) buffBuilder.getObject(r, 4)); + int affectAmount = ((int) buffBuilder.getObject(r, 5)); + String requiredExpertise = ((String) buffBuilder.getObject(r, 6)); + + BuffBuilder item = new BuffBuilder(); + item.setStatName(skillName); + item.setCategory(category); + item.setStatAffects(statAffects); + item.setMaxTimesApplied(maxTimes); + item.setCost(cost); + item.setAffectAmount(affectAmount); + item.setRequiredExpertise(requiredExpertise); + + buffBuilderSkills.add(item); + } + } catch (InstantiationException | IllegalAccessException e) { + e.printStackTrace(); + } + } + + private void populatePerformanceEffects() { + try { + DatatableVisitor effects = ClientFileManager.loadFile("datatables/performance/perform_effect.iff", DatatableVisitor.class); + + for (int r = 0; r < effects.getRowCount(); r++) { + String effectName = ((String) effects.getObject(r, 0)); + String performanceType = ((String) effects.getObject(r, 1)); + int requiredSkillModValue = ((int) effects.getObject(r, 2)); + Boolean requiredPerforming = ((Boolean) effects.getObject(r, 3)); + int targetType = ((int) effects.getObject(r, 4)); + float effectDuration = ((float) effects.getObject(r, 5)); + int effectActionCost = ((int) effects.getObject(r, 6)); + + PerformanceEffect item = new PerformanceEffect(); + item.setEffectActionCost(effectActionCost); + item.setEffectDuration(effectDuration); + item.setName(effectName); + item.setPerformanceType(performanceType); + item.setRequiredPerforming(requiredPerforming); + item.setRequiredSkillModValue(requiredSkillModValue); + item.setTargetType(targetType); + + performanceEffects.put(effectName.toLowerCase(), item); + + } + } catch (InstantiationException | IllegalAccessException e) { + e.printStackTrace(); + } + } + + private void registerCommands() { + core.commandService.registerCommand("bandflourish"); + core.commandService.registerCommand("flourish"); + core.commandService.registerAlias("flo","flourish"); + core.commandService.registerCommand("groupdance"); + core.commandService.registerCommand("startdance"); + core.commandService.registerCommand("stopdance"); + core.commandService.registerCommand("watch"); + core.commandService.registerCommand("stopwatching"); + core.commandService.registerCommand("holoEmote"); + core.commandService.registerCommand("covercharge"); + //core.commandService.registerCommand("en_holographic_recall"); + //core.commandService.registerCommand("en_holographic_image"); + core.commandService.registerCommand("imagedesign"); + // TODO: Add /bandsolo, /bandpause, /changeBandMusic, /changeDance, /changeGroupDance, /changeMusic + + // Entertainer Effects + core.commandService.registerCommand("centerStage"); + core.commandService.registerCommand("colorSwirl"); + core.commandService.registerCommand("colorlights"); + core.commandService.registerCommand("floorLights"); // referred to also as Dance Floor + core.commandService.registerCommand("dazzle"); + core.commandService.registerCommand("distract"); + core.commandService.registerCommand("featuredSolo"); + core.commandService.registerCommand("firejet"); + core.commandService.registerCommand("firejet2"); + core.commandService.registerCommand("laserShow"); + core.commandService.registerCommand("smokebomb"); + core.commandService.registerCommand("spotlight"); + core.commandService.registerCommand("ventriloquism"); + } + + public void giveInspirationBuff(CreatureObject reciever, CreatureObject buffer, Vector buffVector) { + + Vector availableStats = buffBuilderSkills; + Vector stats = new Vector(); + + for (BuffItem item : buffVector) { + for(BuffBuilder builder : availableStats) { + if(builder.getStatName().equalsIgnoreCase(item.getSkillName())) { + if(builder.getMaxTimesApplied() < item.getInvested()) + return; + + // Ent. Expertise Percent + (invested points * affect amount) = stat + int bonusPoints = (int) (builder.getAffectAmount() *((float) item.getEntertainerBonus()/100f)); + int affectTotal = bonusPoints + (item.getInvested() * builder.getAffectAmount()); + + BuffItem stat = new BuffItem(builder.getStatAffects(), item.getInvested(), item.getEntertainerBonus()); + stat.setAffectAmount(affectTotal); + + stats.add(stat); + } + } + } + + reciever.setAttachment("buffWorkshop", stats); + + if (buffer == reciever) + reciever.setAttachment("inspireDuration", 215); + + //PlayerObject rPlayer = (PlayerObject) reciever.getSlottedObject("ghost"); + + //long timeStamp = 0; + //if (reciever.getAttachment("buffWorkshopTimestamp") != null) + //timeStamp = (long) reciever.getAttachment("buffWorkshopTimestamp"); + + if (reciever.hasBuff("buildabuff_inspiration")) + core.buffService.removeBuffFromCreature(reciever, reciever.getBuffByName("buildabuff_inspiration")); + + core.buffService.addBuffToCreature(reciever, "buildabuff_inspiration", buffer); + /*if (core.buffService.addBuffToCreature(reciever, "buildabuff_inspiration", buffer) && !rPlayer.getProfession().equals("entertainer_1a")) { + if (timeStamp == 0 || (System.currentTimeMillis() - timeStamp > 86400000)) { + float random = ranWorkshop.nextFloat(); + if (random < 0.75f) { + + if(rPlayer.getProfession().contains("trader")) { core.collectionService.addCollection(buffer, "prof_trader"); } + + else { + core.collectionService.addCollection(buffer, rPlayer.getProfession()); + } + } + } else { buffer.sendSystemMessage("@collection:buffed_too_soon", (byte) 0); } + reciever.setAttachment("buffWorkshopTimestamp", System.currentTimeMillis()); + }*/ + } + + public int getDanceVisualId(String danceName) { + Performance p = performances.get(danceName); + + //if 0 , then it's no dance. need to handle that in the script. + return ((p == null) ? 0 : p.getDanceVisualId()); + } + + public Map getAvailableDances(CreatureObject actor) { + + Map dances = new HashMap(); + for (int index : danceMap.keySet()) { + if (!canDance(actor, danceMap.get(index) )) { continue; } + dances.put( new Long( danceMap.get(index).getDanceVisualId() ), danceMap.get(index).getPerformanceName() ); + } + + return dances; + + } + + public boolean isDance(int visualId) { + return ( danceMap.get(visualId) != null ) ; + } + + public boolean canDance(CreatureObject actor, Performance dance) { + if (actor.hasAbility(dance.getRequiredDance())) { + return true; + } + return false; + } + + public boolean canDance(CreatureObject actor, int visualId) { + if (!isDance(visualId)) { return false; } + return canDance(actor, danceMap.get(visualId)); + } + + public Performance getDance(int visualId) { + return danceMap.get(visualId); + } + + public Performance getPerformance(String name) { + return performances.get(name); + } + + public Performance getPerformanceByIndex(int index) { + return performancesByIndex.get(index); + } + + public Map getPerformanceEffects() { + return performanceEffects; + } + + public void startPerformance(CreatureObject actor, int performanceId, int performanceCounter, String skillName, boolean isDance) { + actor.setPerformanceId(performanceId, isDance); + actor.setPerformanceCounter(performanceCounter); + actor.setCurrentAnimation(skillName); + actor.setPerformanceType(isDance); + + actor.startPerformance(); + } + + public void startPerformanceExperience(final CreatureObject entertainer) { + final ScheduledFuture experienceTask = scheduler.scheduleAtFixedRate(() -> { + + Performance p = performancesByIndex.get(entertainer.getPerformanceId()); + if (p == null) { + entertainer.setFlourishCount(0); + return; + } + + int floXP = p.getFlourishXpMod(); + int floCount = entertainer.getFlourishCount(); + + //FIXME: this is not an accurate implementation yet. It needs group bonuses and other things. + int XP = (int) Math.round( ((floCount > 2) ? 2 : floCount) * floXP * 3.8 ); + + entertainer.setFlourishCount(0); + core.playerService.giveExperience(entertainer, XP); + + }, 10000, 10000, TimeUnit.MILLISECONDS); + + entertainer.setEntertainerExperience(experienceTask); + + } + + public void startSpectating(final CreatureObject spectator, final CreatureObject performer, boolean spectateType) { + + // visual + if (spectator.getPerformanceWatchee() == performer && spectateType) + spectator.getPerformanceWatchee().removeSpectator(spectator); + // music + else if (spectator.getPerformanceListenee() == performer && !spectateType) + spectator.getPerformanceListenee().removeSpectator(spectator); + + spectator.setPerformanceWatchee(performer); + performer.addSpectator(spectator); + spectator.setMoodAnimation("entertained"); + + final ScheduledFuture spectatorTask = scheduler.scheduleAtFixedRate(() -> { + + if (spectator.getPosition().getDistance2D(performer.getWorldPosition()) > (float) 70) { + + if(((performer.getPerformanceType()) ? "dance" : "music").equals("dance")) { + spectator.setPerformanceWatchee(null); + spectator.sendSystemMessage("You stop watching " + performer.getCustomName() + " because " + performer.getCustomName() + + " is out of range.", (byte) 0); + } + else { + spectator.setPerformanceListenee(null); + spectator.sendSystemMessage("You stop listening to " + performer.getCustomName() + " because " + performer.getCustomName() + + " is out of range.", (byte) 0); + } + spectator.setMoodAnimation("neutral"); + performer.removeSpectator(spectator); + + if (spectator.getInspirationTick().cancel(true)) + spectator.getSpectatorTask().cancel(true); + } + + }, 2, 2, TimeUnit.SECONDS); + + spectator.setSpectatorTask(spectatorTask); + + if(((PlayerObject)performer.getSlottedObject("ghost")).getProfession().equals("entertainer_1a")) { + handleInspirationTicks(spectator, performer); + } + + if(spectateType) + spectator.sendSystemMessage("You start watching " + performer.getCustomName() + ".", (byte) 0); + else + spectator.sendSystemMessage("You start listening to " + performer.getCustomName() + ".", (byte) 0); + + } + + public void performFlourish(final CreatureObject performer, int flourish) { + + if (performer.getFlourishCount() > 0 || performer.isPerformingFlourish()) { + performer.sendSystemMessage("@performance:flourish_wait_self", (byte) 0); + return; + } + Performance performance = getPerformanceByIndex(performer.getPerformanceId()); + + if(performance == null) + return; + + String anmFlo = "skill_action_" + flourish; + + if (flourish == 9) + anmFlo = "mistake"; + + performer.setFlourishCount(1); + performer.setPerformingFlourish(true); + performer.sendSystemMessage("@performance:flourish_perform", (byte) 0); + performer.doSkillAnimation(anmFlo); + + scheduler.schedule(() -> { + performer.setFlourishCount(0); + performer.setPerformingFlourish(false); + }, (long) performance.getLoopDuration(), TimeUnit.SECONDS); + } + + public boolean performEffect(final CreatureObject performer, String command, String effect, TangibleObject target) { + PerformanceEffect pEffect = performanceEffects.get(command.toLowerCase()); + + if(pEffect == null) + return false; + + String performance = (performer.getPerformanceType()) ? "dance" : "music"; + + if(performer.isPerformingEffect()) { + performer.sendSystemMessage("@performance:effect_wait_self", (byte) 0); + return false; + } + + if (performer.getPosture() != Posture.SkillAnimating) { + performer.sendSystemMessage("@performance:effect_not_performing", (byte) 0); + return false; + } + + if(performance.equals("dance") && !pEffect.isDance() || performance.equals("music") && !pEffect.isMusic()) { + performer.sendSystemMessage("@performance:effect_not_performing_correct", (byte) 0); + return false; + } + + if(performer.getAction() < pEffect.getEffectActionCost()) { + performer.sendSystemMessage("@performance:effect_too_tired", (byte) 0); + return false; + } + + performer.setAction(performer.getAction() - pEffect.getEffectActionCost()); + + performer.setPerformingEffect(true); + + if(target != null) + target.playEffectObject(effect, ""); + + else + performer.playEffectObject(effect, ""); + + scheduler.schedule(() -> { + performer.setPerformingEffect(false); + }, (long) pEffect.getEffectDuration(), TimeUnit.SECONDS); + + return true; + } + + public void handleInspirationTicks(final CreatureObject spectator, final CreatureObject performer) { + // http://youtu.be/WqyAde-oC7o?t=11m14s << Player watching entertainer (Has ring only, no pet, + 15 min ticks) + // TODO: Camp/Cantina checks for expertise and duration bonus %. Right now only using basic values. + final ScheduledFuture inspirationTick = scheduler.scheduleAtFixedRate(() -> { + + int time = 0; // current buff duration time (minutes) + int buffCap = 215; // 5 hours 35 minutes - 2 hours (buff duration increase bonus) << Taken from video, doesn't account for performance bonuses etc. + + if (spectator.getAttachment("inspireDuration") != null) + time+= (int) spectator.getAttachment("inspireDuration"); + + if (performer.getSkillMod("expertise_en_inspire_buff_duration_increase") != null) { + SkillMod durationMod = performer.getSkillMod("expertise_en_inspire_buff_duration_increase"); + buffCap += durationMod.getBase() + durationMod.getModifier(); + } + + if (time >= buffCap) { + spectator.setAttachment("inspireDuration", buffCap); // incase someone went over cap + spectator.getInspirationTick().cancel(true); + } else { + int entTick = 10; + if (performer.getSkillMod("expertise_en_inspire_pulse_duration_increase") != null) { + SkillMod pulseMod = performer.getSkillMod("expertise_en_inspire_pulse_duration_increase"); + entTick += pulseMod.getBase() + pulseMod.getModifier(); + } + + int duration = (time + entTick); // minutes + int hMinutes = MathUtilities.secondsToHourMinutes(duration * 60); + int hours = MathUtilities.secondsToWholeHours(duration * 60); + + spectator.showFlyText("spam", "buff_duration_tick_observer", String.valueOf(hours) + " hours , " + hMinutes + " minutes ", 0, (float) 0.66, new RGB(255, 182, 193), 3, 78); + + spectator.setAttachment("inspireDuration", duration); + //System.out.println("Inspire Duration: " + spectator.getAttachment("inspireDuration") + " on " + spectator.getCustomName()); + } + + }, 10, 10, TimeUnit.SECONDS); + spectator.setInspirationTick(inspirationTick); + } + + public void handleCoverCharge(final CreatureObject actor, final CreatureObject performer) { + final int charge = performer.getCoverCharge(); + + if (charge == 0) + return; + + else { + SUIWindow notification = core.suiService.createMessageBox(InputBoxType.INPUT_BOX_OK, "Cover Charge", performer.getCustomName() + + " has a cover charge of " + performer.getCoverCharge() + ". Do you wish to pay it?", actor, performer, (float) 30); + Vector returnParams = new Vector(); + + returnParams.add("btnOk:Text"); + + notification.addHandler(0, "", Trigger.TRIGGER_OK, returnParams, (owner, eventType, returnList) -> { + if (eventType == 0) { + if (charge > actor.getCashCredits()) { + actor.sendSystemMessage("You do not have enough credits to cover the charge.", (byte) 0); // TODO: Find the message in the STF files. + return; + } else{ + actor.setCashCredits(actor.getCashCredits() - charge); + actor.sendSystemMessage("You payed the cover charge of " + charge + " to " + performer.getCustomName(), (byte) 0); // TODO: Find the message in the STF files. + performer.setCashCredits(performer.getCashCredits() + charge); + + startSpectating(actor, performer, performer.getPerformanceType()); + + } + } + }); + core.suiService.openSUIWindow(notification); + } + } + + private void handleImageDesign(CreatureObject designer, CreatureObject designTarget, Vector colorAttributes, Vector bodyAttributes, String hairTemplate, String holoEmote) { + + if (hairTemplate != null && !hairTemplate.equals("")) { + if(!hairTemplate.startsWith("object/tangible/hair/")) + return; + String sharedHairTemplate = hairTemplate.replace("/hair_", "/shared_hair_"); + TangibleObject hairObject = (TangibleObject) core.objectService.createObject(sharedHairTemplate, designTarget.getPlanet()); + + if (hairObject == null) + return; + + TangibleObject oldHair = (TangibleObject) designTarget.getSlottedObject("hair"); + if (oldHair == null) + return; + core.objectService.destroyObject(oldHair); + + designTarget.add(hairObject); + + designTarget.addObjectToEquipList(hairObject); + + } + + if (bodyAttributes != null) { + for (IDAttribute atr : bodyAttributes) { + if (atr.getName().equals("height")) + designTarget.setHeight(atr.getFloatValue()); + + // TODO: Body Attributes + } + } + + if (colorAttributes != null) { + for (IDAttribute atr : colorAttributes) { + if (atr.getName().equals("color_hair")){ + // TODO: Color Attributes + } + } + } + if (holoEmote != null) { + PlayerObject player = (PlayerObject) designTarget.getSlottedObject("ghost"); + if (player != null) { + player.setHoloEmote(holoEmote); + player.setHoloEmoteUses(20); + designTarget.sendSystemMessage("@image_designer:new_holoemote", (byte) 0); + } + } + + } + + private void loadCharacterCustomizationData() { + try { + IDManagerVisitor visitor = ClientFileManager.loadFile("customization/customization_id_manager.iff", IDManagerVisitor.class); + + designMap = visitor.getCustomizationMap(); + + } catch (InstantiationException | IllegalAccessException e) { + e.printStackTrace(); + } + } + + public String getCustomizationString(int number){ + synchronized (designMap) { + for (Entry entry : designMap.entrySet()) { + if (entry.getValue().intValue() == number) { + return entry.getKey(); + } + } + } + return ""; + } + + public int getCustomizationValue(String customizationString) { + synchronized(designMap){ + for(Entry entry : designMap.entrySet()) { + if (entry.getKey().equals(customizationString)) { + return entry.getValue().intValue(); + } + } + } + return 0; + } + + @Override + public void shutdown() { + + } + +} diff --git a/src/services/EquipmentService.java b/src/services/EquipmentService.java index afe5b694..de9c7bb4 100644 --- a/src/services/EquipmentService.java +++ b/src/services/EquipmentService.java @@ -21,10 +21,20 @@ ******************************************************************************/ package services; +import java.io.IOException; +import java.nio.file.FileVisitResult; +import java.nio.file.FileVisitor; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.nio.file.SimpleFileVisitor; +import java.nio.file.attribute.BasicFileAttributes; import java.util.Map; import java.util.Map.Entry; +import java.util.concurrent.ConcurrentHashMap; import java.util.TreeMap; +import org.python.antlr.ast.Str; import org.python.core.Py; import org.python.core.PyObject; @@ -35,10 +45,14 @@ import engine.resources.objects.SWGObject; import engine.resources.service.INetworkDispatch; import engine.resources.service.INetworkRemoteEvent; import resources.objects.player.PlayerObject; +import resources.objects.tangible.TangibleObject; +import services.equipment.BonusSetTemplate; +import services.spawn.MobileTemplate; public class EquipmentService implements INetworkDispatch { private NGECore core; + private Map bonusSetTemplates = new ConcurrentHashMap(); public EquipmentService(NGECore core) { this.core = core; @@ -54,6 +68,202 @@ public class EquipmentService implements INetworkDispatch { } + public boolean canEquip(CreatureObject actor, SWGObject item) { + // TODO: Species restrictions + // TODO: Gender restrictions + + boolean result = true; + + if (item == null) + return false; + + if (item.getAttributes().toString().contains("cat_armor")) + { + if (actor.hasAbility("wear_all_armor")) result = true; // Change to "wear_all_armor" ability instead of lvl 22 + else return false; + } + + if (item.getStringAttribute("class_required") != null) { + String profession = ((PlayerObject) actor.getSlottedObject("ghost")).getProfession(); + if (item.getStringAttribute("class_required").contentEquals(core.playerService.getFormalProfessionName(profession)) || item.getStringAttribute("class_required").contentEquals("None")) + result = true; + else + return false; + } + + if (item.getStringAttribute("faction_restriction") != null) + if (item.getStringAttribute("faction_restriction").toLowerCase().contentEquals(actor.getFaction()) && actor.getFactionStatus() >= FactionStatus.Combatant) + result = true; + else + return false; + + if (item.getAttributes().containsKey("required_combat_level")) + { + if (actor.getLevel() >= item.getIntAttribute("required_combat_level")) + result = true; + else + return false; + } + + if(item.getAttachment("unity") != null) + { + actor.sendSystemMessage("@unity:cannot_remove_ring", (byte) 0); + return false; + } + + return result; + } + + public void equip(CreatureObject actor, SWGObject item) + { + String template = ((item.getAttachment("customServerTemplate") == null) ? item.getTemplate() : (item.getTemplate().split("shared_")[0] + "shared_" + ((String) item.getAttachment("customServerTemplate")) + ".iff")); + String serverTemplate = template.replace(".iff", ""); + + PyObject func = core.scriptService.getMethod("scripts/" + serverTemplate.split("shared_" , 2)[0].replace("shared_", ""), serverTemplate.split("shared_" , 2)[1], "equip"); + if(func != null) func.__call__(Py.java2py(core), Py.java2py(actor), Py.java2py(item)); + + // TODO: bio-link (assign it by objectID with setAttachment and then just display the customName for that objectID). + + if(!actor.getEquipmentList().contains(item)) + { + actor.addObjectToEquipList(item); + processItemAtrributes(actor, item, true); + } +} + + public void unequip(CreatureObject actor, SWGObject item) + { + String template = ((item.getAttachment("customServerTemplate") == null) ? item.getTemplate() : (item.getTemplate().split("shared_")[0] + "shared_" + ((String) item.getAttachment("customServerTemplate")) + ".iff")); + String serverTemplate = template.replace(".iff", ""); + + PyObject func = core.scriptService.getMethod("scripts/" + serverTemplate.split("shared_" , 2)[0].replace("shared_", ""), serverTemplate.split("shared_" , 2)[1], "unequip"); + if(func != null) func.__call__(Py.java2py(core), Py.java2py(actor), Py.java2py(item)); + + + if(actor.getEquipmentList().contains(item)) + { + actor.removeObjectFromEquipList(item); + processItemAtrributes(actor, item, false); + } + } + + public void processItemAtrributes(CreatureObject creature, SWGObject item, boolean equipping) + { + // TODO: crit enhancement from crafted weapons + // TODO: check for armor category in order to add resistance to certain DoT types + + Map attributes = new TreeMap(item.getAttributes()); + + calculateArmorProtection(creature, equipping); + + if(equipping) + { + if(item.getStringAttribute("cat_wpn_damage.wpn_category") != null) creature.addSkillMod("display_only_critical", getWeaponCriticalChance(creature, item)); + if(item.getStringAttribute("proc_name") != null) core.buffService.addBuffToCreature(creature, item.getStringAttribute("proc_name").replace("@ui_buff:", ""), creature); + + for(Entry e : attributes.entrySet()) + { + if(e.getKey().startsWith("cat_skill_mod_bonus.@stat_n:")) + { + core.skillModService.addSkillMod(creature, e.getKey().replace("cat_skill_mod_bonus.@stat_n:", ""), Integer.parseInt((String) e.getValue())); + } + + if(e.getKey().startsWith("cat_stat_mod_bonus.@stat_n:")) + { + core.skillModService.addSkillMod(creature, e.getKey().replace("cat_stat_mod_bonus.@stat_n:", ""), Integer.parseInt((String) e.getValue())); + } + + if(e.getKey().startsWith("cat_attrib_mod_bonus.attr_health")) + { + creature.setMaxHealth(creature.getMaxHealth() + Integer.parseInt((String) e.getValue())); + } + + if(e.getKey().startsWith("cat_attrib_mod_bonus.attr_action")) + { + creature.setMaxAction(creature.getMaxAction() + Integer.parseInt((String) e.getValue())); + } + } + } + else + { + if(item.getStringAttribute("cat_wpn_damage.wpn_category") != null) creature.deductSkillMod("display_only_critical", getWeaponCriticalChance(creature, item)); + if(item.getStringAttribute("proc_name") != null) core.buffService.removeBuffFromCreatureByName(creature, item.getStringAttribute("proc_name").replace("@ui_buff:", "")); + + for(Entry e : attributes.entrySet()) + { + if(e.getKey().startsWith("cat_skill_mod_bonus.@stat_n:")) + { + core.skillModService.deductSkillMod(creature, e.getKey().replace("cat_skill_mod_bonus.@stat_n:", ""), Integer.parseInt((String) e.getValue())); + } + if(e.getKey().startsWith("cat_stat_mod_bonus.@stat_n:")) + { + core.skillModService.deductSkillMod(creature, e.getKey().replace("cat_stat_mod_bonus.@stat_n:", ""), Integer.parseInt((String) e.getValue())); + } + + if(e.getKey().startsWith("cat_attrib_mod_bonus.attr_health")) + { + creature.setMaxHealth(creature.getMaxHealth() - Integer.parseInt((String) e.getValue())); + } + if(e.getKey().startsWith("cat_attrib_mod_bonus.attr_action")) + { + creature.setMaxAction(creature.getMaxAction() - Integer.parseInt((String) e.getValue())); + } + } + } + + if(item.getAttachment("setBonus") != null) + { + BonusSetTemplate bonus = bonusSetTemplates.get((String)item.getAttachment("setBonus")); + bonus.callScript(creature); + } + } + + private void calculateArmorProtection(CreatureObject creature, boolean equipping) + { + int wornArmourPieces = 0, forceProtection = 0; + Map protection = new TreeMap(); + + for(SWGObject item : creature.getEquipmentList()) + { + Map attributes = new TreeMap(item.getAttributes()); + boolean incPieceCount = false; + + for(Entry e : attributes.entrySet()) + { + if(item.getStringAttribute("protection_level") != null) forceProtection = getForceProtection(item); + + if(e.getKey().startsWith("cat_armor_standard_protection")) + { + String protectionType = e.getKey().replace("cat_armor_standard_protection.armor_eff_", ""); + float modifier = Float.parseFloat(core.scriptService.getMethod("scripts/equipment/", "slot_protection", creature.getSlotNameForObject(item)).__call__().asString()) / 100; + Float protectionAmount = Float.parseFloat((String) e.getValue()) * modifier; + + if(protection.containsKey(protectionType)) protection.replace(protectionType, protection.get(protectionType) + protectionAmount); + else protection.put(protectionType, protectionAmount); + incPieceCount = true; + } + else if(e.getKey().startsWith("cat_armor_special_protection")) + { + String protectionType = e.getKey().replace("cat_armor_special_protection.special_protection_type_", ""); + float modifier = Float.parseFloat(core.scriptService.getMethod("scripts/equipment/", "slot_protection", creature.getSlotNameForObject(item)).__call__().asString()) / 100; + Float protectionAmount = Float.parseFloat((String) e.getValue()) * modifier; + + if(protection.containsKey(protectionType)) protection.replace(protectionType, protection.get(protectionType) + protectionAmount); + else protection.put(protectionType, protectionAmount); + incPieceCount = true; + } + } + if(incPieceCount) wornArmourPieces++; + } + + for(Entry e : protection.entrySet()) + { + core.skillModService.deductSkillMod(creature, e.getKey(), creature.getSkillModBase(e.getKey())); + core.skillModService.addSkillMod(creature, e.getKey(), forceProtection); + if(wornArmourPieces >= 3) core.skillModService.addSkillMod(creature, e.getKey(), (int) e.getValue().floatValue()); + } + } + private int getWeaponCriticalChance(CreatureObject actor, SWGObject item) { int weaponCriticalChance = 0; String weaponCriticalSkillMod = (core.scriptService.getMethod("scripts/equipment/", "weapon_critical", item.getStringAttribute("cat_wpn_damage.wpn_category")).__call__().asString()); @@ -69,208 +279,31 @@ public class EquipmentService implements INetworkDispatch { return weaponCriticalChance; } - - private void addWeaponCriticalChance(CreatureObject actor, SWGObject item) { - actor.addSkillMod("display_only_critical", getWeaponCriticalChance(actor, item)); - } - - private void deductWeaponCriticalChance(CreatureObject actor, SWGObject item) { - actor.deductSkillMod("display_only_critical", getWeaponCriticalChance(actor, item)); - } - - public String getFormalProfessionName(String stfName) { - String formalName = ""; - - switch (stfName) { - case "force_sensitive_1a": formalName = "Jedi"; break; - case "bounty_hunter_1a": formalName = "Bounty Hunter"; break; - case "officer_1a": formalName = "Officer"; break; - case "smuggler_1a": formalName = "Smuggler"; break; - case "entertainer_1a": formalName = "Entertainer"; break; - case "spy_1a": formalName = "Spy"; break; - case "medic_1a": formalName = "Medic"; break; - case "commando_1a": formalName = "Commando"; break; - default: formalName = "Trader"; break; // Ziggy: Trader profession names are a bit irregular, so this is used. - - } - return formalName; - } - - public boolean canEquip(CreatureObject actor, SWGObject item) { - boolean result = true; - - if (item == null) - return false; - - if (item.getAttributes().toString().contains("cat_armor")) - if (actor.getLevel() >= 22) - result = true; - else - return false; - - if (item.getStringAttribute("class_required") != null) { - String profession = ((PlayerObject) actor.getSlottedObject("ghost")).getProfession(); - if (item.getStringAttribute("class_required").contentEquals(getFormalProfessionName(profession)) || item.getStringAttribute("class_required").contentEquals("None")) - result = true; - else - return false; - } - - if (item.getStringAttribute("faction_restriction") != null) - if (item.getStringAttribute("faction_restriction").toLowerCase().contentEquals(actor.getFaction()) && actor.getFactionStatus() >= FactionStatus.Combatant) - result = true; - else - return false; - - if (item.getAttributes().containsKey("required_combat_level")) - if (actor.getLevel() >= item.getIntAttribute("required_combat_level")) - result = true; - else - return false; - - return result; - } - - private float calculateArmorProtection (float protection, String slotName) { - return protection *= (Float.parseFloat(core.scriptService.getMethod("scripts/equipment/", "slot_protection", slotName).__call__().asString()) / 100); - } - - private void addArmorProtection(CreatureObject actor, String protectionType, float protection, String slotName) { - actor.addSkillMod(protectionType, (int) (calculateArmorProtection(protection, slotName))); - } - - private void deductArmorProtection(CreatureObject actor, String protectionType, float protection, String slotName) { - actor.deductSkillMod(protectionType, (int) calculateArmorProtection(protection, slotName)); - } - - private void addForceProtection(CreatureObject actor, SWGObject item) { - actor.addSkillMod("kinetic", getForceProtection(item)); - actor.addSkillMod("energy", getForceProtection(item)); - actor.addSkillMod("heat", getForceProtection(item)); - actor.addSkillMod("cold", getForceProtection(item)); - actor.addSkillMod("acid", getForceProtection(item)); - actor.addSkillMod("electricity", getForceProtection(item)); - } - - private void deductForceProtection(CreatureObject actor, SWGObject item) { - actor.deductSkillMod("kinetic", getForceProtection(item)); - actor.deductSkillMod("energy", getForceProtection(item)); - actor.deductSkillMod("heat", getForceProtection(item)); - actor.deductSkillMod("cold", getForceProtection(item)); - actor.deductSkillMod("acid", getForceProtection(item)); - actor.deductSkillMod("electricity", getForceProtection(item)); - } - private int getForceProtection(SWGObject item) { return core.scriptService.getMethod("scripts/equipment/", "force_protection", item.getAttachment("type") + "_" + item.getStringAttribute("protection_level")).__call__().asInt(); } - public void equip(CreatureObject actor, SWGObject item) { - String template = ((item.getAttachment("customServerTemplate") == null) ? item.getTemplate() : (item.getTemplate().split("shared_")[0] + "shared_" + ((String) item.getAttachment("customServerTemplate")) + ".iff")); - String serverTemplate = template.replace(".iff", ""); - PyObject func = core.scriptService.getMethod("scripts/" + serverTemplate.split("shared_" , 2)[0].replace("shared_", ""), serverTemplate.split("shared_" , 2)[1], "equip"); - if(func != null) - func.__call__(Py.java2py(core), Py.java2py(actor), Py.java2py(item)); - - if (item.getStringAttribute("protection_level") != null) - addForceProtection(actor, item); - - // TODO: faction restrictions - You had to be a Combatant as minimum in order to EQUIP an item. - // TODO: Species restrictions - // TODO: Gender restrictions - // TODO: crit enhancement from crafted weapons - // TODO: check for armor category in order to add resistance to certain DoT types - // TODO: Calculate actual armor values (REMINDER: Check if the player is wearing a jedi robe/cloak (look for force protection intensity). If they are, they shouldn't receive any additional protection from other items with armour.) - // TODO: bio-link (assign it by objectID with setAttachment and then just display the customName for that objectID). - - if(item.getStringAttribute("cat_wpn_damage.wpn_category") != null) - addWeaponCriticalChance(actor, item); - - Map attributes = new TreeMap(item.getAttributes()); - - for(Entry e : attributes.entrySet()) { - if(e.getKey().startsWith("cat_skill_mod_bonus.@stat_n:")) { - core.skillModService.addSkillMod(actor, e.getKey().replace("cat_skill_mod_bonus.@stat_n:", ""), Integer.parseInt((String) e.getValue())); - } - - if(e.getKey().startsWith("cat_stat_mod_bonus.@stat_n:")) { - core.skillModService.addSkillMod(actor, e.getKey().replace("cat_stat_mod_bonus.@stat_n:", ""), Integer.parseInt((String) e.getValue())); - } - - if(e.getKey().startsWith("cat_armor_standard_protection")) { - addArmorProtection(actor, e.getKey().replace("cat_armor_standard_protection.armor_eff_", ""), Float.parseFloat((String) e.getValue()), actor.getSlotNameForObject(item)); - } - - if(e.getKey().startsWith("cat_armor_special_protection")) { - addArmorProtection(actor, e.getKey().replace("cat_armor_special_protection.special_protection_type_", ""), Float.parseFloat((String) e.getValue()), actor.getSlotNameForObject(item)); - } - - if(e.getKey().startsWith("cat_attrib_mod_bonus.attr_health")) { - actor.setMaxHealth(actor.getMaxHealth() + Integer.parseInt((String) e.getValue())); - } - - if(e.getKey().startsWith("cat_attrib_mod_bonus.attr_action")) { - actor.setMaxAction(actor.getMaxAction() + Integer.parseInt((String) e.getValue())); - } - - } - - if(!actor.getEquipmentList().contains(item)) - actor.addObjectToEquipList(item); - -} - + public void addBonusSetTemplate(BonusSetTemplate bonusSet) + { + bonusSetTemplates.put(bonusSet.getName(), bonusSet); + } - public void unequip(CreatureObject actor, SWGObject item) { - String template = ((item.getAttachment("customServerTemplate") == null) ? item.getTemplate() : (item.getTemplate().split("shared_")[0] + "shared_" + ((String) item.getAttachment("customServerTemplate")) + ".iff")); - String serverTemplate = template.replace(".iff", ""); - PyObject func = core.scriptService.getMethod("scripts/" + serverTemplate.split("shared_" , 2)[0].replace("shared_", ""), serverTemplate.split("shared_" , 2)[1], "unequip"); - if(func != null) - func.__call__(Py.java2py(core), Py.java2py(actor), Py.java2py(item)); - - if (item.getStringAttribute("protection_level") != null) - deductForceProtection(actor, item); - - if(item.getStringAttribute("cat_wpn_damage.wpn_category") != null) - deductWeaponCriticalChance(actor, item); - - Map attributes = new TreeMap(item.getAttributes()); - - for(Entry e : attributes.entrySet()) { - - if(e.getKey().startsWith("cat_skill_mod_bonus.@stat_n:")) { - core.skillModService.deductSkillMod(actor, e.getKey().replace("cat_skill_mod_bonus.@stat_n:", ""), Integer.parseInt((String) e.getValue())); - } - if(e.getKey().startsWith("cat_stat_mod_bonus.@stat_n:")) { - core.skillModService.deductSkillMod(actor, e.getKey().replace("cat_stat_mod_bonus.@stat_n:", ""), Integer.parseInt((String) e.getValue())); - } - - if(e.getKey().startsWith("cat_armor_standard_protection")) { - deductArmorProtection(actor, e.getKey().replace("cat_armor_standard_protection.armor_eff_", ""), Float.parseFloat((String) e.getValue()), actor.getSlotNameForObject(item)); - } - - if(e.getKey().startsWith("cat_armor_special_protection")) { - deductArmorProtection(actor, e.getKey().replace("cat_armor_special_protection.special_protection_type_", ""), Float.parseFloat((String) e.getValue()), actor.getSlotNameForObject(item)); - } - - if(e.getKey().startsWith("cat_attrib_mod_bonus.attr_health")) { - actor.setMaxHealth(actor.getMaxHealth() - Integer.parseInt((String) e.getValue())); - } - if(e.getKey().startsWith("cat_attrib_mod_bonus.attr_action")) { - actor.setMaxAction(actor.getMaxAction() - Integer.parseInt((String) e.getValue())); - } - - } - - if(item.getAttachment("unity") != null) { - actor.sendSystemMessage("@unity:cannot_remove_ring", (byte) 0); - return; - } - - if(actor.getEquipmentList().contains(item)) - actor.removeObjectFromEquipList(item); - + public void loadBonusSets() { + Path p = Paths.get("scripts/equipment/bonus_sets/"); + FileVisitor fv = new SimpleFileVisitor() + { + @Override + public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException + { + core.scriptService.callScript("scripts/equipment/bonus_sets/", file.getFileName().toString().replace(".py", ""), "addBonusSet", core); + return FileVisitResult.CONTINUE; + } + }; + try + { + Files.walkFileTree(p, fv); + } + catch (IOException e) { e.printStackTrace(); } } - } diff --git a/src/services/GroupService.java b/src/services/GroupService.java index dc2cf39b..b9504a8c 100644 --- a/src/services/GroupService.java +++ b/src/services/GroupService.java @@ -153,7 +153,7 @@ public class GroupService implements INetworkDispatch { addGroupBuffsToMember(group, leader); addGroupBuffsToMember(group, invited); - //ChatRoom groupChat = core.chatService.createChatRoom(leader.getCustomName() + group.getObjectID(), "GroupChat", leader.getCustomName(), true); + //ChatRoom groupChat = core.chatService.createChatRoom("GroupChat", "group." + group.getObjectID(), leader.getCustomName(), true); //group.setChatRoomId(groupChat.getRoomId()); //core.chatService.joinChatRoom(leader, groupChat.getRoomId()); @@ -211,7 +211,7 @@ public class GroupService implements INetworkDispatch { } } - public void handleGroupDisband(CreatureObject creature) { + public void handleGroupDisband(CreatureObject creature, boolean destroy) { if(creature.getGroupId() == 0) return; @@ -225,7 +225,7 @@ public class GroupService implements INetworkDispatch { List memberList = new ArrayList(group.getMemberList()); - if(group.getGroupLeader() != creature && group.getMemberList().size() > 2) { + if(group.getGroupLeader() != creature || !destroy || memberList.size() > 2) { group.removeMember(creature); creature.setInviteCounter(creature.getInviteCounter() + 1); @@ -245,6 +245,9 @@ public class GroupService implements INetworkDispatch { removeGroupBuffs(creature); + if (group.getMemberList().size() == 0) // ensure that there are no empty groups just incase.. + core.objectService.destroyObject(group.getObjectID()); + } else { for(SWGObject member : memberList) { @@ -264,14 +267,11 @@ public class GroupService implements INetworkDispatch { removeGroupBuffs((CreatureObject) member); } - core.objectService.destroyObject(group.getObjectID()); - } - } - - - + public void handleGroupDisband(CreatureObject creature) { + handleGroupDisband(creature, true); + } } diff --git a/src/services/PlayerService.java b/src/services/PlayerService.java index 764e4c7e..f355b367 100644 --- a/src/services/PlayerService.java +++ b/src/services/PlayerService.java @@ -64,6 +64,7 @@ import resources.common.RGB; import resources.common.SpawnPoint; import resources.common.StringUtilities; import resources.datatables.PlayerFlags; +import resources.datatables.Professions; import resources.guild.Guild; import resources.objects.Buff; import resources.objects.building.BuildingObject; @@ -123,21 +124,17 @@ public class PlayerService implements INetworkDispatch { }, 30, 30, TimeUnit.SECONDS); scheduler.scheduleAtFixedRate(() -> { - synchronized(creature.getMutex()) { - if(creature.getAction() < creature.getMaxAction() && creature.getPosture() != 14) { - if(creature.getCombatFlag() == 0) - creature.setAction(creature.getAction() + (15 + creature.getLevel() * 5)); - else - creature.setAction(creature.getAction() + ((15 + creature.getLevel() * 5) / 2)); - } + if(creature.getAction() < creature.getMaxAction() && creature.getPosture() != 14) { + if(creature.getCombatFlag() == 0) + creature.setAction(creature.getAction() + (15 + creature.getLevel() * 5)); + else + creature.setAction(creature.getAction() + ((15 + creature.getLevel() * 5) / 2)); } }, 0, 1000, TimeUnit.MILLISECONDS); scheduler.scheduleAtFixedRate(() -> { - synchronized(creature.getMutex()) { - if(creature.getHealth() < creature.getMaxHealth() && creature.getCombatFlag() == 0 && creature.getPosture() != 13 && creature.getPosture() != 14) - creature.setHealth(creature.getHealth() + (36 + creature.getLevel() * 4)); - } + if(creature.getHealth() < creature.getMaxHealth() && creature.getCombatFlag() == 0 && creature.getPosture() != 13 && creature.getPosture() != 14) + creature.setHealth(creature.getHealth() + (36 + creature.getLevel() * 4)); }, 0, 1000, TimeUnit.MILLISECONDS); /*final PlayerObject ghost = (PlayerObject) creature.getSlottedObject("ghost"); @@ -503,12 +500,13 @@ public class PlayerService implements INetworkDispatch { if(cell == null) return; + creature.setPosture((byte) 0); + core.simulationService.transferToPlanet(creature, cloner.getPlanet(), spawnPoint.getPosition(), spawnPoint.getOrientation(), cell); creature.setHealth(creature.getMaxHealth()); creature.setAction(creature.getMaxAction()); - creature.setPosture((byte) 0); creature.setSpeedMultiplierBase(1); creature.setTurnRadius(1); @@ -536,8 +534,8 @@ public class PlayerService implements INetworkDispatch { } player.setProfession(profession); - - String xpType = ((player.getProfession().contains("entertainer")) ? "entertainer" : ((player.getProfession().contains("trader")) ? "crafting" : "combat_general")); + + String xpType = ((profession.contains("entertainer")) ? "entertainer" : ((profession.contains("trader")) ? "crafting" : "combat_general")); int experience = player.getXp(xpType); @@ -547,7 +545,7 @@ public class PlayerService implements INetworkDispatch { for (int i = 0; i < experienceTable.getRowCount(); i++) { if (experienceTable.getObject(i, 0) != null) { if (experience >= ((Integer) experienceTable.getObject(i, 1))) { - level = (Integer) experienceTable.getObject(i, 1); + level = (Integer) experienceTable.getObject(i, 0); } } } @@ -556,10 +554,11 @@ public class PlayerService implements INetworkDispatch { } grantLevel(creature, level); + player.setProfessionIcon(Professions.get(profession)); } /* - * Resets to level 0 + * Resets to level 1 */ public void resetLevel(CreatureObject creature) { PlayerObject player = (PlayerObject) creature.getSlottedObject("ghost"); @@ -577,18 +576,13 @@ public class PlayerService implements INetworkDispatch { case "object/tangible/datapad/shared_character_datapad.iff": case "object/tangible/bank/shared_character_bank.iff": case "object/tangible/mission_bag/shared_mission_bag.iff": - case "object/weapon/creature/shared_creature_default_weapon.iff": { + case "object/weapon/creature/shared_creature_default_weapon.iff": continue; - } - default: { - // - } + default: + core.equipmentService.unequip(creature, equipment); } - - core.equipmentService.unequip(creature, equipment); } - } - catch (Exception e) { + } catch (Exception e) { e.printStackTrace(); } @@ -598,10 +592,32 @@ public class PlayerService implements INetworkDispatch { core.buffService.clearBuffs(creature); - for (String skill : creature.getSkills()) { - core.skillService.removeSkill(creature, skill); + try { + String[] skills; + + DatatableVisitor skillTemplate = ClientFileManager.loadFile("datatables/skill_template/skill_template.iff", DatatableVisitor.class); + + for (int s = 0; s < skillTemplate.getRowCount(); s++) { + if (skillTemplate.getObject(s, 0) != null) { + if (((String) skillTemplate.getObject(s, 0)).equals(player.getProfession())) { + skills = ((String) skillTemplate.getObject(s, 4)).split(","); + + for (String skill : skills) { + core.skillService.removeSkill(creature, skill); + } + + core.skillService.addSkill(creature, skills[0]); + + break; + } + } + } + } catch (InstantiationException | IllegalAccessException e) { + e.printStackTrace(); } + core.skillService.resetExpertise(creature); + String xpType = ((player.getProfession().contains("entertainer")) ? "entertainer" : ((player.getProfession().contains("trader")) ? "crafting" : "combat_general")); player.setXp(xpType, 0); @@ -620,7 +636,7 @@ public class PlayerService implements INetworkDispatch { creature.setAction(300); creature.setGrantedHealth(0); - creature.setLevel((short) 0); + creature.setLevel((short) 1); } /* @@ -638,11 +654,9 @@ public class PlayerService implements INetworkDispatch { return; } - resetLevel(creature); + if(level == 0) return; - if (level == 0) { - return; - } + resetLevel(creature); try { experienceTable = ClientFileManager.loadFile("datatables/player/player_level.iff", DatatableVisitor.class); @@ -803,6 +817,11 @@ public class PlayerService implements INetworkDispatch { DatatableVisitor experienceTable; PlayerObject player = (PlayerObject) creature.getSlottedObject("ghost"); experience *= xpMultiplier; + + if (creature.getLevel() >= 90) { + return; + } + //synchronized(objectMutex) { try { experienceTable = ClientFileManager.loadFile("datatables/player/player_level.iff", DatatableVisitor.class); @@ -815,7 +834,7 @@ public class PlayerService implements INetworkDispatch { experience += ((experience * experienceBonus) / 100); // 1. Add the experience. - if (experience > 0) { + if (experience > 0 && !creature.isStationary()) { creature.showFlyText("base_player", "prose_flytext_xp", "", experience, (float) 2.5, new RGB(180, 60, 240), 1); } @@ -1209,6 +1228,25 @@ public class PlayerService implements INetworkDispatch { core.suiService.openSUIWindow(ringWindow); } + public String getFormalProfessionName(String template) { + String formalName = ""; + + switch (template) { + case "force_sensitive_1a": formalName = "Jedi"; break; + case "bounty_hunter_1a": formalName = "Bounty Hunter"; break; + case "officer_1a": formalName = "Officer"; break; + case "smuggler_1a": formalName = "Smuggler"; break; + case "entertainer_1a": formalName = "Entertainer"; break; + case "spy_1a": formalName = "Spy"; break; + case "medic_1a": formalName = "Medic"; break; + case "commando_1a": formalName = "Commando"; break; + + default: formalName = "Trader"; break; // Ziggy: Trader profession names are a bit irregular, so this is used. + + } + return formalName; + } + @Override public void shutdown() { // TODO Auto-generated method stub diff --git a/src/services/SimulationService.java b/src/services/SimulationService.java index 80680ae1..5f38d4b7 100644 --- a/src/services/SimulationService.java +++ b/src/services/SimulationService.java @@ -168,13 +168,15 @@ public class SimulationService implements INetworkDispatch { core.commandService.registerCommand("eject"); core.commandService.registerGmCommand("broadcast"); core.commandService.registerGmCommand("teleporttarget"); + core.commandService.registerCommand("npcconversationselect"); + core.commandService.registerCommand("npcconversationstop"); } public void insertSnapShotObjects() { List objectList = new ArrayList(core.objectService.getObjectList().values()); for(SWGObject obj : objectList) { - if(obj.getParentId() == 0 && (obj.isInSnapshot() || obj.getAttachment("isBuildout") != null)) + if(obj.getParentId() == 0 && /*(*/obj.isInSnapshot() /*|| obj.getAttachment("isBuildout") != null)*/) add(obj, obj.getPosition().x, obj.getPosition().z); } } @@ -772,6 +774,8 @@ public class SimulationService implements INetworkDispatch { core.removeClient(session); object.setAttachment("disconnectTask", disconnectTask); + for(TangibleObject obj : new Vector(object.getDefendersList())) + object.removeDefender(obj); // temp fix for being stuck in combat } @@ -818,7 +822,6 @@ public class SimulationService implements INetworkDispatch { if(object.getPosture() == Posture.Dead) core.playerService.sendCloningWindow(object, false); - } public void transferToPlanet(SWGObject object, Planet planet, Point3D newPos, Quaternion newOrientation, SWGObject newParent) { diff --git a/src/services/SkillService.java b/src/services/SkillService.java index 9eb13852..2b57ed5f 100644 --- a/src/services/SkillService.java +++ b/src/services/SkillService.java @@ -22,6 +22,8 @@ package services; import java.nio.ByteOrder; +import java.util.ArrayList; +import java.util.List; import java.util.Map; import org.apache.mina.core.buffer.IoBuffer; @@ -30,8 +32,12 @@ import org.python.core.Py; import org.python.core.PyObject; import protocol.swg.ExpertiseRequestMessage; +import protocol.swg.ObjControllerMessage; +import protocol.swg.objectControllerObjects.SetProfessionTemplate; +import protocol.swg.objectControllerObjects.UiPlayEffect; import resources.common.Console; import resources.common.FileUtilities; +import resources.common.ObjControllerOpcodes; import resources.common.Opcodes; import resources.objects.creature.CreatureObject; import resources.objects.player.PlayerObject; @@ -275,38 +281,63 @@ public class SkillService implements INetworkDispatch { @Override public void insertOpcodes(Map swgOpcodes, Map objControllerOpcodes) { - swgOpcodes.put(Opcodes.ExpertiseRequestMessage, new INetworkRemoteEvent() { + swgOpcodes.put(Opcodes.ExpertiseRequestMessage, (session, buffer) -> { - @Override - public void handlePacket(IoSession session, IoBuffer buffer) throws Exception { - - buffer = buffer.order(ByteOrder.LITTLE_ENDIAN); - buffer.position(0); - - ExpertiseRequestMessage expertise = new ExpertiseRequestMessage(); - expertise.deserialize(buffer); + buffer = buffer.order(ByteOrder.LITTLE_ENDIAN); + buffer.position(0); + + ExpertiseRequestMessage expertise = new ExpertiseRequestMessage(); + expertise.deserialize(buffer); - Client client = core.getClient(session); - if(client == null) { - System.out.println("NULL Client"); - return; - } - - if(client.getParent() == null) - return; - - CreatureObject creature = (CreatureObject) client.getParent(); - PlayerObject player = (PlayerObject) creature.getSlottedObject("ghost"); - - if(player == null) - return; - - for(String expertiseName : expertise.getExpertiseSkills()) { - if(expertiseName.startsWith("expertise_") && ((caluclateExpertisePoints(creature) - 1) >= 0) && validExpertiseSkill(player, expertiseName)) { // Prevent possible glitches/exploits - addSkill(creature, expertiseName); - } - } + Client client = core.getClient(session); + if(client == null) { + System.out.println("NULL Client"); + return; } + + if(client.getParent() == null) + return; + + CreatureObject creature = (CreatureObject) client.getParent(); + PlayerObject player = (PlayerObject) creature.getSlottedObject("ghost"); + + if(player == null) + return; + + for(String expertiseName : expertise.getExpertiseSkills()) { + if(expertiseName.startsWith("expertise_") && ((caluclateExpertisePoints(creature) - 1) >= 0) && validExpertiseSkill(player, expertiseName)) { // Prevent possible glitches/exploits + addSkill(creature, expertiseName); + } + } + + }); + + objControllerOpcodes.put(ObjControllerOpcodes.SET_PROFESSION_TEMPLATE, (session, buffer) -> { + + buffer = buffer.order(ByteOrder.LITTLE_ENDIAN); + + SetProfessionTemplate profTemplate = new SetProfessionTemplate(); + profTemplate.deserialize(buffer); + String profession = profTemplate.getProfession(); + + Client client = core.getClient(session); + if(client == null) { + System.out.println("NULL Client"); + return; + } + + if(client.getParent() == null) + return; + + CreatureObject creature = (CreatureObject) client.getParent(); + PlayerObject player = (PlayerObject) creature.getSlottedObject("ghost"); + + //System.out.println(profession); + if(player == null || player.getProfession().equals(profession) || profession == null) + return; + + core.playerService.respec(creature, profession); + }); } @@ -367,6 +398,19 @@ public class SkillService implements INetworkDispatch { return false; } + public void resetExpertise(CreatureObject creature) { + List skills = new ArrayList(creature.getSkills()); + skills.stream().filter(s -> s.contains("expertise")).forEach(s -> removeSkill(creature, s)); + } + + public void sendRespecWindow(CreatureObject creature) { + if(creature.getClient() == null) + return; + UiPlayEffect ui = new UiPlayEffect(creature.getObjectID(), "showMediator=ws_professiontemplateselect"); + ObjControllerMessage objController = new ObjControllerMessage(0x0B, ui); + creature.getClient().getSession().write(objController.serialize()); + } + @Override public void shutdown() { diff --git a/src/services/StaticService.java b/src/services/StaticService.java index f6c8bf68..7dbe7d97 100644 --- a/src/services/StaticService.java +++ b/src/services/StaticService.java @@ -41,76 +41,77 @@ import engine.resources.service.INetworkRemoteEvent; public class StaticService implements INetworkDispatch { private NGECore core; - + public StaticService(NGECore core) { this.core = core; } - + public void spawnStatics() { - for (SWGObject object : core.objectService.getObjectList().values()) + for (SWGObject object : core.objectService.getObjectList().values()) { if (object instanceof CreatureObject && ((CreatureObject) object).getStaticNPC()) { ((TangibleObject) object).setRespawnTime(0); core.objectService.destroyObject(object); } - spawnPlanetStaticObjs("rori"); - spawnPlanetStaticObjs("naboo"); - spawnPlanetStaticObjs("tatooine"); - spawnPlanetStaticObjs("lok"); - //spawnPlanetStaticObjs("kaas"); // Keep commented out unless you possess the latest build of Kaas! + } + + spawnObjects("rori"); + spawnObjects("naboo"); + spawnObjects("tatooine"); + spawnObjects("lok"); + //spawnObjects("kaas"); // Keep commented out unless you possess the latest build of Kaas! } - @Override - public void insertOpcodes(Map arg0, Map arg1) { - - } - - @Override - public void shutdown() { - - } - - public void spawnPlanetStaticObjs(String planet) { - Planet planetObj = (Planet) core.terrainService.getPlanetByName(planet); - core.scriptService.callScript("scripts/static_spawns/", planetObj.getName(), "addPlanetSpawns", core, planetObj); - System.out.println("Loaded static objs for " + planetObj.getName()); + public void spawnObjects(String planetName) { + Planet planet = (Planet) core.terrainService.getPlanetByName(planetName); + core.scriptService.callScript("scripts/static_spawns/", planet.getName(), "addPlanetSpawns", core, planet); + System.out.println("Loaded static objects for " + planet.getName()); } public SWGObject spawnObject(String template, String planetName, long cellId, float x, float y, float z, float qY, float qW) { return spawnObject(template, planetName, cellId, x, y, z, qW, 0, qY, 0); } - // TODO make sure static objects get unloaded public SWGObject spawnObject(String template, String planetName, long cellId, float x, float y, float z, float qW, float qX, float qY, float qZ) { - + return spawnObject(template, 0, planetName, cellId, x, y, z, qW, qX, qY, qZ); + } + + public SWGObject spawnObject(String template, long objectId, String planetName, long cellId, float x, float y, float z, float qW, float qX, float qY, float qZ) { Planet planet = core.terrainService.getPlanetByName(planetName); - //System.out.println("template: " + template + " x: " + x + " y: " + y + " z: " + z); - - if(planet == null) { - System.out.println("Cant spawn static object because planet is null"); + if (planet == null) { + System.out.println("StaticService: Can't spawn static object because planet is null."); return null; } - SWGObject object = core.objectService.createObject(template, 0, planet, new Point3D(x, y, z), new Quaternion(qW, qX, qY, qZ)); + SWGObject object = core.objectService.createObject(template, objectId, planet, new Point3D(x, y, z), new Quaternion(qW, qX, qY, qZ)); - if(object == null) { - System.out.println("Static object is null"); + if (object == null) { + System.out.println("Static object is null with id " + objectId + " and template " + template + "."); return null; } - if (object instanceof CreatureObject) ((CreatureObject) object).setStaticNPC(true); + if (objectId != 0 && object.getObjectID() != objectId) { + System.out.println("StaticService: ObjectId " + objectId + " was taken for object with template " + object.getTemplate() + ". Replacement: " + object.getObjectID()); + } - if(cellId == 0) { + if (object instanceof CreatureObject) { + ((CreatureObject) object).setStaticNPC(true); + } + + if (cellId == 0) { boolean add = core.simulationService.add(object, (float) x, (float) z, true); - if(!add) - System.out.println("Quadtree insert failed for: " + template); - } - else { + + if (!add) { + System.out.println("StaticService: Quadtree insert failed for: " + template); + } + } else { SWGObject parent = core.objectService.getObject(cellId); - if(parent == null) { - System.out.println("Cell not found"); + + if (parent == null) { + System.out.println("StaticService: Cell not found"); return object; } + parent.add(object); } @@ -118,11 +119,10 @@ public class StaticService implements INetworkDispatch { } public List getCloningFacilitiesByPlanet(Planet planet) { - List objects = core.simulationService.get(planet, 0, 0, 8300); List cloners = new ArrayList(); - for(SWGObject obj : objects) { + for (SWGObject obj : objects) { if(obj instanceof BuildingObject && (obj.getTemplate().contains("cloning_facility") || obj.getTemplate().contains("cloning_tatooine") || obj.getTemplate().contains("cloning_naboo") || obj.getTemplate().contains("cloning_corellia"))) { if(!obj.getTemplate().equals("object/building/general/shared_cloning_facility_general.iff")) cloners.add(obj); @@ -131,5 +131,15 @@ public class StaticService implements INetworkDispatch { return cloners; } - + + @Override + public void insertOpcodes(Map arg0, Map arg1) { + + } + + @Override + public void shutdown() { + + } + } diff --git a/src/services/ai/states/AIState.java b/src/services/ai/states/AIState.java index 203a3d3f..e36a8c3a 100644 --- a/src/services/ai/states/AIState.java +++ b/src/services/ai/states/AIState.java @@ -187,7 +187,7 @@ public abstract class AIState { Point3D newPosition = new Point3D(); boolean foundNewPos = findNewPosition(actor, speed, maxDistance, newPosition); - if(!foundNewPos) + if(!foundNewPos || (newPosition.x == 0 && newPosition.z == 0)) return; Point3D newWorldPos = newPosition.getWorldPosition(); diff --git a/src/services/ai/states/AttackState.java b/src/services/ai/states/AttackState.java index 2d49791c..ab2323f6 100644 --- a/src/services/ai/states/AttackState.java +++ b/src/services/ai/states/AttackState.java @@ -47,6 +47,9 @@ public class AttackState extends AIState { @Override public byte onExit(AIActor actor) { // TODO Auto-generated method stub + actor.getCreature().setLookAtTarget(0); + actor.getCreature().setIntendedTarget(0); + return StateResult.FINISHED; } @@ -91,16 +94,34 @@ public class AttackState extends AIState { @Override public byte recover(AIActor actor) { - if(actor.getTimeSinceLastAttack() < 2000) { + CreatureObject creature = actor.getCreature(); + float maxDistance = 0; + WeaponObject weapon = null; + if(creature.getWeaponId() != 0) { + weapon = (WeaponObject) NGECore.getInstance().objectService.getObject(creature.getWeaponId()); + if(weapon != null) + maxDistance = weapon.getMaxRange() - 1; + } else if(creature.getSlottedObject("default_weapon") != null) { + weapon = (WeaponObject) creature.getSlottedObject("default_weapon"); + if(weapon != null) + maxDistance = weapon.getMaxRange() - 1; + } + if(weapon == null) + return StateResult.FINISHED; + if(actor.getTimeSinceLastAttack() < weapon.getAttackSpeed() * 1000) { //actor.scheduleRecovery(); return StateResult.UNFINISHED; } NGECore core = NGECore.getInstance(); - CreatureObject creature = actor.getCreature(); if(creature.getPosture() == 14) return StateResult.DEAD; if(creature.getCombatFlag() == 0 || creature.getDefendersList().size() == 0 || actor.getFollowObject() == null) + { + creature.setLookAtTarget(0); + creature.setIntendedTarget(0); + actor.setFollowObject(null); return StateResult.FINISHED; + } CreatureObject target = actor.getFollowObject(); if(target != actor.getHighestDamageDealer() && actor.getHighestDamageDealer() != null) { actor.setFollowObject(actor.getHighestDamageDealer()); @@ -116,23 +137,17 @@ public class AttackState extends AIState { actor.setFollowObject(actor.getHighestDamageDealer()); target = actor.getFollowObject(); if(target == null) + { + creature.setLookAtTarget(0); + creature.setIntendedTarget(0); return StateResult.FINISHED; + } } if(target.getWorldPosition().getDistance(creature.getWorldPosition()) > 128 || target.getPosture() == 13 || target.getPosture() == 14) { actor.removeDefender(target); actor.scheduleRecovery(); return StateResult.UNFINISHED; } - float maxDistance = 0; - if(creature.getWeaponId() != 0) { - WeaponObject weapon = (WeaponObject) NGECore.getInstance().objectService.getObject(creature.getWeaponId()); - if(weapon != null) - maxDistance = weapon.getMaxRange() - 1; - } else if(creature.getSlottedObject("default_weapon") != null) { - WeaponObject weapon = (WeaponObject) creature.getSlottedObject("default_weapon"); - if(weapon != null) - maxDistance = weapon.getMaxRange() - 1; - } if(target.getWorldPosition().getDistance2D(creature.getWorldPosition()) > maxDistance) { actor.scheduleRecovery(); return StateResult.UNFINISHED; @@ -141,6 +156,9 @@ public class AttackState extends AIState { Vector attacks = actor.getMobileTemplate().getAttacks(); + creature.setLookAtTarget(target.getObjectId()); + creature.setIntendedTarget(target.getObjectId()); + if(attacks.size() == 0) { core.commandService.callCommand(creature, actor.getMobileTemplate().getDefaultAttack(), target, ""); } else { diff --git a/src/services/chat/ChatService.java b/src/services/chat/ChatService.java index c5b5bb5e..562686dc 100644 --- a/src/services/chat/ChatService.java +++ b/src/services/chat/ChatService.java @@ -49,6 +49,7 @@ import resources.common.*; import resources.objects.creature.CreatureObject; import resources.objects.player.PlayerObject; import protocol.swg.AddIgnoreMessage; +import protocol.swg.ChatEnterRoomById; import protocol.swg.ChatOnChangeFriendStatus; import protocol.swg.ChatDeletePersistentMessage; import protocol.swg.ChatFriendsListUpdate; @@ -64,6 +65,7 @@ import protocol.swg.ChatPersistentMessageToServer; import protocol.swg.ChatRequestPersistentMessage; import protocol.swg.ChatRoomList; import protocol.swg.ChatRoomMessage; +import protocol.swg.ChatSendToRoom; import protocol.swg.ChatSystemMessage; import protocol.swg.ObjControllerMessage; import protocol.swg.objectControllerObjects.PlayerEmote; @@ -367,9 +369,53 @@ public class ChatService implements INetworkDispatch { }); swgOpcodes.put(Opcodes.ChatCreateRoom, (session, data) -> { + //System.out.println("CREATE:"); + //StringUtilities.printBytes(data.array()); }); swgOpcodes.put(Opcodes.ChatQueryRoom, (session, data) -> { + //System.out.println("QUERY: "); + //StringUtilities.printBytes(data.array()); + }); + + swgOpcodes.put(Opcodes.ChatSendToRoom, (session, data) -> { + Client client = core.getClient(session); + + if(client == null) + return; + + SWGObject obj = client.getParent(); + + if (obj == null) + return; + + ChatSendToRoom sentPacket = new ChatSendToRoom(); + sentPacket.deserialize(data); + + //ChatRoom room = getChatRoom(sentPacket.getRoomId()); + + sendChatRoomMessage((CreatureObject) obj, sentPacket.getRoomId(), sentPacket.getMsgId(), sentPacket.getMessage()); + + }); + + swgOpcodes.put(Opcodes.ChatEnterRoomById, (session, data) -> { + Client client = core.getClient(session); + + if(client == null) + return; + + SWGObject obj = client.getParent(); + + if (obj == null) + return; + + ChatEnterRoomById sentPacket = new ChatEnterRoomById(); + sentPacket.deserialize(data); + + joinChatRoom((CreatureObject) obj, sentPacket.getRoomId()); + + //System.out.println("Entering room..."); + }); } @@ -687,10 +733,12 @@ public class ChatService implements INetworkDispatch { return; ChatOnEnteredRoom enterRoom = new ChatOnEnteredRoom(playerName, 0, roomId, true); - player.getClient().getSession().write(enterRoom.serialize()); if (!room.getUserList().contains(player)) room.getUserList().add(player); + + room.getUserList().stream().forEach(user -> user.getClient().getSession().write(enterRoom.serialize())); + } public void leaveChatRoom(CreatureObject player, int roomId) { @@ -711,7 +759,7 @@ public class ChatService implements INetworkDispatch { room.getUserList().remove(player); } - public void sendChatRoomMessage(CreatureObject sender, int roomId, String message) { + public void sendChatRoomMessage(CreatureObject sender, int roomId, int msgId, String message) { String senderName = sender.getCustomName().toLowerCase(); if (senderName.contains(" ")) @@ -720,17 +768,14 @@ public class ChatService implements INetworkDispatch { ChatRoom room = getChatRoom(roomId); if (room == null) return; - - ChatOnSendRoomMessage onSend = new ChatOnSendRoomMessage(ChatOnSendRoomMessage.SUCCESS); + + ChatOnSendRoomMessage onSend = new ChatOnSendRoomMessage(0, msgId); sender.getClient().getSession().write(onSend.serialize()); ChatRoomMessage roomMessage = new ChatRoomMessage(roomId, senderName, message); Vector users = room.getUserList(); for (CreatureObject user : users) { - if (user == sender) - continue; - user.getClient().getSession().write(roomMessage.serialize()); } } diff --git a/src/services/combat/CombatCommands.java b/src/services/combat/CombatCommands.java index af59b03f..7a66c472 100644 --- a/src/services/combat/CombatCommands.java +++ b/src/services/combat/CombatCommands.java @@ -133,6 +133,7 @@ public class CombatCommands { core.commandService.registerCombatCommand("bh_sh_1"); core.commandService.registerCombatCommand("bh_sh_2"); core.commandService.registerCombatCommand("bh_sh_3"); + core.commandService.registerCommand("bh_shields_1"); // Jedi diff --git a/src/services/command/BaseSWGCommand.java b/src/services/command/BaseSWGCommand.java index 2d727994..cca19f25 100644 --- a/src/services/command/BaseSWGCommand.java +++ b/src/services/command/BaseSWGCommand.java @@ -21,6 +21,8 @@ ******************************************************************************/ package services.command; +import engine.clientdata.ClientFileManager; +import engine.clientdata.visitors.DatatableVisitor; import engine.resources.common.CRC; public class BaseSWGCommand implements Cloneable { @@ -31,10 +33,32 @@ public class BaseSWGCommand implements Cloneable { private int maxRangeToTarget; private int commandCRC; private boolean isGmCommand = false; + private String requiredAbility; + private String cooldownGroup; + private float cooldown; + private float executeTime; + private float warmupTime; public BaseSWGCommand(String commandName) { setCommandName(commandName); setCommandCRC(CRC.StringtoCRC(commandName)); + + try { + DatatableVisitor visitor2 = ClientFileManager.loadFile("datatables/command/command_table.iff", DatatableVisitor.class); + for (int i = 0; i < visitor2.getRowCount(); i++) { + if (visitor2.getObject(i, 0) != null) { + if (((String) visitor2.getObject(i, 0)).equalsIgnoreCase(commandName)) { + requiredAbility = (String) visitor2.getObject(i, 7); + cooldownGroup = (String) visitor2.getObject(i, 85); + warmupTime = (Float) visitor2.getObject(i, 86); + executeTime = (Float) visitor2.getObject(i, 87); + cooldown = (Float) visitor2.getObject(i, 88); + } + } + } + } catch (InstantiationException | IllegalAccessException e) { + e.printStackTrace(); + } } public String getCommandName() { @@ -89,4 +113,44 @@ public class BaseSWGCommand implements Cloneable { this.isGmCommand = isGmCommand; } + public String getRequiredAbility() { + return requiredAbility; + } + + public void setRequiredAbility(String requiredAbility) { + this.requiredAbility = requiredAbility; + } + + public String getCooldownGroup() { + return cooldownGroup; + } + + public void setCooldownGroup(String cooldownGroup) { + this.cooldownGroup = cooldownGroup; + } + + public float getCooldown() { + return cooldown; + } + + public void setCooldown(float cooldown) { + this.cooldown = cooldown; + } + + public float getExecuteTime() { + return executeTime; + } + + public void setExecuteTime(float executeTime) { + this.executeTime = executeTime; + } + + public float getWarmupTime() { + return warmupTime; + } + + public void setWarmupTime(float warmupTime) { + this.warmupTime = warmupTime; + } + } diff --git a/src/services/command/CombatCommand.java b/src/services/command/CombatCommand.java index bc412ed2..cab1f4ef 100644 --- a/src/services/command/CombatCommand.java +++ b/src/services/command/CombatCommand.java @@ -67,16 +67,16 @@ public class CombatCommand extends BaseSWGCommand { private int damageType, elementalType, elementalValue; private String performanceSpam; private byte hitSpam; - private float cooldown; + //private float cooldown; private String delayAttackEggTemplate; private String delayAttackParticle; private float initialAttackDelay; private float delayAttackInterval; private int delayAttackLoops; private int delayAttackEggPosition; - private String cooldownGroup; - private float executeTime; - private float warmupTime; + //private String cooldownGroup; + //private float executeTime; + //private float warmupTime; private float vigorCost; // for commando kill meter and bm specials private float criticalChance; private int attack_rolls; @@ -162,22 +162,6 @@ public class CombatCommand extends BaseSWGCommand { } } - - DatatableVisitor visitor2 = ClientFileManager.loadFile("datatables/command/command_table.iff", DatatableVisitor.class); - - for(int i = 0; i < visitor2.getRowCount(); i++) { - if(visitor2.getObject(i, 0) != null) { - if(((String) visitor2.getObject(i, 0)).equalsIgnoreCase(commandName)) { - - cooldownGroup = (String) visitor2.getObject(i, 85); - warmupTime = (Float) visitor2.getObject(i, 86); - executeTime = (Float) visitor2.getObject(i, 87); - cooldown = (Float) visitor2.getObject(i, 88); - - } - } - } - } catch (InstantiationException | IllegalAccessException e) { e.printStackTrace(); } @@ -624,14 +608,6 @@ public class CombatCommand extends BaseSWGCommand { } - public float getCooldown() { - return cooldown; - } - - public void setCooldown(float cooldown) { - this.cooldown = cooldown; - } - public String getDelayAttackEggTemplate() { return delayAttackEggTemplate; } @@ -680,30 +656,6 @@ public class CombatCommand extends BaseSWGCommand { this.delayAttackLoops = delayAttackLoops; } - public String getCooldownGroup() { - return cooldownGroup; - } - - public void setCooldownGroup(String cooldownGroup) { - this.cooldownGroup = cooldownGroup; - } - - public float getExecuteTime() { - return executeTime; - } - - public void setExecuteTime(float executeTime) { - this.executeTime = executeTime; - } - - public float getWarmupTime() { - return warmupTime; - } - - public void setWarmupTime(float warmupTime) { - this.warmupTime = warmupTime; - } - public float getVigorCost() { return vigorCost; } diff --git a/src/services/command/CommandService.java b/src/services/command/CommandService.java index 20564197..f54252a0 100644 --- a/src/services/command/CommandService.java +++ b/src/services/command/CommandService.java @@ -25,6 +25,9 @@ import java.nio.ByteOrder; import java.util.Map; import java.util.Vector; import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.Executors; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.TimeUnit; import main.NGECore; @@ -52,6 +55,7 @@ public class CommandService implements INetworkDispatch { private Vector commandLookup = new Vector(); private ConcurrentHashMap aliases = new ConcurrentHashMap(); private ConcurrentHashMap aliasesByCRC = new ConcurrentHashMap(); + private final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1); private NGECore core; public CommandService(NGECore core) { @@ -98,16 +102,39 @@ public class CommandService implements INetworkDispatch { CreatureObject actor = (CreatureObject) client.getParent(); - SWGObject target = core.objectService.getObject(commandEnqueue.getTargetID()); - - if(command instanceof CombatCommand) { - CombatCommand command2 = (CombatCommand) command.clone(); - processCombatCommand(actor, target, command2, commandEnqueue.getActionCounter(), commandEnqueue.getCommandArguments()); + if (!actor.hasAbility(command.getRequiredAbility())) return; +<<<<<<< HEAD } core.scriptService.callScript("scripts/commands/", command.getCommandName(), "run", core, actor, target, commandEnqueue.getCommandArguments()); +======= + + if (actor.hasCooldown(command.getCommandName())) + return; + SWGObject target = core.objectService.getObject(commandEnqueue.getTargetID()); +>>>>>>> origin/master + + // May want to have a warmup def to be called at some point in the future. + if (command.getWarmupTime() != 0 && !(command instanceof CombatCommand)) { + scheduler.schedule(new Runnable() { + + @Override + public void run() { + core.scriptService.callScript("scripts/commands/", command.getCommandName(), "run", core, actor, target, commandEnqueue.getCommandArguments()); + } + }, (long) command.getWarmupTime(), TimeUnit.SECONDS); + } else { + + if(command instanceof CombatCommand) { + CombatCommand command2 = (CombatCommand) command.clone(); + processCombatCommand(actor, target, command2, commandEnqueue.getActionCounter(), commandEnqueue.getCommandArguments()); + return; + } + + core.scriptService.callScript("scripts/commands/", command.getCommandName(), "run", core, actor, target, commandEnqueue.getCommandArguments()); + } } }); diff --git a/src/services/equipment/BonusSetTemplate.java b/src/services/equipment/BonusSetTemplate.java new file mode 100644 index 00000000..cee74c84 --- /dev/null +++ b/src/services/equipment/BonusSetTemplate.java @@ -0,0 +1,70 @@ +/******************************************************************************* + * Copyright (c) 2013 + * + * This File is part of NGECore2. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . + * + * Using NGEngine to work with NGECore2 is making a combined work based on NGEngine. + * Therefore all terms and conditions of the GNU Lesser General Public License cover the combination. + ******************************************************************************/ +package services.equipment; + +import java.util.Vector; + +import main.NGECore; + +import org.python.core.Py; +import org.python.core.PyObject; + +import engine.resources.objects.SWGObject; +import resources.objects.creature.CreatureObject; + +public class BonusSetTemplate +{ + private String name; + private Vector requiredWornItems; + + public BonusSetTemplate(String name) + { + this.name = name; + this.requiredWornItems = new Vector(); + } + + public void addRequiredItem(String item) + { + requiredWornItems.add(item); + } + + public String getName() + { + return this.name; + } + + public int getWornTemplateCount(CreatureObject creature) + { + int wornItems = 0; + for (SWGObject item : creature.getEquipmentList().get()) + { + if(requiredWornItems.contains(item.getTemplate()) || requiredWornItems.contains(item.getStfName())) wornItems++; + } + return wornItems; + } + + public void callScript(CreatureObject creature) + { + PyObject func = NGECore.getInstance().scriptService.getMethod("scripts/equipment/bonus_sets/", name, "handleChange"); + if(func != null) func.__call__(Py.java2py(NGECore.getInstance()), Py.java2py(creature), Py.java2py(this)); + } +} diff --git a/src/services/object/ObjectService.java b/src/services/object/ObjectService.java index fa2da302..cb85e06d 100644 --- a/src/services/object/ObjectService.java +++ b/src/services/object/ObjectService.java @@ -272,9 +272,7 @@ public class ObjectService implements INetworkDispatch { public void loadServerTemplates() { System.out.println("Loading server templates..."); - for(Runnable r : loadServerTemplateTasks) { - r.run(); - } + loadServerTemplateTasks.forEach(Runnable::run); loadServerTemplateTasks.clear(); System.out.println("Finished loading server templates..."); } @@ -639,6 +637,20 @@ public class ObjectService implements INetworkDispatch { return; } + if(object.getStringAttribute("proc_name") != null) + { + if(object.getAttachment("tempUseCount") != null) + { + int useCount = (int)object.getAttachment("tempUseCount"); // Seefo: Placeholder until delta for stack count/use count + + if((useCount - 1) == 0) destroyObject(object); + else object.setAttachment("tempUseCount", useCount--); + } + + // Seefo: We need to add cool downs for buff items + core.buffService.addBuffToCreature(creature, object.getStringAttribute("proc_name").replace("@ui_buff:", ""), creature); + } + String filePath = "scripts/" + object.getTemplate().split("shared_" , 2)[0].replace("shared_", "") + object.getTemplate().split("shared_" , 2)[1].replace(".iff", "") + ".py"; if (FileUtilities.doesFileExist(filePath)) { @@ -993,8 +1005,8 @@ public class ObjectService implements INetworkDispatch { if (duplicate.containsKey(containerId)) { containerId = duplicate.get(containerId); } - - if (objectId != 0 && getObject(objectId) != null) { + String planetName = planet.getName(); + if (objectId != 0 && getObject(objectId) != null && (planetName.contains("dungeon") || planetName.contains("adventure"))) { SWGObject container = getObject(containerId); int x = ((int) (px + ((container == null) ? x1 : container.getPosition().x))); int z = ((int) (pz + ((container == null) ? z1 : container.getPosition().z))); @@ -1018,6 +1030,8 @@ public class ObjectService implements INetworkDispatch { SWGObject object; if(objectId != 0 && containerId == 0) { if(portalCRC != 0) { + if (core.getBuildingODB().contains(objectId, Long.class, BuildingObject.class) && !duplicate.containsValue(objectId)) + continue; containers.add(objectId); object = createObject(template, objectId, planet, new Point3D(px + x1, py, pz + z1), new Quaternion(qw, qx, qy, qz), null, true, false); object.setAttachment("childObjects", null); @@ -1027,14 +1041,14 @@ public class ObjectService implements INetworkDispatch { ((BuildingObject) object).getTransaction().commitSync(); }*/ } else { - object = createObject(template, objectId, planet, new Point3D(px + x1, py, pz + z1), new Quaternion(qw, qx, qy, qz), null, false, false); + object = createObject(template, 0, planet, new Point3D(px + x1, py, pz + z1), new Quaternion(qw, qx, qy, qz), null, false, false); } if(object == null) continue; object.setContainerPermissions(WorldPermissions.WORLD_PERMISSIONS); if(radius > 256) object.setAttachment("bigSpawnRange", new Boolean(true)); - if (!duplicate.containsValue(objectId) && object instanceof BuildingObject) + if (!duplicate.containsValue(objectId) && object instanceof BuildingObject && portalCRC != 0) persistentBuildings.add((BuildingObject) object); } else if(containerId != 0) { object = createObject(template, 0, planet, new Point3D(px, py, pz), new Quaternion(qw, qx, qy, qz), null, false, false); @@ -1071,6 +1085,7 @@ public class ObjectService implements INetworkDispatch { building.createTransaction(core.getBuildingODB().getEnvironment()); core.getBuildingODB().put(building, Long.class, BuildingObject.class, building.getTransaction()); building.getTransaction().commitSync(); + destroyObject(building); } } diff --git a/src/services/spawn/MobileTemplate.java b/src/services/spawn/MobileTemplate.java index 9b1cb401..4d289bb8 100644 --- a/src/services/spawn/MobileTemplate.java +++ b/src/services/spawn/MobileTemplate.java @@ -44,7 +44,7 @@ public class MobileTemplate { private float scale = 1; // this is a custom attack Range setting to use for large mobs like krayts private int attackRange; - private String customWeaponTemplate; + private Vector weaponTemplates = new Vector(); public Vector getTemplates() { return templates; @@ -158,13 +158,11 @@ public class MobileTemplate { this.attackRange = attackRange; } - public void setCustomWeaponTemplate(String template) - { - this.customWeaponTemplate = template; + public Vector getWeaponTemplates() { + return weaponTemplates; } - - public String getCustomWeaponTemplate() - { - return customWeaponTemplate; + + public void setWeaponTemplates(Vector weaponTemplates) { + this.weaponTemplates = weaponTemplates; } } diff --git a/src/services/spawn/SpawnService.java b/src/services/spawn/SpawnService.java index c26defae..bd0aadd1 100644 --- a/src/services/spawn/SpawnService.java +++ b/src/services/spawn/SpawnService.java @@ -112,8 +112,8 @@ public class SpawnService { creature.setLevel(level); else creature.setLevel(mobileTemplate.getLevel()); - WeaponObject defaultWeapon = (mobileTemplate.getCustomWeaponTemplate() != null) ? (WeaponObject) core.objectService.createObject(mobileTemplate.getCustomWeaponTemplate(), creature.getPlanet()) : (WeaponObject) core.objectService.createObject("object/weapon/creature/shared_creature_default_weapon.iff", creature.getPlanet()); - defaultWeapon.setAttackSpeed(2); + WeaponObject defaultWeapon = (mobileTemplate.getWeaponTemplates().size() > 0) ? (WeaponObject) core.objectService.createObject(mobileTemplate.getWeaponTemplates().get(new Random().nextInt(mobileTemplate.getWeaponTemplates().size())), creature.getPlanet()) : (WeaponObject) core.objectService.createObject("object/weapon/creature/shared_creature_default_weapon.iff", creature.getPlanet()); + //defaultWeapon.setAttackSpeed(2); defaultWeapon.setDamageType("@obj_attr_n:armor_eff_kinetic"); defaultWeapon.setStringAttribute("cat_wpn_damage.damage", "0-0"); if(mobileTemplate.getAttackRange() > 0)