bankSurcharge placement after tipAmount found

This commit is contained in:
RobCubed
2014-10-28 21:26:02 -04:00
parent 6e605a0caa
commit 9edc362d9b
+2 -1
View File
@@ -37,7 +37,6 @@ def run(core, actor, target, commandString):
actorID = actor.getObjectID()
commandArgs = commandString.split(" ")
commandLength = len(commandArgs)
bankSurcharge = int(math.ceil(0.05 * float(tipAmount))) # Accurate tipping tax - prevents floating point error
# Determine type of tip
if not commandArgs[0].isdigit():
@@ -61,6 +60,8 @@ def run(core, actor, target, commandString):
else:
actor.sendSystemMessage('Unrecognized tip command', 0)
return
bankSurcharge = int(math.ceil(0.05 * float(tipAmount))) # Accurate tipping tax - prevents floating point error
#/tip int || /tip target int