mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
example of heroic jewelry stats
would need to move this out of demo. but the basic idea how to create them.
This commit is contained in:
@@ -1,4 +1,25 @@
|
||||
import sys
|
||||
|
||||
def setup(core, object):
|
||||
return
|
||||
|
||||
def equip(core, actor, object):
|
||||
|
||||
|
||||
##Heroism
|
||||
if object.getStfName() == ('item_bracelet_r_set_hero_01_01'):
|
||||
core.skillModService.addSkillMod(actor, 'strength_modified', 30)
|
||||
core.skillModService.addSkillMod(actor, 'precision_modified', 30)
|
||||
core.skillModService.addSkillMod(actor, 'luck_modified', 30)
|
||||
return
|
||||
return
|
||||
|
||||
def unequip(core, actor, object):
|
||||
|
||||
##Heroism
|
||||
if object.getStfName() == ('item_bracelet_r_set_hero_01_01'):
|
||||
core.skillModService.deductSkillMod(actor, 'strength_modified', 30)
|
||||
core.skillModService.deductSkillMod(actor, 'precision_modified', 30)
|
||||
core.skillModService.deductSkillMod(actor, 'luck_modified', 30)
|
||||
return
|
||||
return
|
||||
@@ -1,4 +1,25 @@
|
||||
import sys
|
||||
|
||||
def setup(core, object):
|
||||
return
|
||||
|
||||
def equip(core, actor, object):
|
||||
|
||||
|
||||
##Heroism
|
||||
if object.getStfName() == ('item_necklace_set_hero_01_01'):
|
||||
core.skillModService.addSkillMod(actor, 'strength_modified', 30)
|
||||
core.skillModService.addSkillMod(actor, 'precision_modified', 30)
|
||||
core.skillModService.addSkillMod(actor, 'luck_modified', 30)
|
||||
return
|
||||
return
|
||||
|
||||
def unequip(core, actor, object):
|
||||
|
||||
##Heroism
|
||||
if object.getStfName() == ('item_necklace_set_hero_01_01'):
|
||||
core.skillModService.deductSkillMod(actor, 'strength_modified', 30)
|
||||
core.skillModService.deductSkillMod(actor, 'precision_modified', 30)
|
||||
core.skillModService.deductSkillMod(actor, 'luck_modified', 30)
|
||||
return
|
||||
return
|
||||
Reference in New Issue
Block a user