diff --git a/core/src/main/assets/interfaces/buffs.png b/core/src/main/assets/interfaces/buffs.png index abe8292e0..30c06e58f 100644 Binary files a/core/src/main/assets/interfaces/buffs.png and b/core/src/main/assets/interfaces/buffs.png differ diff --git a/core/src/main/assets/interfaces/large_buffs.png b/core/src/main/assets/interfaces/large_buffs.png index 74d833379..482a26130 100644 Binary files a/core/src/main/assets/interfaces/large_buffs.png and b/core/src/main/assets/interfaces/large_buffs.png differ diff --git a/core/src/main/assets/messages/actors/actors.properties b/core/src/main/assets/messages/actors/actors.properties index cd4133ae2..e166634ec 100644 --- a/core/src/main/assets/messages/actors/actors.properties +++ b/core/src/main/assets/messages/actors/actors.properties @@ -238,6 +238,9 @@ actors.buffs.paralysis.heromsg=You are paralysed! actors.buffs.paralysis.out=resisted paralysis actors.buffs.paralysis.desc=Oftentimes the worst thing to do is nothing at all.\n\nParalysis completely halts all actions, forcing the target to wait until the effect wears off. The pain from taking damage can cause characters to resist paralysis, breaking them out of the effect.\n\nTurns of paralysis remaining: %s. +actors.buffs.pincushion.name=Pincushion +actors.buffs.pincushion.desc=The thrown weapons you have used against this character are currently stuck to them and will fall to the floor after they are defeated.\n\nThe following items are currently attached: + actors.buffs.poison.name=Poisoned actors.buffs.poison.heromsg=You are poisoned! actors.buffs.poison.ondeath=You died from poison... diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/PinCushion.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/PinCushion.java index 6c6dbffe4..9f23476af 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/PinCushion.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/PinCushion.java @@ -24,6 +24,8 @@ package com.shatteredpixel.shatteredpixeldungeon.actors.buffs; import com.shatteredpixel.shatteredpixeldungeon.Dungeon; import com.shatteredpixel.shatteredpixeldungeon.items.Item; import com.shatteredpixel.shatteredpixeldungeon.items.weapon.missiles.MissileWeapon; +import com.shatteredpixel.shatteredpixeldungeon.messages.Messages; +import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator; import com.watabou.utils.Bundle; import java.util.ArrayList; @@ -63,4 +65,24 @@ public class PinCushion extends Buff { items = new ArrayList<>((Collection) ((Collection) bundle.getCollection(ITEMS))); super.restoreFromBundle( bundle ); } + + @Override + public int icon() { + return BuffIndicator.PINCUSHION; + } + + @Override + public String toString() { + return Messages.get(this, "name"); + } + + @Override + public String desc() { + String desc = Messages.get(this, "desc"); + for (Item i : items){ + desc += "\n" + i.toString(); + } + return desc; + } + } diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/BuffIndicator.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/BuffIndicator.java index 8da6fb749..1c19a5d38 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/BuffIndicator.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/BuffIndicator.java @@ -94,6 +94,7 @@ public class BuffIndicator extends Component { public static final int VULNERABLE = 46; public static final int HEX = 47; public static final int DEGRADE = 48; + public static final int PINCUSHION = 49; public static final int SIZE = 7;