Pinacolada64 / NOW

A MUD under construction based on Evennia.
9 stars 8 forks source link

Always restore to 20HP in the Great Fog #15

Open AmberFennek opened 7 years ago

AmberFennek commented 7 years ago

Currently having health is a disadvantage. If you have no health trait, you are unencumbered, but if you have a health trait and it is 0, then you become immobilized. Except for testing, no characters should be manually given a health trait until the end of Mile 2.

Suggestion

Suggestion from @tricuspa is to restore health by drinking from Fountain of refreshment, currently located in Great Fog. Set as a goal for Mile 2

Time stamping

Allow return of up to 20 health every 12 hours by time-stamping the character's fountain use. Fountain also removes thirst.

Effects ticker

Employ an effects ticker to restore the health gradually, initially restoring 10 health then slowly adding the remainder until the total restored is 20 or the character returns to health max, whichever occurs first.

Pinacolada64 commented 7 years ago

I was looking at this issue, it doesn't seem we have a drink command. Trying to research on how to create one. We could add a drinkable attribute to flasks and fountains.

Pinacolada64 commented 7 years ago

Wait, there is a drink method associated with the fountain of refreshment. I'm confused where it is being called from. Hmm. Searching the repo for drink is returning any useful results.

Never mind. https://github.com/Pinacolada64/NOW/blob/ce014391dc520f2e2fe14861d8806ba43d7ef829/typeclasses/objects.py#L427

AmberFennek commented 7 years ago

This is a Mile 2 issue, and requires #8 to be completed first.

In the case of drink, it isn't actually a command, but a verb. If the particular object responds to the drink verb (e.g. it's drinkable), the drink method on the object class (the one on line 427) should be triggered to cause the drink effect to take place. Because that step is missing, verbs trigger, but only offer a generic response until the verb interaction functionality is added.

See verbs.