v3.1.0: hermit crabs can now drop mystery meat too (3x odds)

This commit is contained in:
Evan Debenham
2025-05-12 13:35:30 -04:00
parent e51d0f5f62
commit 853a3d901a

View File

@@ -21,6 +21,7 @@
package com.shatteredpixel.shatteredpixeldungeon.actors.mobs;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.items.Generator;
import com.shatteredpixel.shatteredpixeldungeon.sprites.HermitCrabSprite;
@@ -32,8 +33,17 @@ public class HermitCrab extends Crab {
HP = HT = 25; //+67% HP
baseSpeed = 1f; //-50% speed
loot = Generator.Category.ARMOR;
lootChance = 1f;
//3x more likely to drop meat, and drops a guaranteed armor
lootChance = 0.5f;
}
@Override
public void rollToDropLoot() {
super.rollToDropLoot();
if (Dungeon.hero.lvl > maxLvl + 2){
Dungeon.level.drop(Generator.randomArmor(), pos).sprite.drop();
}
}
@Override