v0.2.4: added potion bandolier, refactored logic for bag generation.

This commit is contained in:
Evan Debenham
2015-02-05 17:13:59 -05:00
parent 7b3747fd05
commit 7cc5192839
10 changed files with 155 additions and 33 deletions
@@ -0,0 +1,35 @@
package com.shatteredpixel.shatteredpixeldungeon.items.bags;
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
import com.shatteredpixel.shatteredpixeldungeon.items.potions.Potion;
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
/**
* Created by debenhame on 05/02/2015.
*/
public class PotionBandolier extends Bag {
{
name = "potion bandolier";
image = ItemSpriteSheet.BANDOLIER;
size = 12;
}
@Override
public boolean grab( Item item ) {
return item instanceof Potion;
}
@Override
public int price() {
return 50;
}
@Override
public String info() {
return
"This thick bandoler fits around your chest like a sash, holding onto your potions for you.\n\n" +
"It is made of warm animal hide, which should protect your potions from the cold.";
}
}
@@ -43,7 +43,7 @@ public class ScrollHolder extends Bag {
@Override
public String info() {
return
"You can place any number of scrolls into this tubular container. " +
"It saves room in your backpack and protects scrolls from fire.";
"This tubular container looks like it would hold an astronomer's charts, but your scrolls will fit just as well.\n\n" +
"The holder doesn't look very flammable, so your scrolls should be safe from fire inside it.";
}
}
@@ -64,7 +64,7 @@ public class WandHolster extends Bag {
@Override
public String info() {
return
"This slim holder is made of leather of some exotic animal. " +
"It allows to compactly carry up to " + size + " wands.";
"This slim holster is made from some exotic animal, and is designed to compactly carry up to " + size + " wands.\n\n" +
"The size seems a bit excessive, who would ever have that many wands?";
}
}