mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
-Added/extended some delays for creating solid structures from stacks
-Fixed retitling books sanitizing itself twice. Should also stop the unwanted & code git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4163 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -200,13 +200,13 @@
|
|||||||
var/choice = input("What would you like to change?") in list("Title", "Contents", "Author", "Cancel")
|
var/choice = input("What would you like to change?") in list("Title", "Contents", "Author", "Cancel")
|
||||||
switch(choice)
|
switch(choice)
|
||||||
if("Title")
|
if("Title")
|
||||||
var/newtitle = copytext(sanitize(input("Write a new title:") as text|null),1,MAX_MESSAGE_LEN)
|
var/newtitle = copytext(reject_bad_text(input("Write a new title:") as text|null),1,MAX_MESSAGE_LEN)
|
||||||
if(!newtitle)
|
if(!newtitle)
|
||||||
usr << "The title is invalid."
|
usr << "The title is invalid."
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
src.name = reject_bad_text(newtitle)
|
src.name = newtitle
|
||||||
src.title = reject_bad_text(newtitle)
|
src.title = newtitle
|
||||||
if("Contents")
|
if("Contents")
|
||||||
var/content = strip_html(input("Write your book's contents (HTML NOT allowed):"),8192) as message|null
|
var/content = strip_html(input("Write your book's contents (HTML NOT allowed):"),8192) as message|null
|
||||||
if(!content)
|
if(!content)
|
||||||
|
|||||||
@@ -73,18 +73,18 @@ var/global/list/datum/stack_recipe/metal_recipes = list ( \
|
|||||||
new/datum/stack_recipe("bed", /obj/structure/stool/bed, 2, one_per_turf = 1, on_floor = 1), \
|
new/datum/stack_recipe("bed", /obj/structure/stool/bed, 2, one_per_turf = 1, on_floor = 1), \
|
||||||
new/datum/stack_recipe("table parts", /obj/item/weapon/table_parts, 2), \
|
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("rack parts", /obj/item/weapon/rack_parts), \
|
||||||
new/datum/stack_recipe("closet", /obj/structure/closet, 2, one_per_turf = 1, on_floor = 1), \
|
new/datum/stack_recipe("closet", /obj/structure/closet, 2, time = 15, one_per_turf = 1, on_floor = 1), \
|
||||||
null, \
|
null, \
|
||||||
new/datum/stack_recipe("canister", /obj/machinery/portable_atmospherics/canister, 10, one_per_turf = 1, on_floor = 1), \
|
new/datum/stack_recipe("canister", /obj/machinery/portable_atmospherics/canister, 10, time = 15, one_per_turf = 1, on_floor = 1), \
|
||||||
null, \
|
null, \
|
||||||
new/datum/stack_recipe("floor tile", /obj/item/stack/tile/plasteel, 1, 4, 20), \
|
new/datum/stack_recipe("floor tile", /obj/item/stack/tile/plasteel, 1, 4, 20), \
|
||||||
new/datum/stack_recipe("metal rod", /obj/item/stack/rods, 1, 2, 60), \
|
new/datum/stack_recipe("metal rod", /obj/item/stack/rods, 1, 2, 60), \
|
||||||
null, \
|
null, \
|
||||||
new/datum/stack_recipe("computer frame", /obj/structure/computerframe, 5, one_per_turf = 1, on_floor = 1), \
|
new/datum/stack_recipe("computer frame", /obj/structure/computerframe, 5, time = 25, one_per_turf = 1, on_floor = 1), \
|
||||||
new/datum/stack_recipe("wall girders", /obj/structure/girder, 2, time = 50, one_per_turf = 1, on_floor = 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("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, on_floor = 1), \
|
new/datum/stack_recipe("machine frame", /obj/machinery/constructable_frame/machine_frame, 5, time = 25, one_per_turf = 1, on_floor = 1), \
|
||||||
new/datum/stack_recipe("turret frame", /obj/machinery/porta_turret_construct, 5, one_per_turf = 1, on_floor = 1), \
|
new/datum/stack_recipe("turret frame", /obj/machinery/porta_turret_construct, 5, time = 25, one_per_turf = 1, on_floor = 1), \
|
||||||
null, \
|
null, \
|
||||||
new/datum/stack_recipe("apc frame", /obj/item/apc_frame, 2), \
|
new/datum/stack_recipe("apc frame", /obj/item/apc_frame, 2), \
|
||||||
new/datum/stack_recipe("grenade casing", /obj/item/weapon/grenade/chem_grenade), \
|
new/datum/stack_recipe("grenade casing", /obj/item/weapon/grenade/chem_grenade), \
|
||||||
@@ -103,7 +103,7 @@ var/global/list/datum/stack_recipe/metal_recipes = list ( \
|
|||||||
|
|
||||||
// /datum/stack_recipe/New(title, result_type, req_amount, res_amount, max_res_amount, time, one_per_turf, on_floor = 0)
|
// /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/plasteel_recipes = list ( \
|
var/global/list/datum/stack_recipe/plasteel_recipes = list ( \
|
||||||
new/datum/stack_recipe("AI core", /obj/structure/AIcore, 4, one_per_turf = 1), \
|
new/datum/stack_recipe("AI core", /obj/structure/AIcore, 4, time = 50, one_per_turf = 1), \
|
||||||
)
|
)
|
||||||
|
|
||||||
/obj/item/stack/sheet/plasteel
|
/obj/item/stack/sheet/plasteel
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ var/global/list/datum/stack_recipe/wood_recipes = list ( \
|
|||||||
new/datum/stack_recipe("wooden sandals", /obj/item/clothing/shoes/sandal, 1), \
|
new/datum/stack_recipe("wooden sandals", /obj/item/clothing/shoes/sandal, 1), \
|
||||||
new/datum/stack_recipe("table parts", /obj/item/weapon/table_parts/wood, 2), \
|
new/datum/stack_recipe("table parts", /obj/item/weapon/table_parts/wood, 2), \
|
||||||
new/datum/stack_recipe("wood floor tile", /obj/item/stack/tile/wood, 1, 4, 20), \
|
new/datum/stack_recipe("wood floor tile", /obj/item/stack/tile/wood, 1, 4, 20), \
|
||||||
new/datum/stack_recipe("wooden barricade", /obj/structure/barricade/wooden, 5, time = 30, one_per_turf = 1, on_floor = 1), \
|
new/datum/stack_recipe("wooden barricade", /obj/structure/barricade/wooden, 5, time = 50, one_per_turf = 1, on_floor = 1), \
|
||||||
new/datum/stack_recipe("wooden door", /obj/structure/mineral_door/wood, 10, time = 20, one_per_turf = 1, on_floor = 1), \
|
new/datum/stack_recipe("wooden door", /obj/structure/mineral_door/wood, 10, time = 20, one_per_turf = 1, on_floor = 1), \
|
||||||
new/datum/stack_recipe("coffin", /obj/structure/closet/coffin, 5, time = 15, one_per_turf = 1, on_floor = 1), \
|
new/datum/stack_recipe("coffin", /obj/structure/closet/coffin, 5, time = 15, one_per_turf = 1, on_floor = 1), \
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user