Files
NGECore2/scripts/expertise/expertise_of_dm_1.py
T
Dan 2e795c0064 Added the missing expertise scripts
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.
2013-09-08 21:30:39 +02:00

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