v2.1.0: fixed incorrect weapon properties from ghost quest

This commit is contained in:
Evan Debenham
2023-05-18 15:01:26 -04:00
parent 94f85815ab
commit 571dc2bfff

View File

@@ -317,6 +317,11 @@ public class Ghost extends NPC {
int wepTier = Random.chances(new float[]{0, 0, 10, 6, 3, 1});
weapon = (Weapon) Generator.randomUsingDefaults(Generator.wepTiers[wepTier - 1]);
//clear weapon's starting properties
weapon.level(0);
weapon.enchant(null);
weapon.cursed = false;
//50%:+0, 30%:+1, 15%:+2, 5%:+3
float itemLevelRoll = Random.Float();
int itemLevel;