v3.1.0: hermit crabs can now drop mystery meat too (3x odds)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user