Skip to main content

set_decay_speed

Discworld food help

set_decay_speed

Name

set_decay_speed - Set the speed at which food decays.

Syntax

void set_decay_speed(int speed);

Description

Sets the speed at which a food object decays. The speed is set in seconds and this is the total amount of time before the food decays.

If you set the decay speed to 0, then it stops decaying altogether.

Example

/* This will make the object decay totally in 30 minutes */
set_decay_speed(1800);

/* This will make the object never decay */
set_decay_speed(0);

See also

query_decay_speed, set_liquid