coffeemaker_resource 
Base datum for all coffeemaker resources
Vars | |
| current_amount | Current amount of the resource |
|---|---|
| icon_state | Icon state for radial menu |
| id | Unique identifier for the resource |
| item_type | Type of item to create when taking |
| max_amount | Maximum capacity for this resource |
| radial_name | Display name for radial menu |
| resource_name | Name of resource |
| section_name | The name of the resource in the compartment |
Procs | |
| can_insert | Check if an item can be inserted as this resource |
| can_take | Check if resource can be taken |
| get_examine_string | Get examine string for this resource |
| insert_resource | Insert an item as this resource |
| take_resource | Take one unit of the resource from the machine |
Var Details
current_amount 
Current amount of the resource
icon_state 
Icon state for radial menu
id 
Unique identifier for the resource
item_type 
Type of item to create when taking
max_amount 
Maximum capacity for this resource
radial_name 
Display name for radial menu
resource_name 
Name of resource
section_name 
The name of the resource in the compartment
Proc Details
can_insert
Check if an item can be inserted as this resource
Arguments:
- inserting_item - The item being inserted
- user - The mob inserting the item
can_take
Check if resource can be taken
Arguments:
- user - The mob attempting to take the resource
get_examine_string
Get examine string for this resource
insert_resource
Insert an item as this resource
Arguments:
- inserting_item - The item being inserted
- user - The mob inserting the item
- machine - The coffeemaker machine
take_resource
Take one unit of the resource from the machine
Arguments:
- user - The mob taking the resource
- machine - The coffeemaker machine