mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-21 11:03:00 -04:00
Merge pull request #123 from Ziggeh/master
Added profession badges and changed healing CD reduction to be done through scripts
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, buff):
|
||||
core.skillModService.addSkillMod(actor, 'expertise_healing_all', 20)
|
||||
return
|
||||
|
||||
def removeBuff(core, actor, buff):
|
||||
core.skillModService.deductSkillMod(actor, 'expertise_healing_all', 20)
|
||||
return
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
import sys
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run():
|
||||
return
|
||||
|
||||
def addMasterBadge(core, actor):
|
||||
if actor.getLevel() == 90:
|
||||
core.collectionService.addCollection(actor, "new_prof_bountyhunter_master")
|
||||
return
|
||||
@@ -0,0 +1,12 @@
|
||||
import sys
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run():
|
||||
return
|
||||
|
||||
def addMasterBadge(core, actor):
|
||||
if actor.getLevel() == 90:
|
||||
core.collectionService.addCollection(actor, "new_prof_commando_master")
|
||||
return
|
||||
@@ -0,0 +1,12 @@
|
||||
import sys
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run():
|
||||
return
|
||||
|
||||
def addMasterBadge(core, actor):
|
||||
if actor.getLevel() == 90:
|
||||
core.collectionService.addCollection(actor, "new_prof_social_entertainer_master")
|
||||
return
|
||||
@@ -0,0 +1,12 @@
|
||||
import sys
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run():
|
||||
return
|
||||
|
||||
def addMasterBadge(core, actor):
|
||||
if actor.getLevel() == 90:
|
||||
core.collectionService.addCollection(actor, "new_prof_jedi_master")
|
||||
return
|
||||
@@ -0,0 +1,12 @@
|
||||
import sys
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run():
|
||||
return
|
||||
|
||||
def addMasterBadge(core, actor):
|
||||
if actor.getLevel() == 90:
|
||||
core.collectionService.addCollection(actor, "new_prof_medic_master")
|
||||
return
|
||||
@@ -0,0 +1,12 @@
|
||||
import sys
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run():
|
||||
return
|
||||
|
||||
def addMasterBadge(core, actor):
|
||||
if actor.getLevel() == 90:
|
||||
core.collectionService.addCollection(actor, "new_prof_officer_master")
|
||||
return
|
||||
@@ -0,0 +1,12 @@
|
||||
import sys
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run():
|
||||
return
|
||||
|
||||
def addMasterBadge(core, actor):
|
||||
if actor.getLevel() == 90:
|
||||
core.collectionService.addCollection(actor, "new_prof_smuggler_master")
|
||||
return
|
||||
@@ -0,0 +1,12 @@
|
||||
import sys
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run():
|
||||
return
|
||||
|
||||
def addMasterBadge(core, actor):
|
||||
if actor.getLevel() == 90:
|
||||
core.collectionService.addCollection(actor, "new_prof_spy_master")
|
||||
return
|
||||
@@ -0,0 +1,15 @@
|
||||
import sys
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run():
|
||||
return
|
||||
|
||||
def addMasterBadge(core, actor):
|
||||
if actor.getLevel() == 90:
|
||||
core.collectionService.addCollection(actor, "new_prof_crafting_merchant_master")
|
||||
core.collectionService.addCollection(actor, "new_prof_crafting_artisan_master")
|
||||
core.collectionService.addCollection(actor, "new_prof_crafting_chef_master")
|
||||
core.collectionService.addCollection(actor, "new_prof_crafting_tailor_master")
|
||||
return
|
||||
@@ -0,0 +1,14 @@
|
||||
import sys
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run():
|
||||
return
|
||||
|
||||
def addMasterBadge(core, actor):
|
||||
if actor.getLevel() == 90:
|
||||
core.collectionService.addCollection(actor, "new_prof_crafting_merchant_master")
|
||||
core.collectionService.addCollection(actor, "new_prof_crafting_artisan_master")
|
||||
core.collectionService.addCollection(actor, "new_prof_crafting_architect_master")
|
||||
return
|
||||
@@ -0,0 +1,15 @@
|
||||
import sys
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run():
|
||||
return
|
||||
|
||||
def addMasterBadge(core, actor):
|
||||
if actor.getLevel() == 90:
|
||||
core.collectionService.addCollection(actor, "new_prof_crafting_merchant_master")
|
||||
core.collectionService.addCollection(actor, "new_prof_crafting_artisan_master")
|
||||
core.collectionService.addCollection(actor, "new_prof_crafting_armorsmith_master")
|
||||
core.collectionService.addCollection(actor, "new_prof_crafting_weaponsmith_master")
|
||||
return
|
||||
@@ -0,0 +1,14 @@
|
||||
import sys
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run():
|
||||
return
|
||||
|
||||
def addMasterBadge(core, actor):
|
||||
if actor.getLevel() == 90:
|
||||
core.collectionService.addCollection(actor, "new_prof_crafting_merchant_master")
|
||||
core.collectionService.addCollection(actor, "new_prof_crafting_artisan_master")
|
||||
core.collectionService.addCollection(actor, "new_prof_crafting_droidengineer_master")
|
||||
return
|
||||
@@ -0,0 +1,9 @@
|
||||
import sys
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
|
||||
core.buffService.addBuffToCreature(actor, 'co_first_aid_training')
|
||||
return
|
||||
@@ -0,0 +1,8 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, target, command):
|
||||
if actor.getSkillMod('expertise_cooldown_line_of_heal'):
|
||||
command.setCooldown(command.getCooldown() - actor.getSkillMod('expertise_cooldown_line_of_heal').getBase())
|
||||
return
|
||||
def run(core, actor, target, commandString):
|
||||
return
|
||||
@@ -0,0 +1,8 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, target, command):
|
||||
if actor.getSkillMod('expertise_cooldown_line_of_heal'):
|
||||
command.setCooldown(command.getCooldown() - actor.getSkillMod('expertise_cooldown_line_of_heal').getBase())
|
||||
return
|
||||
def run(core, actor, target, commandString):
|
||||
return
|
||||
@@ -0,0 +1,8 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, target, command):
|
||||
if actor.getSkillMod('expertise_cooldown_line_of_heal'):
|
||||
command.setCooldown(command.getCooldown() - actor.getSkillMod('expertise_cooldown_line_of_heal').getBase())
|
||||
return
|
||||
def run(core, actor, target, commandString):
|
||||
return
|
||||
@@ -0,0 +1,10 @@
|
||||
import sys
|
||||
|
||||
def setup(core, actor, target, command):
|
||||
|
||||
if actor.getSkillMod('expertise_cooldown_line_of_heal'):
|
||||
command.setCooldown(command.getCooldown() - actor.getSkillMod('expertise_cooldown_line_of_heal').getBase())
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
return
|
||||
@@ -6,9 +6,7 @@ def setup():
|
||||
def run(core, actor, target, commandString):
|
||||
|
||||
commandArgs = commandString.split("(^-,=+_)color_13548(,+-=_^)=1")
|
||||
|
||||
newString = commandArgs[0]
|
||||
print (newString)
|
||||
cmdService = core.commandService
|
||||
cmdService.callCommand(actor, 'waypoint', None, newString) # No need to re-create a script
|
||||
|
||||
core.commandService.callCommand(actor, 'waypoint', None, newString)
|
||||
return
|
||||
@@ -74,7 +74,6 @@ def run(core, actor, target, commandString):
|
||||
waypoint.setActive(True)
|
||||
waypoint.setColor(WaypointObject.BLUE)
|
||||
name = commandString.split(" ", 5)
|
||||
print (name)
|
||||
if name == "":
|
||||
name = "Waypoint"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user