From ed4e92e49516e5c5e653674f9757333bbf028cbb Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 8 Jan 2015 14:55:44 -0500 Subject: [PATCH] v0.2.3c: Corrected swarm potion drop logic to respect order of operations, I do infact know 3rd grade math, I swear. --- .../shatteredpixel/shatteredpixeldungeon/actors/mobs/Swarm.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Swarm.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Swarm.java index f5047d4f8..bc5e9b4e0 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Swarm.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Swarm.java @@ -136,7 +136,7 @@ public class Swarm extends Mob { @Override public void die( Object cause ){ //sets drop chance - lootChance = 1f/((5 + Dungeon.limitedDrops.swarmHP.count ) * generation+1 ); + lootChance = 1f/((5 + Dungeon.limitedDrops.swarmHP.count ) * (generation+1) ); super.die( cause ); }