v3.2.0: trickster no longer drops upgraded or cursed thrown weps
This commit is contained in:
committed by
Evan Debenham
parent
ce17b1f52a
commit
d12670bc4d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user