messages when attacking Raiders and passive Jellies

This commit is contained in:
Zeno Rogue 2018-01-04 21:52:49 +01:00
parent 86bce8b956
commit cee11b8e22
3 changed files with 11 additions and 0 deletions

View File

@ -735,3 +735,6 @@ bool generateAll(eLand l) {
l == laCaves || l == laCA;
}
bool isRaider(eMonster m) {
return m == moPair || m == moMonk || m == moCrusher || m == moAltDemon || m == moHexDemon;
}

View File

@ -7454,6 +7454,10 @@ bool movepcto(int d, int subdir, bool checkonly) {
addMessage(XLAT("You cannot defeat the Greater Demon yet!"));
else if(c2->monst == moDraugr)
addMessage(XLAT("Your mundane weapon cannot hurt %the1!", c2->monst));
else if(isRaider(c2->monst))
addMessage(XLAT("You cannot attack Raiders directly!"));
else if(isSwitch(c2->monst))
addMessage(XLAT("You cannot attack Jellies in their wall form!"));
else
addMessage(XLAT("For some reason... cannot attack!"));
return false;

View File

@ -6553,6 +6553,8 @@ S("Blue Raiders have a powerful attack which takes two turns to complete, and al
"ogłoszony przez dłuższy czas. Ten atak jest w stanie zniszczyć innych Najeźdźców, gdy ich trafi."
)
S("You cannot attack Raiders directly!", "Nie możesz atakować Najeźdźców bezpośrednio!")
Orb("Slaying", "Pogromu")
S("This Orb lets you defeat Raiders and other tough single-cell monsters in melee.",
@ -6583,5 +6585,7 @@ S("This orb lets you pass through walls (one cell wide), and also through as lon
"Ta Sfera pozwala Ci przechodzić przez ściany (o szerokości jednego pola), a także przez potwory, o ile "
"nie zaatakują one w trakcie ruchu.")
S("You cannot attack Jellies in their wall form!", "Nie możesz atakować Galarety w formie ściany!")
#undef Orb