Try to unify "back on solid ground" messaging

Put everything through a single function that can handle all the
complicated parts of using the correct proposition for different terrain
types, and will not just call things "solid ground" indiscriminately.
This got complicated but I'm not sure if it's possible to do it much
simpler while still using the distinct names for each type of terrain
(unless you are OK with the sentences sounding sort of wonky).
This commit is contained in:
Michael Meyer
2023-11-06 17:50:25 -05:00
committed by PatR
parent 53be8be3e9
commit a1b1f3b250
5 changed files with 45 additions and 27 deletions

View File

@@ -389,8 +389,8 @@ fix_worst_trouble(int trouble)
/* teleport should always succeed, but if not, just untrap them */
if (!safe_teleds(TELEDS_NO_FLAGS))
reset_utrap(TRUE);
back_on_ground(DISSOLVED); /* DISSOLVED: pending cause of death
* if trouble didn't get cured */
rescued_from_terrain(DISSOLVED); /* DISSOLVED: pending cause of death
* if trouble didn't get cured */
break;
case TROUBLE_STARVING:
/* temporarily lost strength recovery now handled by init_uhunger() */