mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-06-05 21:44:44 +01:00
3b4bcef49b
* Combines all the engineering borg tools into one multitool Sprites from /tg/ Combines: Wirecutters, Crowbar, Welder, Wrench, Crowbar, Screwdriver * this is a WAY better way to do it * a * dont worry about overlays anymore * Better grippers and better lists In which I go insane having to continually patch exploit after exploit in gripper code, resulting in it looking like a mad man's scribbles. * No deleting shoes when putting them on someone * empty pocket is now empty * RENAMING stuff instead of copypaste * MORE borg stuff * more bugproofing * Admin proc * this * this * Framework for TGUI * Update robot_simple_items.dm * Fix * Framework v2 * Update ModifyRobotMultiBelt.tsx * goooo * Update modify_robot.dm * modify * sub category * . * string to define * some globs * more * . * . * . * add sanely * push that real quick * . * sanity * . * . * . * . * . * . * . * Cut * . * gives to those that need * push * clean up * auto fix * . * . * . * getmodule * Update robot_simple_items.dm * . * untyped * Update stack.dm * . * . * . * . * - * . * Update _map_selection.dm * Update _map_selection.dm --------- Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
65 lines
1.2 KiB
Plaintext
65 lines
1.2 KiB
Plaintext
/datum/matter_synth
|
|
var/name = "Generic Synthesizer"
|
|
var/max_energy = 60000
|
|
var/recharge_rate = 2000
|
|
var/energy
|
|
|
|
/datum/matter_synth/New(var/store = 0)
|
|
if(store)
|
|
max_energy = store
|
|
energy = max_energy
|
|
return
|
|
|
|
/datum/matter_synth/proc/get_charge()
|
|
return energy
|
|
|
|
/datum/matter_synth/proc/use_charge(var/amount)
|
|
if (energy >= amount)
|
|
energy -= amount
|
|
return 1
|
|
return 0
|
|
|
|
/datum/matter_synth/proc/add_charge(var/amount)
|
|
energy = min(energy + amount, max_energy)
|
|
|
|
/datum/matter_synth/proc/emp_act(var/severity)
|
|
use_charge(max_energy * 0.1 / severity)
|
|
|
|
/datum/matter_synth/medicine
|
|
name = "Medicine Synthesizer"
|
|
|
|
/datum/matter_synth/nanite
|
|
name = "Nanite Synthesizer"
|
|
|
|
/datum/matter_synth/metal
|
|
name = METAL_SYNTH
|
|
|
|
/datum/matter_synth/plasteel
|
|
name = PLASTEEL_SYNTH
|
|
max_energy = 10000
|
|
|
|
/datum/matter_synth/glass
|
|
name = GLASS_SYNTH
|
|
|
|
/datum/matter_synth/wood
|
|
name = WOOD_SYNTH
|
|
|
|
/datum/matter_synth/plastic
|
|
name = PLASTIC_SYNTH
|
|
|
|
/datum/matter_synth/wire
|
|
name = WIRE_SYNTH
|
|
max_energy = 50
|
|
recharge_rate = 2
|
|
|
|
/datum/matter_synth/bandage
|
|
name = "Bandage Synthesizer"
|
|
max_energy = 10
|
|
recharge_rate = 1
|
|
|
|
/datum/matter_synth/cloth
|
|
name = CLOTH_SYNTH
|
|
|
|
/datum/matter_synth/beacon
|
|
name = "Beacon Synthesizer"
|