mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 20:11:04 +01:00
New Away Site: Hiskyn Treasure Trove (#21324)
EDIT: This is complete and no longer a work in progress. I've tried to make sure that everything is tested and working properly but if there are issues please let me know. This away site is intended to be a high risk, high reward, encounter. I'm also attempting to increase its replayability by incorporating a number of sections and submaps that will be newly generated each time. Things added or changed: - Additional traps and environmental hazards. - Lava is now more deadly. It used to only set you on fire, now it will burn you appropriately. - Minor sprite fixes for uncommon elements for easier mapping; throwers, step triggers. - Map and associated files, submap json, landmarks, areas, ect. --------- Signed-off-by: Evandorf <ej_denton@msn.com> Co-authored-by: Kano <89972582+kano-dot@users.noreply.github.com>
This commit is contained in:
@@ -438,14 +438,11 @@
|
||||
/obj/random/smalltank
|
||||
name = "random small tank"
|
||||
icon_state = "airtank"
|
||||
|
||||
/obj/random/smalltank/item_to_spawn()
|
||||
if (prob(40))
|
||||
return /obj/item/tank/emergency_oxygen
|
||||
else if (prob(60))
|
||||
return /obj/item/tank/emergency_oxygen/engi
|
||||
else
|
||||
return /obj/item/tank/emergency_oxygen/double
|
||||
problist = list(
|
||||
/obj/item/tank/emergency_oxygen = 3,
|
||||
/obj/item/tank/emergency_oxygen/engi = 2,
|
||||
/obj/item/tank/emergency_oxygen/double = 1,
|
||||
)
|
||||
|
||||
/obj/random/pottedplant
|
||||
name = "random potted plant, big"
|
||||
@@ -641,3 +638,12 @@
|
||||
/obj/random/med_stack = 1,
|
||||
/obj/item/reagent_containers/glass/bottle/ammonia = 1,
|
||||
)
|
||||
|
||||
/obj/random/holoturret
|
||||
name = "random holoturret"
|
||||
desc = "This is a random turret item. It could be active or simply a statue."
|
||||
icon_state = "holoturret"
|
||||
problist = list(
|
||||
/obj/machinery/porta_turret/hologram = 1,
|
||||
/obj/structure/unathi_statue/warrior/right = 1,
|
||||
)
|
||||
|
||||
@@ -22,27 +22,19 @@
|
||||
|
||||
return INITIALIZE_HINT_QDEL
|
||||
|
||||
// this function should return a specific item to spawn
|
||||
/obj/random/proc/item_to_spawn()
|
||||
return 0
|
||||
|
||||
/obj/random/proc/post_spawn(obj/thing)
|
||||
LOG_DEBUG("random_obj: [DEBUG_REF(src)] registered itself as having post_spawn, but did not override post_spawn()!")
|
||||
|
||||
// creates the random item
|
||||
/obj/random/proc/spawn_item()
|
||||
if (spawnlist)
|
||||
if(spawnlist)
|
||||
var/itemtype = pick(spawnlist)
|
||||
. = new itemtype(loc)
|
||||
|
||||
else if (problist)
|
||||
if(problist)
|
||||
var/itemtype = pickweight(problist)
|
||||
. = new itemtype(loc)
|
||||
|
||||
else
|
||||
var/itemtype = item_to_spawn()
|
||||
. = new itemtype(loc)
|
||||
|
||||
if (!.)
|
||||
LOG_DEBUG("random_obj: [DEBUG_REF(src)] returned null item!")
|
||||
|
||||
@@ -51,6 +43,3 @@
|
||||
desc = "This item type is used to randomly spawn a given object at round-start"
|
||||
icon_state = "x3"
|
||||
var/spawn_object = null
|
||||
|
||||
/obj/random/single/item_to_spawn()
|
||||
return ispath(spawn_object) ? spawn_object : text2path(spawn_object)
|
||||
|
||||
@@ -246,3 +246,12 @@
|
||||
E.charge_cost *= 2
|
||||
E.self_recharge = 0
|
||||
E.reliability = 90
|
||||
|
||||
/obj/random/mine
|
||||
name = "random deployed mine"
|
||||
desc = "This will choose from a number of available mines and they will be active at start."
|
||||
icon_state = "landmine"
|
||||
spawnlist = list(
|
||||
/obj/item/landmine/frag/deployed,
|
||||
/obj/item/landmine/emp/deployed,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user