autolathe 
Vars | |
| active_power_usage | Energy cost per full stack of sheets worth of materials used. Material insertion is 40% of this. |
|---|---|
| busy | Are we currently printing something |
| creation_efficiency | Coefficient applied to consumed materials. Lower values result in lower material consumption. |
| disabled | Is the autolathe disabled via wiring |
| drop_direction | direction we output onto (if 0, on top of us) |
| hacked | Is the autolathe hacked via wiring |
| imported_designs | Designs imported from technology disks that we can print. |
| materials | The container to hold materials |
| shocked | Did we recently shock a mob who medled with the wiring |
| stored_research | Designs related to the autolathe |
Procs | |
| adjust_hacked | Is the autolathe hacked. Allowing us to acess hidden designs Arguments |
| do_make_item | Callback for start_making, actually makes the item Arguments |
| finalize_build | Resets the icon state and busy flag Called at the end of do_make_item's timer loop |
| handle_designs | Converts all the designs supported by this autolathe into UI data Arguments |
| reset | Cut a wire in the autolathe Arguments |
| shock | Shock a mob who is trying to interact with the autolathe Arguments |
Var Details
active_power_usage 
Energy cost per full stack of sheets worth of materials used. Material insertion is 40% of this.
busy 
Are we currently printing something
creation_efficiency 
Coefficient applied to consumed materials. Lower values result in lower material consumption.
disabled 
Is the autolathe disabled via wiring
drop_direction 
direction we output onto (if 0, on top of us)
hacked 
Is the autolathe hacked via wiring
imported_designs 
Designs imported from technology disks that we can print.
materials 
The container to hold materials
shocked 
Did we recently shock a mob who medled with the wiring
stored_research 
Designs related to the autolathe
Proc Details
adjust_hacked
Is the autolathe hacked. Allowing us to acess hidden designs Arguments
state - TRUE/FALSE for is the autolathe hacked
do_make_item
Callback for start_making, actually makes the item Arguments
- datum/design/design - the design we are trying to print
- items_remaining - the number of designs left out to print
- build_time_per_item - the time taken to print 1 item
- material_cost_coefficient - the cost efficiency to print 1 design
- charge_per_item - the amount of power to print 1 item
- list/materials_needed - the list of materials to print 1 item
- turf/target - the location to drop the printed item on
finalize_build
Resets the icon state and busy flag Called at the end of do_make_item's timer loop
handle_designs
Converts all the designs supported by this autolathe into UI data Arguments
- list/designs - the list of techweb designs we are trying to send to the UI
reset
Cut a wire in the autolathe Arguments
- wire - the wire we are trying to cut
shock
Shock a mob who is trying to interact with the autolathe Arguments
- mob/user - the mob we are trying to shock
- prb - the probability of getting shocked