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();
|
WANDERING = new Wandering();
|
||||||
state = WANDERING;
|
state = WANDERING;
|
||||||
|
|
||||||
//at half quantity, see createLoot()
|
//at quantity of 1 and no upgrades
|
||||||
loot = Generator.Category.MISSILE;
|
loot = Generator.Category.MISSILE;
|
||||||
lootChance = 1f;
|
lootChance = 1f;
|
||||||
|
|
||||||
@@ -126,6 +126,12 @@ public class GnollTrickster extends Gnoll {
|
|||||||
@Override
|
@Override
|
||||||
public Item createLoot() {
|
public Item createLoot() {
|
||||||
MissileWeapon drop = (MissileWeapon)super.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
|
//half quantity, rounded up
|
||||||
drop.quantity((drop.quantity()+1)/2);
|
drop.quantity((drop.quantity()+1)/2);
|
||||||
return drop;
|
return drop;
|
||||||
|
|||||||
Reference in New Issue
Block a user