From 9edc362d9bbf7df0bf8a573cb3f725564ba4e819 Mon Sep 17 00:00:00 2001 From: RobCubed Date: Tue, 28 Oct 2014 21:26:02 -0400 Subject: [PATCH] bankSurcharge placement after tipAmount found --- scripts/commands/tip.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/commands/tip.py b/scripts/commands/tip.py index d1f2c6ca..9a4fac64 100644 --- a/scripts/commands/tip.py +++ b/scripts/commands/tip.py @@ -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