mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
added a message for not caring about roses
This commit is contained in:
parent
b8a5c7528b
commit
8c06e184c8
12
pcmove.cpp
12
pcmove.cpp
@ -325,10 +325,15 @@ bool pcmove::movepcto() {
|
|||||||
else
|
else
|
||||||
lastmountpos[0] = cwt.at;
|
lastmountpos[0] = cwt.at;
|
||||||
|
|
||||||
|
bool fatigued = false;
|
||||||
|
|
||||||
if(againstRose(cwt.at, NULL) && d<0 && !scentResistant()) {
|
if(againstRose(cwt.at, NULL) && d<0 && !scentResistant()) {
|
||||||
if(vmsg(miRESTRICTED))
|
fatigued = items[itFatigue] >= 8;
|
||||||
addMessage("You just cannot stand in place, those roses smell too nicely.");
|
if(!fatigued) {
|
||||||
return false;
|
if(vmsg(miRESTRICTED))
|
||||||
|
addMessage(XLAT("You just cannot stand in place, those roses smell too nicely."));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gravity_state = gsNormal;
|
gravity_state = gsNormal;
|
||||||
@ -340,6 +345,7 @@ bool pcmove::movepcto() {
|
|||||||
changes.init(checkonly);
|
changes.init(checkonly);
|
||||||
changes.value_keep(bow::bowpath_map);
|
changes.value_keep(bow::bowpath_map);
|
||||||
bow::bowpath_map.clear();
|
bow::bowpath_map.clear();
|
||||||
|
if(fatigued) addMessage(XLAT("The roses smell nicely, but you are just too tired to care."));
|
||||||
bool b = (d >= 0 && bow::fire_mode) ? false : (d >= 0) ? actual_move() : stay();
|
bool b = (d >= 0 && bow::fire_mode) ? false : (d >= 0) ? actual_move() : stay();
|
||||||
if(checkonly || !b) {
|
if(checkonly || !b) {
|
||||||
changes.rollback();
|
changes.rollback();
|
||||||
|
Loading…
Reference in New Issue
Block a user