rsf ![code/game/objects/items/rcd/RSF.dm 8](git.png)
Vars | |
action_type | The verb that describes what we're doing, for use in text |
---|---|
allowed_surfaces | A list of surfaces that we are allowed to place things on. |
cooldown | Holds a copy of world.time from the last time the synth was used. |
cooldowndelay | How long should the minimum period between this RSF's item dispensings be? |
cost_by_item | An associated list of atoms and charge costs. This can contain a separate list, as long as its associated item is an object The RSF item list below shows in the player facing ui in this order, this is why it isn't in alphabetical order, but instead sorted by category |
discriptor | The unit of mesure of the matter, for use in text |
dispense_cost | The cost of the object we are going to dispense |
matter | The current matter count |
matter_by_item | An associated list of fuel and its value |
max_matter | The max amount of matter in the device |
spent_icon_state | The icon state to revert to when the tool is empty |
to_dispense | The type of the object we are going to dispense |
Procs | |
formRadial | Forms a radial menu based off an object in a list, or a list's associated object |
is_allowed | Helper proc that iterates through all the things we are allowed to spawn on, and sees if the passed atom is one of them |
use_matter | A helper proc. checks to see if we can afford the amount of charge that is passed, and if we can docs the charge from our base, and returns TRUE. If we can't we return FALSE |
Var Details
action_type ![code/game/objects/items/rcd/RSF.dm 57](git.png)
The verb that describes what we're doing, for use in text
allowed_surfaces ![code/game/objects/items/rcd/RSF.dm 53](git.png)
A list of surfaces that we are allowed to place things on.
cooldown ![code/game/objects/items/rcd/RSF.dm 59](git.png)
Holds a copy of world.time from the last time the synth was used.
cooldowndelay ![code/game/objects/items/rcd/RSF.dm 61](git.png)
How long should the minimum period between this RSF's item dispensings be?
cost_by_item ![code/game/objects/items/rcd/RSF.dm 35](git.png)
An associated list of atoms and charge costs. This can contain a separate list, as long as its associated item is an object The RSF item list below shows in the player facing ui in this order, this is why it isn't in alphabetical order, but instead sorted by category
discriptor ![code/game/objects/items/rcd/RSF.dm 55](git.png)
The unit of mesure of the matter, for use in text
dispense_cost ![code/game/objects/items/rcd/RSF.dm 31](git.png)
The cost of the object we are going to dispense
matter ![code/game/objects/items/rcd/RSF.dm 25](git.png)
The current matter count
matter_by_item ![code/game/objects/items/rcd/RSF.dm 51](git.png)
An associated list of fuel and its value
max_matter ![code/game/objects/items/rcd/RSF.dm 27](git.png)
The max amount of matter in the device
spent_icon_state ![code/game/objects/items/rcd/RSF.dm 16](git.png)
The icon state to revert to when the tool is empty
to_dispense ![code/game/objects/items/rcd/RSF.dm 29](git.png)
The type of the object we are going to dispense
Proc Details
formRadial
Forms a radial menu based off an object in a list, or a list's associated object
is_allowed
Helper proc that iterates through all the things we are allowed to spawn on, and sees if the passed atom is one of them
use_matter
A helper proc. checks to see if we can afford the amount of charge that is passed, and if we can docs the charge from our base, and returns TRUE. If we can't we return FALSE