summaryrefslogtreecommitdiff
path: root/snowbrawl.py
diff options
context:
space:
mode:
authorPanFritz <redstonenoobpan@gmail.com>2015-07-06 21:46:44 +0200
committerPanFritz <redstonenoobpan@gmail.com>2015-07-06 21:46:44 +0200
commit39b179cf429f3bc1cf408e6ffec4a688c72334e3 (patch)
tree03c04893892c12f545dba7edc5ac815d428f4234 /snowbrawl.py
parent839baffb24ae90458837260cf42c81733cdfe32e (diff)
Changed snowball damage to floats
Diffstat (limited to 'snowbrawl.py')
-rw-r--r--snowbrawl.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/snowbrawl.py b/snowbrawl.py
index e0f5bc1..7b14d56 100644
--- a/snowbrawl.py
+++ b/snowbrawl.py
@@ -358,7 +358,7 @@ class Arena(object):
return data
def load(self, data):
- self.explosion_damage = int(data["explosion"])
+ self.explosion_damage = float(data["explosion"])
self.player_limit = int(data["players"])
self.refill = int(data["refill"])
self.arena_type = str(data["type"])
@@ -843,12 +843,12 @@ def modify_arena(sender, args):
msg(sender, "&a-&e Set player limit to:&6 %s" % int(args[2]))
elif args[1] == "explosion":
try:
- int(args[2])
+ float(args[2])
except ValueError:
msg(sender, "&cLast parameter has to be a number")
return
- arena.set_explosion_damage(int(args[2]))
- msg(sender, "&a-&e Set explosion power to:&6 %s" % int(args[2]))
+ arena.set_explosion_damage(float(args[2]))
+ msg(sender, "&a-&e Set explosion power to:&6 %s" % float(args[2]))
elif args[1] == "refill":
try:
int(args[2])