Reworks cryopod storage

This commit is contained in:
mistyLuminescence
2017-10-20 19:14:45 +01:00
parent 4208cfb29d
commit ae308a3a91
26 changed files with 32 additions and 33 deletions

View File

@@ -9,6 +9,7 @@
throw_speed = 4 throw_speed = 4
throw_range = 20 throw_range = 20
matter = list(DEFAULT_WALL_MATERIAL = 500) matter = list(DEFAULT_WALL_MATERIAL = 500)
preserve_item = 1
var/obj/item/weapon/disk/nuclear/the_disk = null var/obj/item/weapon/disk/nuclear/the_disk = null
var/active = 0 var/active = 0

View File

@@ -226,24 +226,6 @@
var/last_no_computer_message = 0 var/last_no_computer_message = 0
var/applies_stasis = 1 var/applies_stasis = 1
// These items are preserved when the process() despawn proc occurs.
var/list/preserve_items = list(
/obj/item/weapon/hand_tele,
/obj/item/weapon/card/id/captains_spare,
/obj/item/device/aicard,
/obj/item/device/paicard,
/obj/item/weapon/gun,
/obj/item/weapon/cell/device,
/obj/item/ammo_magazine,
/obj/item/ammo_casing,
/obj/item/weapon/pinpointer,
/obj/item/clothing/suit,
/obj/item/clothing/shoes/magboots,
/obj/item/blueprints,
/obj/item/clothing/head/helmet/space,
/obj/item/weapon/storage/internal
)
/obj/machinery/cryopod/robot /obj/machinery/cryopod/robot
name = "robotic storage unit" name = "robotic storage unit"
desc = "A storage unit for robots." desc = "A storage unit for robots."
@@ -407,12 +389,10 @@
for(var/obj/item/W in items) for(var/obj/item/W in items)
var/preserve = null var/preserve = 0
for(var/T in preserve_items) if(W.preserve_item)
if(istype(W,T)) preserve = 1
preserve = 1
break
if(istype(W,/obj/item/weapon/implant/health)) if(istype(W,/obj/item/weapon/implant/health))
for(var/obj/machinery/computer/cloning/com in world) for(var/obj/machinery/computer/cloning/com in world)

View File

@@ -4,6 +4,7 @@
icon = 'icons/obj/items.dmi' icon = 'icons/obj/items.dmi'
icon_state = "blueprints" icon_state = "blueprints"
attack_verb = list("attacked", "bapped", "hit") attack_verb = list("attacked", "bapped", "hit")
preserve_item = 1
var/const/AREA_ERRNONE = 0 var/const/AREA_ERRNONE = 0
var/const/AREA_STATION = 1 var/const/AREA_STATION = 1
var/const/AREA_SPACE = 2 var/const/AREA_SPACE = 2

View File

@@ -7,6 +7,7 @@
w_class = ITEMSIZE_NORMAL w_class = ITEMSIZE_NORMAL
slot_flags = SLOT_BELT slot_flags = SLOT_BELT
show_messages = 0 show_messages = 0
preserve_item = 1
var/flush = null var/flush = null
origin_tech = list(TECH_DATA = 4, TECH_MATERIAL = 4) origin_tech = list(TECH_DATA = 4, TECH_MATERIAL = 4)

View File

@@ -11,6 +11,7 @@
slot_flags = SLOT_BACK slot_flags = SLOT_BACK
force = 5 force = 5
throwforce = 6 throwforce = 6
preserve_item = 1
w_class = ITEMSIZE_LARGE w_class = ITEMSIZE_LARGE
origin_tech = list(TECH_BIO = 4, TECH_POWER = 2) origin_tech = list(TECH_BIO = 4, TECH_POWER = 2)
action_button_name = "Remove/Replace Paddles" action_button_name = "Remove/Replace Paddles"

View File

@@ -7,6 +7,7 @@
slot_flags = SLOT_BELT slot_flags = SLOT_BELT
origin_tech = list(TECH_DATA = 2) origin_tech = list(TECH_DATA = 2)
show_messages = 0 show_messages = 0
preserve_item = 1
var/obj/item/device/radio/radio var/obj/item/device/radio/radio
var/looking_for_personality = 0 var/looking_for_personality = 0

View File

