X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fserver%2Fthing_actions.h;h=97ab3cca20641b5106c96a1f144a028ebd11c603;hb=0ba357885daeeaf15ce8c63a1f6ae2abe5d68a0d;hp=28857e773cd135a678ccb1da0cfabb90426de828;hpb=891ba8fbca53d920f6b3704827fa6b8aee737de4;p=plomrogue diff --git a/src/server/thing_actions.h b/src/server/thing_actions.h index 28857e7..97ab3cc 100644 --- a/src/server/thing_actions.h +++ b/src/server/thing_actions.h @@ -1,4 +1,8 @@ /* src/server/thing_actions.h + * + * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3 + * or any later version. For details on its copyright, license, and warranties, + * see the file NOTICE in the root directory of the PlomRogue source package. * * Actions that can be performed by living things / "actors". Note that apart * from the consequences described below, each action may also trigger log @@ -34,6 +38,17 @@ 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. + */ +extern void hunger(struct Thing * t); + #endif