mob_harvest
Harvesting component. Useful if you want to be able to harvest items from living mobs.
Used currently on sheep.
Vars | |
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 |
Procs | |
harvest_item | Proc called from attacking the component parent with the correct item, handles creating the item |
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 |
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
harvest_item
Proc called from attacking the component parent with the correct item, handles creating the item
Arguments:
- mob/user - who is trying to do this
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:
- mob/user - who is trying to do this