v2.5.0: fixed tormented spirits not consuming SoRC, also buffed them
This commit is contained in:
+8
-8
@@ -29,7 +29,7 @@ import com.shatteredpixel.shatteredpixeldungeon.effects.particles.ShaftParticle;
|
|||||||
import com.shatteredpixel.shatteredpixeldungeon.items.Generator;
|
import com.shatteredpixel.shatteredpixeldungeon.items.Generator;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.armor.Armor;
|
import com.shatteredpixel.shatteredpixeldungeon.items.armor.Armor;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.melee.MeleeWeapon;
|
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.Weapon;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.TormentedSpiritSprite;
|
import com.shatteredpixel.shatteredpixeldungeon.sprites.TormentedSpiritSprite;
|
||||||
import com.watabou.noosa.audio.Sample;
|
import com.watabou.noosa.audio.Sample;
|
||||||
@@ -57,22 +57,22 @@ public class TormentedSpirit extends Wraith {
|
|||||||
Sample.INSTANCE.play( Assets.Sounds.GHOST );
|
Sample.INSTANCE.play( Assets.Sounds.GHOST );
|
||||||
yell(Messages.get(this, "thank_you"));
|
yell(Messages.get(this, "thank_you"));
|
||||||
|
|
||||||
//50/50 between weapon or armor, always uncursed
|
//50/50 between weapon or armor, always uncursed & enchanted, 50% chance to be +1 if level 0
|
||||||
Item prize;
|
Item prize;
|
||||||
if (Random.Int(2) == 0){
|
if (Random.Int(2) == 0){
|
||||||
prize = Generator.randomWeapon(true);
|
prize = Generator.randomWeapon(true);
|
||||||
if (((MeleeWeapon)prize).hasCurseEnchant()){
|
((Weapon)prize).enchant();
|
||||||
((MeleeWeapon) prize).enchantment = null;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
prize = Generator.randomArmor();
|
prize = Generator.randomArmor();
|
||||||
if (((Armor) prize).hasCurseGlyph()){
|
((Armor) prize).inscribe();
|
||||||
((Armor) prize).glyph = null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
prize.cursed = false;
|
prize.cursed = false;
|
||||||
prize.cursedKnown = true;
|
prize.cursedKnown = true;
|
||||||
|
|
||||||
|
if (prize.level() == 0 && Random.Int(2) == 0){
|
||||||
|
prize.upgrade();
|
||||||
|
}
|
||||||
|
|
||||||
Dungeon.level.drop(prize, pos).sprite.drop();
|
Dungeon.level.drop(prize, pos).sprite.drop();
|
||||||
|
|
||||||
destroy();
|
destroy();
|
||||||
|
|||||||
+1
@@ -68,6 +68,7 @@ public class ScrollOfRemoveCurse extends InventoryScroll {
|
|||||||
Degrade.detach(curUser, Degrade.class);
|
Degrade.detach(curUser, Degrade.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
detach(curUser.belongings.backpack);
|
||||||
GLog.p(Messages.get(this, "spirit"));
|
GLog.p(Messages.get(this, "spirit"));
|
||||||
spirit.cleanse();
|
spirit.cleanse();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user