@@ -18,6 +18,7 @@ AI MODULES
throw_speed = 3 throw_speed = 3
throw_range = 15 throw_range = 15
origin_tech = list(TECH_DATA = 3) origin_tech = list(TECH_DATA = 3)
preserve_item = 1
var/datum/ai_laws/laws = null var/datum/ai_laws/laws = null
/obj/item/weapon/aiModule/proc/install(var/atom/movable/AM, var/mob/living/user) /obj/item/weapon/aiModule/proc/install(var/atom/movable/AM, var/mob/living/user)

View File

@@ -15,6 +15,7 @@
w_class = ITEMSIZE_NORMAL w_class = ITEMSIZE_NORMAL
origin_tech = list(TECH_ENGINEERING = 4, TECH_MATERIAL = 2) origin_tech = list(TECH_ENGINEERING = 4, TECH_MATERIAL = 2)
matter = list(DEFAULT_WALL_MATERIAL = 50000) matter = list(DEFAULT_WALL_MATERIAL = 50000)
preserve_item = 1
var/datum/effect/effect/system/spark_spread/spark_system var/datum/effect/effect/system/spark_spread/spark_system
var/stored_matter = 0 var/stored_matter = 0
var/max_stored_matter = 30 var/max_stored_matter = 30

View File

@@ -138,6 +138,7 @@
desc = "A golden card which shows power and might." desc = "A golden card which shows power and might."
icon_state = "gold" icon_state = "gold"
item_state = "gold_id" item_state = "gold_id"
preserve_item = 1
/obj/item/weapon/card/id/gold/captain/New() /obj/item/weapon/card/id/gold/captain/New()
assignment = "Colony Director" assignment = "Colony Director"
@@ -145,18 +146,12 @@
access = get_all_station_access() access = get_all_station_access()
..() ..()
/obj/item/weapon/card/id/captains_spare /obj/item/weapon/card/id/gold/captain/spare
name = "colony director's spare ID" name = "colony director's spare ID"
desc = "The spare ID of the High Lord himself." desc = "The spare ID of the High Lord himself."
icon_state = "gold"
item_state = "gold_id"
registered_name = "Colony Director" registered_name = "Colony Director"
assignment = "Colony Director" assignment = "Colony Director"
/obj/item/weapon/card/id/captains_spare/New()
access = get_all_station_access()
..()
/obj/item/weapon/card/id/synthetic /obj/item/weapon/card/id/synthetic
name = "\improper Synthetic ID" name = "\improper Synthetic ID"
desc = "Access module for NanoTrasen Synthetics" desc = "Access module for NanoTrasen Synthetics"

View File

@@ -34,6 +34,7 @@
throw_range = 7 throw_range = 7
maxcharge = 480 maxcharge = 480
matter = list("metal" = 350, "glass" = 50) matter = list("metal" = 350, "glass" = 50)
preserve_item = 1
/obj/item/weapon/cell/device/weapon /obj/item/weapon/cell/device/weapon
name = "weapon power cell" name = "weapon power cell"

View File

