mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-14 00:02:07 -04:00
Created missing expertise scripts and filled them with data from the game. Leaving Commando out for now as my version have a different approach which I want to discuss with devs first. Also added PyCharm project directory to the .gitignore file.
49 lines
780 B
Python
49 lines
780 B
Python
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')
|
|
|
|
return
|
|
|
|
def removeAbilities(core, actor, player):
|
|
|
|
actor.removeAbility('of_pistol_dm')
|
|
|
|
return
|