v0.3.0: buff descriptions round 5, all descriptions added
This commit is contained in:
parent
33616a1ce2
commit
b707123f69
|
@ -82,4 +82,13 @@ public class MagicalSleep extends Buff {
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "Magical Sleep";
|
return "Magical Sleep";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String desc() {
|
||||||
|
return "This character has fallen into a deep magical sleep which they will not wake from naturally.\n" +
|
||||||
|
"\n" +
|
||||||
|
"Magical sleep is similar to regular sleep, except that only damage will cause the target to wake up. \n" +
|
||||||
|
"\n" +
|
||||||
|
"For the hero, magical sleep has some restorative properties, allowing them to rapidly heal while resting.";
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -17,6 +17,8 @@
|
||||||
*/
|
*/
|
||||||
package com.shatteredpixel.shatteredpixeldungeon.actors.buffs;
|
package com.shatteredpixel.shatteredpixeldungeon.actors.buffs;
|
||||||
|
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator;
|
import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator;
|
||||||
import com.watabou.utils.Bundle;
|
import com.watabou.utils.Bundle;
|
||||||
|
|
||||||
|
@ -48,4 +50,12 @@ public class SnipersMark extends FlavourBuff {
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "Sniper's mark";
|
return "Sniper's mark";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String desc() {
|
||||||
|
return "The sniper is honed in on the nearby " + ((Char)Actor.findById(object)).name + ", " +
|
||||||
|
"gaining increased attack speed and armor penetration while attacking it.\n" +
|
||||||
|
"\n" +
|
||||||
|
"The sniper will remain honed in until she switches targets, stops attacking, or the target dies.";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,6 +32,7 @@ public class Venom extends Poison implements Hero.Doom {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
//TODO: new icon?
|
||||||
public int icon() {
|
public int icon() {
|
||||||
return BuffIndicator.POISON;
|
return BuffIndicator.POISON;
|
||||||
}
|
}
|
||||||
|
@ -41,6 +42,15 @@ public class Venom extends Poison implements Hero.Doom {
|
||||||
return "Venomed";
|
return "Venomed";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String desc() {
|
||||||
|
return "Venom is a extremely caustic and dangerous poison.\n" +
|
||||||
|
"\n" +
|
||||||
|
"Unlike poison, whose damage lowers over time, venom does increasing damage the longer it stays on a target.\n" +
|
||||||
|
"\n" +
|
||||||
|
"This venom will last for " + dispTurns(left) + ", and is currently dealing " + damage + " damage.";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean act() {
|
public boolean act() {
|
||||||
if (target.isAlive()) {
|
if (target.isAlive()) {
|
||||||
|
|
|
@ -38,6 +38,16 @@ public class Vertigo extends FlavourBuff {
|
||||||
return "Vertigo";
|
return "Vertigo";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String desc() {
|
||||||
|
return "Walking in a straight line can be difficult when the whole world is spinning.\n" +
|
||||||
|
"\n" +
|
||||||
|
"While under the effects of vertigo, characters who attempt to move will go in a random direction, " +
|
||||||
|
"instead of the one they intended to go in. \n" +
|
||||||
|
"\n" +
|
||||||
|
"This Vertigo effect with last for " + dispTurns() + ".";
|
||||||
|
}
|
||||||
|
|
||||||
public static float duration( Char ch ) {
|
public static float duration( Char ch ) {
|
||||||
Resistance r = ch.buff( Resistance.class );
|
Resistance r = ch.buff( Resistance.class );
|
||||||
return r != null ? r.durationFactor() * DURATION : DURATION;
|
return r != null ? r.durationFactor() * DURATION : DURATION;
|
||||||
|
|
|
@ -83,6 +83,10 @@ public class Sungrass extends Plant {
|
||||||
private int healCurr = 1;
|
private int healCurr = 1;
|
||||||
private int count = 0;
|
private int count = 0;
|
||||||
private int level;
|
private int level;
|
||||||
|
|
||||||
|
{
|
||||||
|
type = buffType.POSITIVE;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean attachTo( Char target ) {
|
public boolean attachTo( Char target ) {
|
||||||
|
@ -135,9 +139,19 @@ public class Sungrass extends Plant {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return Utils.format( "Herbal Healing (%d)", level);
|
return "Herbal Healing";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String desc() {
|
||||||
|
return "Sungrass possesses excellent healing properties, though its not as fast as a potion of healing.\n" +
|
||||||
|
"\n" +
|
||||||
|
"You are current slowly regenerating health from the sungrass plant. " +
|
||||||
|
"Taking damage while healing will reduce the healing effectiveness, and moving off the plant will break the healing effect.\n" +
|
||||||
|
"\n" +
|
||||||
|
"You can heal for " + level + " more health, or until your health is full.";
|
||||||
|
}
|
||||||
|
|
||||||
private static final String POS = "pos";
|
private static final String POS = "pos";
|
||||||
private static final String HEALCURR = "healCurr";
|
private static final String HEALCURR = "healCurr";
|
||||||
private static final String COUNT = "count";
|
private static final String COUNT = "count";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user