v0.9.0b: added champ desc to mob desc and tweaked growing champ desc

This commit is contained in:
Evan Debenham 2020-10-13 19:12:10 -04:00
parent 840727c674
commit 5885359d5a
3 changed files with 13 additions and 3 deletions

View File

@ -108,7 +108,7 @@ actors.buffs.championenemy$giant.desc=giant champions take 75% less damage and h
actors.buffs.championenemy$blessed.name=blessed champion
actors.buffs.championenemy$blessed.desc=Blessed champions have 200% more accuracy and evasion.
actors.buffs.championenemy$growing.name=growing champion
actors.buffs.championenemy$growing.desc=Growing champions gain a steadily increasing bonus to accuracy, evasion, melee damage, and a reduction to damage taken.\n\nCurrent Accuracy/Evasion/Damage boost: %1$d%%\nCurrent damage reduction: %2$d%%
actors.buffs.championenemy$growing.desc=Growing champions gain a steadily increasing bonus to accuracy, evasion, melee damage, and a reduction to damage taken.\n\nCurrent acc/eva/dmg boost: %1$d%%\nCurrent damage reduction: %2$d%%
actors.buffs.charm.name=Charmed
actors.buffs.charm.heromsg=You are charmed!

View File

@ -754,6 +754,16 @@ public abstract class Mob extends Char {
public String description() {
return Messages.get(this, "desc");
}
public String info(){
String desc = description();
for (Buff b : buffs(ChampionEnemy.class)){
desc += "\n\n_" + Messages.titleCase(b.toString()) + "_\n" + b.desc();
}
return desc;
}
public void notice() {
sprite.showAlert();

View File

@ -33,8 +33,8 @@ import com.watabou.noosa.ui.Component;
public class WndInfoMob extends WndTitledMessage {
public WndInfoMob( Mob mob ) {
super( new MobTitle( mob ), mob.description() );
super( new MobTitle( mob ), mob.info() );
}