From 685566857bc94d82965aa9a5d771c4e2ed7b941d Mon Sep 17 00:00:00 2001 From: Waverunner Date: Tue, 10 Dec 2013 19:24:07 -0500 Subject: [PATCH] Fixed credits in setgodmode --- scripts/commands/setgodmode.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/commands/setgodmode.py b/scripts/commands/setgodmode.py index 442cd9ad..b53ea067 100644 --- a/scripts/commands/setgodmode.py +++ b/scripts/commands/setgodmode.py @@ -37,9 +37,9 @@ def run(core, actor, target, commandString): position = Point3D(float(arg2), float(arg3), float(arg4)) core.simulationService.transferToPlanet(actor, core.terrainService.getPlanetByName(arg1), position, actor.getOrientation(), None) - elif command == 'cash' and arg1 is int(arg1): - actor.setCash(actor.getCash() + int(arg1)) - actor.sendSystemMessage('The Galactic Empire has transferred ' + arg1 + ' credits to you for your service.') + elif command == 'credits' and arg1: + actor.setCashCredits(actor.getCashCredits() + int(arg1)) + actor.sendSystemMessage('The Galactic Empire has transferred ' + arg1 + ' credits to you for your service.', 0) elif command == 'addability' and arg1: actor.addAbility(str(arg1))