/tg/ Station 13 - Modules - TypesVar Details - Proc Details

mob_harvest

Harvesting component. Useful if you want to be able to harvest items from living mobs.

Used currently on sheep.

Vars

amount_readyhow much is ready to harvest
fed_itemitem used to reduce wait between items
harvest_toolitem used to harvest
item_generation_timetracked time
item_generation_waittime between item creation
item_harvest_soundtypepath of harvest sound
item_harvest_timehow long it takes to harvest from the mob
item_reduction_timetime to reduce when fed
max_readymax amount that can be stored between harvests
produced_item_descstand-in name for the item
produced_item_typepathtypepath of the item you want to harvest

Procs

RegisterWithParentonly track time if we aren't dead and have room for more items
harvest_itemProc called from attacking the component parent with the correct item, handles creating the item
on_attackbysignal called on parent being attacked with an item
on_examinesignal called on parent being examined
on_update_icon_stateSignal proc for COMSIG_ATOM_UPDATE_ICON_STATE
remove_wait_timeProc called from attacking the component parent with the correct item, reduces wait time between items

Var Details

amount_ready

how much is ready to harvest

fed_item

item used to reduce wait between items

harvest_tool

item used to harvest

item_generation_time

tracked time

item_generation_wait

time between item creation

item_harvest_sound

typepath of harvest sound

item_harvest_time

how long it takes to harvest from the mob

item_reduction_time

time to reduce when fed

max_ready

max amount that can be stored between harvests

produced_item_desc

stand-in name for the item

produced_item_typepath

typepath of the item you want to harvest

Proc Details

RegisterWithParent

only track time if we aren't dead and have room for more items

harvest_item

Proc called from attacking the component parent with the correct item, handles creating the item

Arguments:

on_attackby

signal called on parent being attacked with an item

on_examine

signal called on parent being examined

on_update_icon_state

Signal proc for COMSIG_ATOM_UPDATE_ICON_STATE

remove_wait_time

Proc called from attacking the component parent with the correct item, reduces wait time between items

Arguments: