v3.0.0: added a remains item for Cleric, buffed Warrior's remains item
This commit is contained in:
@@ -903,6 +903,8 @@ items.remains.cloakscrap.name=scrap of fabric
|
||||
items.remains.cloakscrap.desc=This scrap of translucent fabric looks like it came from a late Rogue's cloak of shadows. You can still feel a little mystical energy left in it, you can use it to give your artifacts a little charge boost. Doing this will destroy the fabric however.
|
||||
items.remains.sealshard.name=seal shards
|
||||
items.remains.sealshard.desc=These tiny shards of red wax look like they came from the seal of a fallen Warrior. You can still feel a bit of willpower clinging to the seal, you can use it to give yourself a bit of shielding. Doing this will destroy the seal shards however.
|
||||
items.remains.tornpage.name=torn page
|
||||
items.remains.tornpage.desc=This page looks like it was ripped out of an expired Cleric's holy tome. There's still a little divine energy clinging to it, you can use it to regain a little bit of health. Doing this will destroy the torn page however.
|
||||
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
@@ -90,8 +90,8 @@ public abstract class RemainsItem extends Item {
|
||||
return new BowFragment();
|
||||
case DUELIST:
|
||||
return new BrokenHilt();
|
||||
case CLERIC: //TODO CLERIC remains item
|
||||
return new SealShard();
|
||||
case CLERIC:
|
||||
return new TornPage();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ public class SealShard extends RemainsItem {
|
||||
|
||||
@Override
|
||||
protected void doEffect(Hero hero) {
|
||||
Buff.affect(hero, Barrier.class).incShield(hero.HT/10);
|
||||
Buff.affect(hero, Barrier.class).incShield(Math.round(hero.HT/5f));
|
||||
hero.sprite.showStatusWithIcon( CharSprite.POSITIVE, Integer.toString(hero.HT/10), FloatingText.SHIELDING );
|
||||
Sample.INSTANCE.play(Assets.Sounds.UNLOCK);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Pixel Dungeon
|
||||
* Copyright (C) 2012-2015 Oleg Dolya
|
||||
*
|
||||
* Shattered Pixel Dungeon
|
||||
* Copyright (C) 2014-2024 Evan Debenham
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
*/
|
||||
|
||||
package com.shatteredpixel.shatteredpixeldungeon.items.remains;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Assets;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.effects.FloatingText;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.CharSprite;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||
import com.watabou.noosa.audio.Sample;
|
||||
|
||||
public class TornPage extends RemainsItem {
|
||||
|
||||
{
|
||||
image = ItemSpriteSheet.TORN_PAGE;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doEffect(Hero hero) {
|
||||
int toHeal = Math.round(hero.HT/10f);
|
||||
hero.HP = Math.min(hero.HP + toHeal, hero.HT);
|
||||
hero.sprite.showStatusWithIcon( CharSprite.POSITIVE, Integer.toString(toHeal), FloatingText.HEALING );
|
||||
Sample.INSTANCE.play( Assets.Sounds.READ );
|
||||
}
|
||||
|
||||
}
|
||||
@@ -96,6 +96,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.remains.BrokenHilt;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.remains.BrokenStaff;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.remains.CloakScrap;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.remains.SealShard;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.remains.TornPage;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.exotic.ExoticScroll;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.spells.Alchemize;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.spells.BeaconOfReturning;
|
||||
@@ -257,7 +258,7 @@ public enum Catalog {
|
||||
CorpseDust.class, Embers.class, CeremonialCandle.class, DarkGold.class, DwarfToken.class,
|
||||
GooBlob.class, TengusMask.class, MetalShard.class, KingsCrown.class,
|
||||
LiquidMetal.class, ArcaneResin.class,
|
||||
SealShard.class, BrokenStaff.class, CloakScrap.class, BowFragment.class, BrokenHilt.class);
|
||||
SealShard.class, BrokenStaff.class, CloakScrap.class, BowFragment.class, BrokenHilt.class, TornPage.class);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -151,7 +151,8 @@ public class ItemSpriteSheet {
|
||||
public static final int CLOAK_SCRAP = MISC_CONSUMABLE +18;
|
||||
public static final int BOW_FRAGMENT = MISC_CONSUMABLE +19;
|
||||
public static final int BROKEN_HILT = MISC_CONSUMABLE +20;
|
||||
public static final int TRINKET_CATA = MISC_CONSUMABLE +21;
|
||||
public static final int TORN_PAGE = MISC_CONSUMABLE +21;
|
||||
public static final int TRINKET_CATA = MISC_CONSUMABLE +22;
|
||||
|
||||
static{
|
||||
assignItemRect(ANKH, 10, 16);
|
||||
@@ -178,6 +179,7 @@ public class ItemSpriteSheet {
|
||||
assignItemRect(CLOAK_SCRAP, 9, 9);
|
||||
assignItemRect(BOW_FRAGMENT, 12, 9);
|
||||
assignItemRect(BROKEN_HILT, 9, 9);
|
||||
assignItemRect(TORN_PAGE, 11, 13);
|
||||
|
||||
assignItemRect(TRINKET_CATA, 12, 11);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user