mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-26 01:52:15 +00:00
/obj/effects is now /obj/effect. /obj/station_objects is now /obj/structure. Did a bit of minor blob work. The Bay 12 body bags were replaced with closets because having two sets of code that do almost the same thing is silly. Changed back a few of the last jobproc edits as the remove from list before assign was a check to see if the mob was fucked up and if it was remove it so we did not check it again as it would still be fucked up. The medbay/tox monkeys names are random once more. More random name monkeys will help with changeling and clean up the observe/mob menus. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2324 316c924e-a436-60f5-8080-3fe189b3f50e
132 lines
4.3 KiB
Plaintext
132 lines
4.3 KiB
Plaintext
/*
|
|
CONTAINS:
|
|
RODS
|
|
METAL
|
|
REINFORCED METAL
|
|
FLOOR TILES
|
|
*/
|
|
|
|
|
|
|
|
// RODS
|
|
|
|
/obj/item/stack/rods/attackby(obj/item/W as obj, mob/user as mob)
|
|
..()
|
|
if (istype(W, /obj/item/weapon/weldingtool) && W:welding)
|
|
if(amount < 2)
|
|
user << "\red You need at least two rods to do this."
|
|
return
|
|
if(W:remove_fuel(0,user))
|
|
var/obj/item/stack/sheet/metal/new_item = new(usr.loc)
|
|
new_item.add_to_stacks(usr)
|
|
for (var/mob/M in viewers(src))
|
|
M.show_message("\red [src] is shaped into metal by [user.name] with the weldingtool.", 3, "\red You hear welding.", 2)
|
|
var/obj/item/stack/rods/R = src
|
|
src = null
|
|
var/replace = (user.get_inactive_hand()==R)
|
|
R.use(2)
|
|
if (!R && replace)
|
|
user.put_in_hand(new_item)
|
|
return
|
|
..()
|
|
|
|
|
|
/obj/item/stack/rods/attack_self(mob/user as mob)
|
|
src.add_fingerprint(user)
|
|
if (locate(/obj/structure/grille, usr.loc))
|
|
for(var/obj/structure/grille/G in usr.loc)
|
|
if (G.destroyed)
|
|
G.health = 10
|
|
G.density = 1
|
|
G.destroyed = 0
|
|
G.icon_state = "grille"
|
|
use(1)
|
|
else
|
|
return 1
|
|
else
|
|
if(amount < 2)
|
|
user << "\blue You need at least two rods to do this."
|
|
return
|
|
new /obj/structure/grille( usr.loc )
|
|
use(2)
|
|
return
|
|
|
|
|
|
|
|
// METAL SHEET
|
|
|
|
// /datum/stack_recipe/New(title, result_type, req_amount, res_amount, max_res_amount, time, one_per_turf, on_floor = 0)
|
|
var/global/list/datum/stack_recipe/metal_recipes = list ( \
|
|
new/datum/stack_recipe("stool", /obj/structure/stool), \
|
|
new/datum/stack_recipe("chair", /obj/structure/stool/chair, one_per_turf = 1), \
|
|
new/datum/stack_recipe("bed", /obj/structure/stool/bed, 2, one_per_turf = 1), \
|
|
new/datum/stack_recipe("table parts", /obj/item/weapon/table_parts, 2), \
|
|
new/datum/stack_recipe("rack parts", /obj/item/weapon/rack_parts), \
|
|
new/datum/stack_recipe("closet", /obj/structure/closet, 2, one_per_turf = 1), \
|
|
null, \
|
|
new/datum/stack_recipe("canister", /obj/machinery/portable_atmospherics/canister, 2, one_per_turf = 1), \
|
|
null, \
|
|
new/datum/stack_recipe("floor tile", /obj/item/stack/tile/steel, 1, 4, 10), \
|
|
new/datum/stack_recipe("metal rod", /obj/item/stack/rods, 1, 2, 60), \
|
|
new/datum/stack_recipe("reinforced sheet", /obj/item/stack/sheet/r_metal, 2, 1, 50), \
|
|
null, \
|
|
new/datum/stack_recipe("computer frame", /obj/structure/computerframe, 5, one_per_turf = 1), \
|
|
new/datum/stack_recipe("wall girders", /obj/structure/girder, 2, time = 50, one_per_turf = 1, on_floor = 1), \
|
|
new/datum/stack_recipe("airlock assembly", /obj/structure/door_assembly, 4, time = 50, one_per_turf = 1, on_floor = 1), \
|
|
new/datum/stack_recipe("machine frame", /obj/machinery/constructable_frame/machine_frame, 5, one_per_turf = 1), \
|
|
new/datum/stack_recipe("turret frame", /obj/machinery/porta_turret_construct, 5, one_per_turf = 1), \
|
|
null, \
|
|
new/datum/stack_recipe("apc frame", /obj/item/apc_frame, 2), \
|
|
new/datum/stack_recipe("grenade casing", /obj/item/weapon/chem_grenade), \
|
|
null, \
|
|
new/datum/stack_recipe("iron door", /obj/structure/mineral_door/iron, 20), \
|
|
)
|
|
|
|
/obj/item/stack/sheet/metal
|
|
New(var/loc, var/amount=null)
|
|
recipes = metal_recipes
|
|
return ..()
|
|
|
|
// REINFORCED METAL SHEET
|
|
|
|
// /datum/stack_recipe/New(title, result_type, req_amount, res_amount, max_res_amount, time, one_per_turf, on_floor = 0)
|
|
var/global/list/datum/stack_recipe/r_metal_recipes = list ( \
|
|
new/datum/stack_recipe("table parts", /obj/item/weapon/table_parts/reinforced, 2), \
|
|
new/datum/stack_recipe("metal sheet", /obj/item/stack/sheet/metal, 1, 2, 50), \
|
|
new/datum/stack_recipe("AI core", /obj/structure/AIcore, 4, one_per_turf = 1), \
|
|
)
|
|
|
|
/obj/item/stack/sheet/r_metal
|
|
New(var/loc, var/amount=null)
|
|
recipes = r_metal_recipes
|
|
return ..()
|
|
|
|
|
|
|
|
// TILES
|
|
|
|
/obj/item/stack/tile/steel/New(var/loc, var/amount=null)
|
|
..()
|
|
src.pixel_x = rand(1, 14)
|
|
src.pixel_y = rand(1, 14)
|
|
return
|
|
|
|
/obj/item/stack/tile/steel/attack_self(mob/user as mob)
|
|
if (usr.stat)
|
|
return
|
|
var/T = user.loc
|
|
if (!( istype(T, /turf) ))
|
|
user << "\red You must be on the ground!"
|
|
return
|
|
if (!( istype(T, /turf/space) ))
|
|
user << "\red You cannot build on or repair this turf!"
|
|
return
|
|
src.build(T)
|
|
src.add_fingerprint(user)
|
|
use(1)
|
|
return
|
|
|
|
/obj/item/stack/tile/steel/proc/build(turf/S as turf)
|
|
var/turf/simulated/floor/W = S.ReplaceWithFloor()
|
|
W.make_plating()
|
|
return |