v0.8.0: tweaks to mimics:

- mimics now have a weak outline when hidden instead of no outline
- mimics no longer hit heroes through stealth when opened
- added a hint to mimic descriptions
This commit is contained in:
Evan Debenham 2019-12-13 17:37:35 -05:00
parent 5e69dedbb4
commit 9e43944bd4
5 changed files with 16 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -69,16 +69,23 @@ public class CrystalMimic extends Mimic {
@Override
public String description() {
if (alignment == Alignment.NEUTRAL){
String desc = null;
for (Item i : items){
if (i instanceof Artifact){
return Messages.get(Heap.class, "crystal_chest_desc", Messages.get(Heap.class, "artifact"));
desc = Messages.get(Heap.class, "crystal_chest_desc", Messages.get(Heap.class, "artifact"));
break;
} else if (i instanceof Ring){
return Messages.get(Heap.class, "crystal_chest_desc", Messages.get(Heap.class, "ring"));
desc = Messages.get(Heap.class, "crystal_chest_desc", Messages.get(Heap.class, "ring"));
break;
} else if (i instanceof Wand){
return Messages.get(Heap.class, "crystal_chest_desc", Messages.get(Heap.class, "wand"));
desc = Messages.get(Heap.class, "crystal_chest_desc", Messages.get(Heap.class, "wand"));
break;
}
}
return Messages.get(Heap.class, "locked_chest_desc");
if (desc == null) {
desc = Messages.get(Heap.class, "locked_chest_desc");
}
return desc + "\n\n" + Messages.get(this, "hidden_hint");
} else {
return super.description();
}

View File

@ -55,7 +55,7 @@ public class GoldenMimic extends Mimic {
@Override
public String description() {
if (alignment == Alignment.NEUTRAL){
return Messages.get(Heap.class, "locked_chest_desc");
return Messages.get(Heap.class, "locked_chest_desc") + "\n\n" + Messages.get(this, "hidden_hint");
} else {
return super.description();
}

View File

@ -103,7 +103,7 @@ public class Mimic extends Mob {
@Override
public String description() {
if (alignment == Alignment.NEUTRAL){
return Messages.get(Heap.class, "chest_desc");
return Messages.get(Heap.class, "chest_desc") + "\n\n" + Messages.get(this, "hidden_hint");
} else {
return super.description();
}
@ -179,7 +179,7 @@ public class Mimic extends Mob {
@Override
public int attackSkill( Char target ) {
if (target != null && alignment == Alignment.NEUTRAL){
if (target != null && alignment == Alignment.NEUTRAL && target.invisible <= 0){
return INFINITE_ACCURACY;
} else {
return 6 + level;

View File

@ -525,7 +525,7 @@ actors.mobs.gnolltrickster.name=gnoll trickster
actors.mobs.gnolltrickster.desc=A strange looking creature, even by gnoll standards. It hunches forward with a wicked grin, almost cradling the satchel hanging over its shoulder. Its eyes are wide with a strange mix of fear and excitement.\n\nThere is a large collection of poorly made darts in its satchel, they all seem to be tipped with various harmful substances.
actors.mobs.goldenmimic.name=golden mimic
actors.mobs.goldenmimic.desc=Mimics are magical creatures which can take any shape they wish. In dungeons they almost always choose a shape of a treasure chest, in order to lure in unsuspecting adventurers.\n\nGolden mimics are tougher mimics which try to attract the strongest adventurers. They have the best loot, but are also much stronger than regular mimics.
actors.mobs.goldenmimic.desc=Mimics are magical creatures which can take any shape they wish. In dungeons they almost always choose a shape of a treasure chest, in order to lure in unsuspecting adventurers.\n\nGolden mimics are tougher mimics which try to attract the strongest adventurers. They have better loot, but are also much stronger than regular mimics.
actors.mobs.golem.name=golem
actors.mobs.golem.def_verb=blocked
@ -566,6 +566,7 @@ actors.mobs.king$undead.desc=These undead dwarves, risen by the will of the King
actors.mobs.mimic.name=mimic
actors.mobs.mimic.reveal=That chest is a mimic!
actors.mobs.mimic.hidden_hint=Something about this chest feels off... Walking up and trying to open it might be a bad idea.
actors.mobs.mimic.desc=Mimics are magical creatures which can take any shape they wish. In dungeons they almost always choose a shape of a treasure chest, in order to lure in unsuspecting adventurers.\n\nMimics have a nasty bite, but often hold more treasure than a regular chest.
actors.mobs.necromancer.name=necromancer