mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-06 07:22:42 +00:00
- Object tree grouped a bit more.
Two new categories were made: station_objects and effects. station_objects, which I'm sure someone will want renamed to 'structures' contains the objects which don't need process() or power code. Effects contains objects which are either landmarks, triggers, spawners or decal. Screenshot: http://www.kamletos.si/new%20object%20tree.PNG I didn't notice any bugs, but with a revision editing 276 files of byond code, you never know. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2323 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -22,31 +22,31 @@ SHARDS
|
||||
if (src.amount < 1)
|
||||
return 1
|
||||
var/list/directions = new/list(cardinal)
|
||||
for (var/obj/window/win in usr.loc)
|
||||
for (var/obj/station_objects/window/win in usr.loc)
|
||||
directions-=win.dir
|
||||
if(!(win.ini_dir in cardinal))
|
||||
usr << "\red Can't let you do that."
|
||||
return 1
|
||||
var/dir_to_set = 2
|
||||
//yes, this could probably be done better but hey... it works...
|
||||
for(var/obj/window/WT in usr.loc)
|
||||
for(var/obj/station_objects/window/WT in usr.loc)
|
||||
if (WT.dir == dir_to_set)
|
||||
dir_to_set = 4
|
||||
for(var/obj/window/WT in usr.loc)
|
||||
for(var/obj/station_objects/window/WT in usr.loc)
|
||||
if (WT.dir == dir_to_set)
|
||||
dir_to_set = 1
|
||||
for(var/obj/window/WT in usr.loc)
|
||||
for(var/obj/station_objects/window/WT in usr.loc)
|
||||
if (WT.dir == dir_to_set)
|
||||
dir_to_set = 8
|
||||
for(var/obj/window/WT in usr.loc)
|
||||
for(var/obj/station_objects/window/WT in usr.loc)
|
||||
if (WT.dir == dir_to_set)
|
||||
dir_to_set = 2
|
||||
var/obj/window/W
|
||||
var/obj/station_objects/window/W
|
||||
if(reinf)
|
||||
W = new /obj/window/reinforced( usr.loc, reinf )
|
||||
W = new /obj/station_objects/window/reinforced( usr.loc, reinf )
|
||||
W.state = 0
|
||||
else
|
||||
W = new /obj/window/basic( usr.loc, reinf )
|
||||
W = new /obj/station_objects/window/basic( usr.loc, reinf )
|
||||
W.dir = dir_to_set
|
||||
W.ini_dir = W.dir
|
||||
W.anchored = 0
|
||||
@@ -54,15 +54,15 @@ SHARDS
|
||||
if("full (2 sheets)")
|
||||
if (src.amount < 2)
|
||||
return 1
|
||||
if (locate(/obj/window) in usr.loc)
|
||||
if (locate(/obj/station_objects/window) in usr.loc)
|
||||
usr << "\red Can't let you do that."
|
||||
return 1
|
||||
var/obj/window/W
|
||||
var/obj/station_objects/window/W
|
||||
if(reinf)
|
||||
W = new /obj/window/reinforced( usr.loc, reinf )
|
||||
W = new /obj/station_objects/window/reinforced( usr.loc, reinf )
|
||||
W.state = 0
|
||||
else
|
||||
W = new /obj/window/basic( usr.loc, reinf )
|
||||
W = new /obj/station_objects/window/basic( usr.loc, reinf )
|
||||
W.dir = SOUTHWEST
|
||||
W.ini_dir = SOUTHWEST
|
||||
W.anchored = 0
|
||||
|
||||
@@ -33,8 +33,8 @@ FLOOR TILES
|
||||
|
||||
/obj/item/stack/rods/attack_self(mob/user as mob)
|
||||
src.add_fingerprint(user)
|
||||
if (locate(/obj/grille, usr.loc))
|
||||
for(var/obj/grille/G in usr.loc)
|
||||
if (locate(/obj/station_objects/grille, usr.loc))
|
||||
for(var/obj/station_objects/grille/G in usr.loc)
|
||||
if (G.destroyed)
|
||||
G.health = 10
|
||||
G.density = 1
|
||||
@@ -47,7 +47,7 @@ FLOOR TILES
|
||||
if(amount < 2)
|
||||
user << "\blue You need at least two rods to do this."
|
||||
return
|
||||
new /obj/grille( usr.loc )
|
||||
new /obj/station_objects/grille( usr.loc )
|
||||
use(2)
|
||||
return
|
||||
|
||||
@@ -57,12 +57,12 @@ FLOOR TILES
|
||||
|
||||
// /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/stool), \
|
||||
new/datum/stack_recipe("chair", /obj/stool/chair, one_per_turf = 1), \
|
||||
new/datum/stack_recipe("bed", /obj/stool/bed, 2, one_per_turf = 1), \
|
||||
new/datum/stack_recipe("stool", /obj/station_objects/stool), \
|
||||
new/datum/stack_recipe("chair", /obj/station_objects/stool/chair, one_per_turf = 1), \
|
||||
new/datum/stack_recipe("bed", /obj/station_objects/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/closet, 2, one_per_turf = 1), \
|
||||
new/datum/stack_recipe("closet", /obj/station_objects/closet, 2, one_per_turf = 1), \
|
||||
null, \
|
||||
new/datum/stack_recipe("canister", /obj/machinery/portable_atmospherics/canister, 2, one_per_turf = 1), \
|
||||
null, \
|
||||
@@ -70,16 +70,16 @@ var/global/list/datum/stack_recipe/metal_recipes = list ( \
|
||||
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/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/door_assembly, 4, time = 50, one_per_turf = 1, on_floor = 1), \
|
||||
new/datum/stack_recipe("computer frame", /obj/station_objects/computerframe, 5, one_per_turf = 1), \
|
||||
new/datum/stack_recipe("wall girders", /obj/station_objects/structure/girder, 2, time = 50, one_per_turf = 1, on_floor = 1), \
|
||||
new/datum/stack_recipe("airlock assembly", /obj/station_objects/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/mineral_door/iron, 20), \
|
||||
new/datum/stack_recipe("iron door", /obj/station_objects/mineral_door/iron, 20), \
|
||||
)
|
||||
|
||||
/obj/item/stack/sheet/metal
|
||||
@@ -93,7 +93,7 @@ var/global/list/datum/stack_recipe/metal_recipes = list ( \
|
||||
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/AIcore, 4, one_per_turf = 1), \
|
||||
new/datum/stack_recipe("AI core", /obj/station_objects/AIcore, 4, one_per_turf = 1), \
|
||||
)
|
||||
|
||||
/obj/item/stack/sheet/r_metal
|
||||
|
||||
@@ -10,7 +10,7 @@ SILVER
|
||||
|
||||
//Sandstone
|
||||
var/global/list/datum/stack_recipe/sandstone_recipes = list ( \
|
||||
new/datum/stack_recipe("sandstone door", /obj/mineral_door/sandstone, 10), \
|
||||
new/datum/stack_recipe("sandstone door", /obj/station_objects/mineral_door/sandstone, 10), \
|
||||
/* new/datum/stack_recipe("sandstone wall", ???), \
|
||||
new/datum/stack_recipe("sandstone floor", ???),\*/
|
||||
)
|
||||
@@ -22,7 +22,7 @@ var/global/list/datum/stack_recipe/sandstone_recipes = list ( \
|
||||
|
||||
//Diamond
|
||||
var/global/list/datum/stack_recipe/diamond_recipes = list ( \
|
||||
new/datum/stack_recipe("diamond door", /obj/mineral_door/transparent/diamond, 10), \
|
||||
new/datum/stack_recipe("diamond door", /obj/station_objects/mineral_door/transparent/diamond, 10), \
|
||||
)
|
||||
|
||||
/obj/item/stack/sheet/diamond
|
||||
@@ -32,7 +32,7 @@ var/global/list/datum/stack_recipe/diamond_recipes = list ( \
|
||||
|
||||
//Uranium
|
||||
var/global/list/datum/stack_recipe/uranium_recipes = list ( \
|
||||
new/datum/stack_recipe("uranium door", /obj/mineral_door/uranium, 10), \
|
||||
new/datum/stack_recipe("uranium door", /obj/station_objects/mineral_door/uranium, 10), \
|
||||
)
|
||||
|
||||
/obj/item/stack/sheet/uranium
|
||||
@@ -42,7 +42,7 @@ var/global/list/datum/stack_recipe/uranium_recipes = list ( \
|
||||
|
||||
//Plasma
|
||||
var/global/list/datum/stack_recipe/plasma_recipes = list ( \
|
||||
new/datum/stack_recipe("plasma door", /obj/mineral_door/transparent/plasma, 10), \
|
||||
new/datum/stack_recipe("plasma door", /obj/station_objects/mineral_door/transparent/plasma, 10), \
|
||||
)
|
||||
|
||||
/obj/item/stack/sheet/plasma
|
||||
@@ -52,7 +52,7 @@ var/global/list/datum/stack_recipe/plasma_recipes = list ( \
|
||||
|
||||
//Gold
|
||||
var/global/list/datum/stack_recipe/gold_recipes = list ( \
|
||||
new/datum/stack_recipe("golden door", /obj/mineral_door/gold, 10), \
|
||||
new/datum/stack_recipe("golden door", /obj/station_objects/mineral_door/gold, 10), \
|
||||
)
|
||||
|
||||
/obj/item/stack/sheet/gold
|
||||
@@ -62,7 +62,7 @@ var/global/list/datum/stack_recipe/gold_recipes = list ( \
|
||||
|
||||
//Silver
|
||||
var/global/list/datum/stack_recipe/silver_recipes = list ( \
|
||||
new/datum/stack_recipe("silver door", /obj/mineral_door/silver, 10), \
|
||||
new/datum/stack_recipe("silver door", /obj/station_objects/mineral_door/silver, 10), \
|
||||
)
|
||||
|
||||
/obj/item/stack/sheet/silver
|
||||
|
||||
@@ -5,7 +5,7 @@ WOOD PLANKS
|
||||
|
||||
var/global/list/datum/stack_recipe/wood_recipes = list ( \
|
||||
new/datum/stack_recipe("table parts", /obj/item/weapon/table_parts/wood, 2), \
|
||||
new/datum/stack_recipe("wooden barricade", /obj/barricade/wooden, 5, time = 30, one_per_turf = 1, on_floor = 1),\
|
||||
new/datum/stack_recipe("wooden barricade", /obj/station_objects/barricade/wooden, 5, time = 30, one_per_turf = 1, on_floor = 1),\
|
||||
)
|
||||
|
||||
/obj/item/stack/sheet/wood
|
||||
|
||||
Reference in New Issue
Block a user