home · contact · privacy
Server: Add regeneration of lifepoints on positive satiation values.
[plomrogue] / src / server / thing_actions.h
index ebdd871f02724159368ab56f982b9560eeede0c7..97ab3cca20641b5106c96a1f144a028ebd11c603 100644 (file)
@@ -38,6 +38,12 @@ extern void actor_pick(struct Thing * t);
  */
 extern void actor_use(struct Thing * t);
 
+/* Increment "t"'s lifepoints to a 1/32 chance if its .satiation is positive,
+ * its lifepoints are below "t"'s type's .lifepoints, and "t"'s .command is the
+ * ID of the waiting action. On success, also decrement .satiation by by 32.
+ */
+extern void try_healing(struct Thing * t);
+
 /* Decrement "t"'s satiation and trigger a chance (dependent on over-/under-
  * satiation value) of lifepoint decrement.
  */