[ Package Index | Mudlib Index | Effect Index ]

File /obj/meltable.c


This is an inheritable for frozen food which melts, based on the temperature of the room environment in which it finds itself.

It performs just as normal food, apart from the following:

- It cannot be cured or dried

- It does not decay

- It cannot be forced to behave as a liquid

- When applied or eaten, it will cause a brief decrease in temperature of the user.

It will melt into a liquid, which can be set using set_melt_result(). This is default at water, and can be queried using query_melt_result().

It's melt level can be checked by query_melt_level(). This starts at a value of ten times the original weight of the meltable food.

It's rate of melting adjusts itself regularly, based on the temperature. This can be checked with query_melt_rate(), and set temporarily with set_melt_rate.

The level of melting is shown in the long and short of the object. These are created using query_short_rotten_adjective and query_long_decay_level, and are based on the percentage of object left.

Written by Carmine


Inherits

This class inherits the following classes /obj/food.c

Includes

This class includes the following files /include/weather.h and /include/bits_controller.h
Discworld MUD's distribution world wide web pages.
brought to you by
Cut Me Own Throat Dibbler's Sensational Sausages; buy one while they are hot.
File last modified: Tue, 14 Oct 2003 17:32:57 GMT

Lost? Try Discworld's home page.