mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-28 23:15:53 -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.
47 lines
715 B
Python
47 lines
715 B
Python
import sys
|
|
|
|
def addExpertisePoint(core, actor):
|
|
|
|
player = actor.getSlottedObject('ghost')
|
|
|
|
if not player:
|
|
return
|
|
|
|
if not player.getProfession() == 'all_1a':
|
|
return
|
|
|
|
actor.addSkill('expertise_test_postreq_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_test_postreq_1')
|
|
|
|
|
|
removeAbilities(core, actor, 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
|