use ternary conditional for diff_multi set
@@ -72,13 +72,10 @@ class Mobs(commands.Cog): # fuck I really don't want to work on this
db_guild = await self.db.fetch_guild(ctx.guild.id)
diff = db_guild['difficulty']
- if diff == 'peaceful':
- return
+ if diff == 'peaceful': return
# difficulty multiplier
- diff_multi = 1
- if diff == 'hard':
- diff_multi *= 1.5
+ diff_multi = 1.5 if diff == 'hard' else 1
# type of mob that will be spawned, just a string
mob_key = random.choice(list(self.d.mobs_mech.mobs))
