v0.3.4: externalized scroll strings

This commit is contained in:
Evan Debenham
2016-01-02 06:12:59 -05:00
committed by Evan Debenham
parent 5ab29b50fa
commit 7ee1f86ee2
19 changed files with 114 additions and 192 deletions
@@ -21,6 +21,7 @@
package com.shatteredpixel.shatteredpixeldungeon.items.scrolls;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Drowsy;
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
import com.watabou.noosa.audio.Sample;
import com.shatteredpixel.shatteredpixeldungeon.Assets;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
@@ -32,10 +33,6 @@ import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
public class ScrollOfLullaby extends Scroll {
{
initials = "Lu";
}
@Override
protected void doRead() {
@@ -53,19 +50,13 @@ public class ScrollOfLullaby extends Scroll {
Buff.affect( curUser, Drowsy.class );
GLog.i( "The scroll utters a soothing melody. You feel very sleepy." );
GLog.i( Messages.get(this, "sooth") );
setKnown();
readAnimation();
}
@Override
public String desc() {
return
"A soothing melody will lull all who hear it into a deep magical sleep ";
}
@Override
public int price() {
return isKnown() ? 50 * quantity : super.price();