@@ -32,6 +32,7 @@
/obj/item/weapon/shield /obj/item/weapon/shield
name = "shield" name = "shield"
var/base_block_chance = 50 var/base_block_chance = 50
preserve_item = 1
item_icons = list( item_icons = list(
slot_l_hand_str = 'icons/mob/items/lefthand_melee.dmi', slot_l_hand_str = 'icons/mob/items/lefthand_melee.dmi',
slot_r_hand_str = 'icons/mob/items/righthand_melee.dmi', slot_r_hand_str = 'icons/mob/items/righthand_melee.dmi',

View File

@@ -1,6 +1,7 @@
//A storage item intended to be used by other items to provide storage functionality. //A storage item intended to be used by other items to provide storage functionality.
//Types that use this should consider overriding emp_act() and hear_talk(), unless they shield their contents somehow. //Types that use this should consider overriding emp_act() and hear_talk(), unless they shield their contents somehow.
/obj/item/weapon/storage/internal /obj/item/weapon/storage/internal
preserve_item = 1
var/obj/item/master_item var/obj/item/master_item
/obj/item/weapon/storage/internal/New(obj/item/MI) /obj/item/weapon/storage/internal/New(obj/item/MI)

View File

@@ -9,6 +9,7 @@
max_w_class = ITEMSIZE_NORMAL max_w_class = ITEMSIZE_NORMAL
max_storage_space = ITEMSIZE_COST_NORMAL * 4 //The sum of the w_classes of all the items in this storage item. max_storage_space = ITEMSIZE_COST_NORMAL * 4 //The sum of the w_classes of all the items in this storage item.
req_access = list(access_armory) req_access = list(access_armory)
preserve_item = 1
var/locked = 1 var/locked = 1
var/broken = 0 var/broken = 0
var/icon_locked = "lockbox+l" var/icon_locked = "lockbox+l"

View File

@@ -129,6 +129,7 @@ Frequency:
throw_range = 5 throw_range = 5
origin_tech = list(TECH_MAGNET = 1, TECH_BLUESPACE = 3) origin_tech = list(TECH_MAGNET = 1, TECH_BLUESPACE = 3)
matter = list(DEFAULT_WALL_MATERIAL = 10000) matter = list(DEFAULT_WALL_MATERIAL = 10000)
preserve_item = 1
/obj/item/weapon/hand_tele/attack_self(mob/user as mob) /obj/item/weapon/hand_tele/attack_self(mob/user as mob)
var/turf/current_location = get_turf(user)//What turf is the user on? var/turf/current_location = get_turf(user)//What turf is the user on?

View File

@@ -12,6 +12,7 @@
var/damtype = "brute" var/damtype = "brute"
var/armor_penetration = 0 var/armor_penetration = 0
var/show_messages var/show_messages
var/preserve_item = 0 //whether this object is preserved when its owner goes into cryo-storage, gateway, etc
/obj/Destroy() /obj/Destroy()
processing_objects -= src processing_objects -= src

View File

@@ -973,7 +973,7 @@ var/list/multi_point_spawns
/obj/random_multi/single_item/captains_spare_id /obj/random_multi/single_item/captains_spare_id
name = "Multi Point - Captain's Spare" name = "Multi Point - Captain's Spare"
id = "Captain's spare id" id = "Captain's spare id"
item_path = /obj/item/weapon/card/id/captains_spare item_path = /obj/item/weapon/card/id/gold/captain/spare
//Multiple Object Spawn //Multiple Object Spawn

View File

@@ -548,6 +548,7 @@
var/blood_overlay_type = "suit" var/blood_overlay_type = "suit"
siemens_coefficient = 0.9 siemens_coefficient = 0.9
w_class = ITEMSIZE_NORMAL w_class = ITEMSIZE_NORMAL
preserve_item = 1
sprite_sheets = list( sprite_sheets = list(
"Teshari" = 'icons/mob/species/seromi/suit.dmi', "Teshari" = 'icons/mob/species/seromi/suit.dmi',

View File

@@ -7,6 +7,7 @@
force = 3 force = 3
overshoes = 1 overshoes = 1
shoes_under_pants = -1 //These things are huge shoes_under_pants = -1 //These things are huge
preserve_item = 1
var/magpulse = 0 var/magpulse = 0
var/icon_base = "magboots" var/icon_base = "magboots"
action_button_name = "Toggle Magboots" action_button_name = "Toggle Magboots"

View File

@@ -24,6 +24,7 @@
siemens_coefficient = 0.2 siemens_coefficient = 0.2
permeability_coefficient = 0.1 permeability_coefficient = 0.1
unacidable = 1 unacidable = 1
preserve_item = 1
var/interface_path = "hardsuit.tmpl" var/interface_path = "hardsuit.tmpl"
var/ai_interface_path = "hardsuit.tmpl" var/ai_interface_path = "hardsuit.tmpl"

View File

@@ -15,6 +15,7 @@
min_cold_protection_temperature = SPACE_HELMET_MIN_COLD_PROTECTION_TEMPERATURE min_cold_protection_temperature = SPACE_HELMET_MIN_COLD_PROTECTION_TEMPERATURE
siemens_coefficient = 0.9 siemens_coefficient = 0.9
species_restricted = list("exclude","Diona") species_restricted = list("exclude","Diona")
preserve_item = 1
var/obj/machinery/camera/camera var/obj/machinery/camera/camera
var/list/camera_networks var/list/camera_networks
@@ -59,6 +60,7 @@
min_cold_protection_temperature = SPACE_SUIT_MIN_COLD_PROTECTION_TEMPERATURE min_cold_protection_temperature = SPACE_SUIT_MIN_COLD_PROTECTION_TEMPERATURE
siemens_coefficient = 0.9 siemens_coefficient = 0.9
species_restricted = list("exclude","Diona") species_restricted = list("exclude","Diona")
preserve_item = 1
var/list/supporting_limbs //If not-null, automatically splints breaks. Checked when removing the suit. var/list/supporting_limbs //If not-null, automatically splints breaks. Checked when removing the suit.

View File

@@ -7,6 +7,7 @@
slot_flags = SLOT_BELT | SLOT_EARS slot_flags = SLOT_BELT | SLOT_EARS
throwforce = 1 throwforce = 1
w_class = ITEMSIZE_TINY w_class = ITEMSIZE_TINY
preserve_item = 1
var/leaves_residue = 1 var/leaves_residue = 1
var/caliber = "" //Which kind of guns it can be loaded into var/caliber = "" //Which kind of guns it can be loaded into
@@ -75,6 +76,7 @@
w_class = ITEMSIZE_SMALL w_class = ITEMSIZE_SMALL
throw_speed = 4 throw_speed = 4
throw_range = 10 throw_range = 10
preserve_item = 1
var/list/stored_ammo = list() var/list/stored_ammo = list()
var/mag_type = SPEEDLOADER //ammo_magazines can only be used with compatible guns. This is not a bitflag, the load_method var on guns is. var/mag_type = SPEEDLOADER //ammo_magazines can only be used with compatible guns. This is not a bitflag, the load_method var on guns is.

View File

@@ -7,6 +7,7 @@
matter = list(DEFAULT_WALL_MATERIAL = 1800) matter = list(DEFAULT_WALL_MATERIAL = 1800)
origin_tech = list(TECH_COMBAT = 1) origin_tech = list(TECH_COMBAT = 1)
var/remaining = 9 var/remaining = 9
preserve_item = 1
/obj/item/weapon/magnetic_ammo/examine(mob/user) /obj/item/weapon/magnetic_ammo/examine(mob/user)
. = ..() . = ..()

View File

@@ -46,6 +46,7 @@
throw_speed = 4 throw_speed = 4
throw_range = 5 throw_range = 5
force = 5 force = 5
preserve_item = 1
origin_tech = list(TECH_COMBAT = 1) origin_tech = list(TECH_COMBAT = 1)
attack_verb = list("struck", "hit", "bashed") attack_verb = list("struck", "hit", "bashed")
zoomdevicename = "scope" zoomdevicename = "scope"

View File

@@ -14,6 +14,7 @@
possible_transfer_amounts = null possible_transfer_amounts = null
flags = OPENCONTAINER flags = OPENCONTAINER
slot_flags = SLOT_BELT slot_flags = SLOT_BELT
preserve_item = 1
var/reusable = 1 var/reusable = 1
var/used = 0 var/used = 0
var/filled = 0 var/filled = 0
@@ -70,6 +71,7 @@
reusable = 0 reusable = 0
filled = 1 filled = 1
filled_reagents = list("inaprovaline" = 5) filled_reagents = list("inaprovaline" = 5)
preserve_item = 0
/obj/item/weapon/reagent_containers/hypospray/autoinjector/on_reagent_change() /obj/item/weapon/reagent_containers/hypospray/autoinjector/on_reagent_change()
..() ..()

View File

@@ -5177,7 +5177,7 @@
"bVC" = (/obj/machinery/ai_status_display{pixel_y = 32},/obj/machinery/atmospherics/unary/vent_scrubber/on{dir = 4},/turf/simulated/floor/wood,/area/crew_quarters/captain) "bVC" = (/obj/machinery/ai_status_display{pixel_y = 32},/obj/machinery/atmospherics/unary/vent_scrubber/on{dir = 4},/turf/simulated/floor/wood,/area/crew_quarters/captain)
"bVD" = (/obj/machinery/atmospherics/pipe/simple/hidden/supply,/obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers{dir = 4},/turf/simulated/floor/wood,/area/crew_quarters/captain) "bVD" = (/obj/machinery/atmospherics/pipe/simple/hidden/supply,/obj/machinery/atmospherics/pipe/manifold/hidden/scrubbers{dir = 4},/turf/simulated/floor/wood,/area/crew_quarters/captain)
"bVE" = (/obj/structure/table/woodentable,/obj/item/weapon/storage/secure/safe{pixel_x = 5; pixel_y = 28},/obj/machinery/recharger{pixel_y = 4},/turf/simulated/floor/wood,/area/crew_quarters/captain) "bVE" = (/obj/structure/table/woodentable,/obj/item/weapon/storage/secure/safe{pixel_x = 5; pixel_y = 28},/obj/machinery/recharger{pixel_y = 4},/turf/simulated/floor/wood,/area/crew_quarters/captain)
"bVF" = (/obj/machinery/computer/card,/obj/item/weapon/card/id/captains_spare,/turf/simulated/floor/wood,/area/crew_quarters/captain) "bVF" = (/obj/machinery/computer/card,/obj/item/weapon/card/id/gold/captain/spare,/turf/simulated/floor/wood,/area/crew_quarters/captain)
"bVG" = (/obj/machinery/computer/communications,/obj/machinery/status_display{pixel_x = 0; pixel_y = 32},/turf/simulated/floor/wood,/area/crew_quarters/captain) "bVG" = (/obj/machinery/computer/communications,/obj/machinery/status_display{pixel_x = 0; pixel_y = 32},/turf/simulated/floor/wood,/area/crew_quarters/captain)
"bVH" = (/obj/machinery/keycard_auth{pixel_x = 0; pixel_y = 24},/turf/simulated/floor/wood,/area/crew_quarters/captain) "bVH" = (/obj/machinery/keycard_auth{pixel_x = 0; pixel_y = 24},/turf/simulated/floor/wood,/area/crew_quarters/captain)
"bVI" = (/obj/structure/table/rack,/obj/item/weapon/tank/jetpack/oxygen,/obj/item/clothing/mask/gas,/obj/item/clothing/suit/armor/captain,/obj/item/clothing/head/helmet/space/capspace,/obj/machinery/newscaster/security_unit{pixel_x = 32; pixel_y = 0},/turf/simulated/floor/wood,/area/crew_quarters/captain) "bVI" = (/obj/structure/table/rack,/obj/item/weapon/tank/jetpack/oxygen,/obj/item/clothing/mask/gas,/obj/item/clothing/suit/armor/captain,/obj/item/clothing/head/helmet/space/capspace,/obj/machinery/newscaster/security_unit{pixel_x = 32; pixel_y = 0},/turf/simulated/floor/wood,/area/crew_quarters/captain)

View File

@@ -1329,7 +1329,7 @@
"zD" = (/obj/structure/bed/chair{dir = 8},/obj/effect/floor_decal/corner/white/diagonal,/turf/unsimulated/floor{icon_state = "steel"},/area/centcom/restaurant) "zD" = (/obj/structure/bed/chair{dir = 8},/obj/effect/floor_decal/corner/white/diagonal,/turf/unsimulated/floor{icon_state = "steel"},/area/centcom/restaurant)
"zE" = (/obj/machinery/door/airlock/centcom{name = "Bridge"; opacity = 1; req_access = list(109)},/turf/unsimulated/floor{icon_state = "steel"},/area/centcom/command) "zE" = (/obj/machinery/door/airlock/centcom{name = "Bridge"; opacity = 1; req_access = list(109)},/turf/unsimulated/floor{icon_state = "steel"},/area/centcom/command)
"zF" = (/obj/structure/table/reinforced,/obj/item/device/pda/captain,/turf/unsimulated/floor{icon_state = "steel"},/area/centcom/command) "zF" = (/obj/structure/table/reinforced,/obj/item/device/pda/captain,/turf/unsimulated/floor{icon_state = "steel"},/area/centcom/command)
"zG" = (/obj/structure/table/reinforced,/obj/item/weapon/card/id/captains_spare,/turf/unsimulated/floor{icon_state = "steel"},/area/centcom/command) "zG" = (/obj/structure/table/reinforced,/obj/item/weapon/card/id/gold/captain/spare,/turf/unsimulated/floor{icon_state = "steel"},/area/centcom/command)
"zH" = (/obj/structure/table/reinforced,/turf/unsimulated/floor{icon_state = "steel"},/area/centcom/command) "zH" = (/obj/structure/table/reinforced,/turf/unsimulated/floor{icon_state = "steel"},/area/centcom/command)
"zI" = (/obj/structure/table/reinforced,/obj/machinery/recharger{pixel_y = 4},/turf/unsimulated/floor{icon_state = "steel"},/area/centcom/command) "zI" = (/obj/structure/table/reinforced,/obj/machinery/recharger{pixel_y = 4},/turf/unsimulated/floor{icon_state = "steel"},/area/centcom/command)
"zJ" = (/turf/simulated/shuttle/wall,/area/shuttle/transport1/centcom) "zJ" = (/turf/simulated/shuttle/wall,/area/shuttle/transport1/centcom)