v3.2.0: trickster no longer drops upgraded or cursed thrown weps

This commit is contained in:
Evan Debenham
2025-07-26 14:41:35 -04:00
committed by Evan Debenham
parent ce17b1f52a
commit d12670bc4d

View File

@@ -53,7 +53,7 @@ public class GnollTrickster extends Gnoll {
WANDERING = new Wandering();
state = WANDERING;
//at half quantity, see createLoot()
//at quantity of 1 and no upgrades
loot = Generator.Category.MISSILE;
lootChance = 1f;
@@ -126,6 +126,12 @@ public class GnollTrickster extends Gnoll {
@Override
public Item createLoot() {
MissileWeapon drop = (MissileWeapon)super.createLoot();
drop.level(0);
if (drop.hasCurseEnchant()){
drop.enchant(null);
}
drop.cursed = false;
drop.identify(false);
//half quantity, rounded up
drop.quantity((drop.quantity()+1)/2);
return drop;