Manual:DIL Manual/setweight()
Jump to navigation
Jump to search
setweight()
Obsolete. setweight() was removed from DIL in 2020; vmc no longer knows the name.
Two procedures replace it:
- set_weight_base(u, w) sets the unit's own (empty) weight, and changes its total weight and the weight of whatever holds it by the same amount;
- set_weight(u, w) sets the unit's total weight, and changes the weight of whatever holds it to match.
To add or take liquid from a drink container, change its weight with set_weight().