Vault Overhaul (#5612)

Vault was poorly designed and an antag deathtrap. 
This PR changes it and the contents inside so it's desirable for some antags.
This commit is contained in:
BurgerLUA
2018-11-16 22:36:39 +01:00
committed by Werner
parent 1295ab1438
commit 17547bbe52
8 changed files with 52173 additions and 52718 deletions
+90 -3
View File
@@ -13,9 +13,12 @@
/obj/random/Initialize()
. = ..()
if (!prob(spawn_nothing_percentage))
var/item = spawn_item()
if (has_postspawn && item)
post_spawn(item)
var/obj/spawned_item = spawn_item()
if(spawned_item)
spawned_item.pixel_x = pixel_x
spawned_item.pixel_y = pixel_y
if(has_postspawn)
post_spawn(spawned_item)
return INITIALIZE_HINT_QDEL
@@ -1091,3 +1094,87 @@
/obj/item/weapon/gun/custom_ka/frameF/prebuilt01 = 1,
/obj/item/weapon/gun/custom_ka/frameF/prebuilt02 = 1
)
/obj/random/vault_rig
name = "random rigsuit"
desc = "Contains a random rigsuit found in the vault."
icon = 'icons/obj/rig_modules.dmi'
icon_state = "breacher_rig"
spawnlist = list(
/obj/item/weapon/rig/ce/equipped = 1,
/obj/item/weapon/rig/combat = 0.5,
/obj/item/weapon/rig/diving = 0.1,
/obj/item/weapon/rig/ert/assetprotection/empty = 0.1,
/obj/item/weapon/rig/ert/janitor = 0.1,
/obj/item/weapon/rig/eva/equipped = 0.5,
/obj/item/weapon/rig/hazard = 1,
/obj/item/weapon/rig/hazmat = 1,
/obj/item/weapon/rig/military = 0.1,
/obj/item/weapon/rig/unathi = 1,
/obj/item/weapon/rig/vaurca/minimal = 0.1
)
/obj/random/telecrystals
name = "random telecrystals"
desc = "Contains a random amount of telecrystals."
icon = 'icons/obj/telescience.dmi'
icon_state = "telecrystal"
spawnlist = list(
/obj/item/stack/telecrystal{amount = 10} = 0.7,
/obj/item/stack/telecrystal{amount = 25} = 0.2,
/obj/item/stack/telecrystal{amount = 5} = 0.1
)
/obj/random/bad_ai
name = "random evil AI module"
desc = "Contains a random evil AI module."
icon = 'icons/obj/module.dmi'
icon_state = "std_mod"
spawnlist = list(
/obj/item/weapon/aiModule/antimov = 1,
/obj/item/weapon/aiModule/asimov = 1,
/obj/item/weapon/aiModule/purge = 1,
/obj/item/weapon/aiModule/quarantine = 1,
/obj/item/weapon/aiModule/freeform = 1,
/obj/item/weapon/aiModule/oneHuman = 0.5,
/obj/item/weapon/aiModule/oxygen = 1
)
/obj/random/rig_module
name = "random rig module"
desc = "Contains a random rig module worthy of vault protection."
icon = 'icons/obj/rig_modules.dmi'
icon_state = "actuators"
spawnlist = list(
/obj/item/rig_module/actuators/combat = 1,
/obj/item/rig_module/chem_dispenser/combat = 1,
/obj/item/rig_module/chem_dispenser/injector = 1,
/obj/item/rig_module/device/emag_hand = 1,
/obj/item/rig_module/device/rcd = 1,
/obj/item/rig_module/electrowarfare_suite = 0.5,
/obj/item/rig_module/emp_shielding = 0.5,
/obj/item/rig_module/fabricator/energy_net = 1,
/obj/item/rig_module/fabricator = 0.5,
/obj/item/rig_module/grenade_launcher = 0.5,
/obj/item/rig_module/maneuvering_jets = 0.5,
/obj/item/rig_module/mounted/egun = 1,
/obj/item/rig_module/mounted/smg = 0.5,
/obj/item/rig_module/vision/multi = 0.5
)
/obj/random/finances
name = "random valued item"
desc = "Contains raw valued items like phoron, gold, and money."
spawnlist = list(
/obj/item/weapon/spacecash/bundle{worth = 5000} = 0.25,
/obj/item/weapon/spacecash/bundle{worth = 10000} = 0.5,
/obj/item/weapon/spacecash/bundle{worth = 25000} = 0.25,
/obj/item/stack/material/diamond{amount = 20} = 0.5,
/obj/item/stack/material/phoron{amount = 50} = 1,
/obj/item/stack/material/gold{amount = 50} = 1
)
has_postspawn = TRUE
/obj/random/finances/post_spawn(var/obj/item/spawned)
spawned.update_icon()