From b4cc07e21834bbb45bca7b521ac29adee09b5752 Mon Sep 17 00:00:00 2001 From: Screemonster Date: Mon, 29 Jan 2018 15:10:04 +0000 Subject: [PATCH] Improves the ripley slightly --- code/game/mecha/working/ripley.dm | 50 ++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/code/game/mecha/working/ripley.dm b/code/game/mecha/working/ripley.dm index c51a34adef..d3623fe010 100644 --- a/code/game/mecha/working/ripley.dm +++ b/code/game/mecha/working/ripley.dm @@ -3,7 +3,8 @@ name = "APLU \"Ripley\"" icon_state = "ripley" initial_icon = "ripley" - step_in = 6 + step_in = 5 // vorestation edit, was 6 but that's PAINFULLY slow + step_energy_drain = 5 // vorestation edit because 10 drained a significant chunk of its cell before you even got out the airlock max_temperature = 20000 health = 200 wreckage = /obj/effect/decal/mecha_wreckage/ripley @@ -66,4 +67,51 @@ for(var/obj/item/mecha_parts/mecha_tracking/B in src.contents)//Deletes the beacon so it can't be found easily qdel (B) +// VORESTATION EDIT BEGIN +/obj/mecha/working/ripley/verb/detect_ore() + set category = "Exosuit Interface" + set name = "Detect Ores" + set src = usr.loc + set popup_menu = 0 + + usr << "You start scanning for metal deposits." + + sleep(50) + if(usr.loc == src) // just to make sure you've not ejected in the meantime or w/e + var/list/metals = list( + "surface minerals" = 0, + "precious metals" = 0, + "nuclear fuel" = 0, + "exotic matter" = 0 + ) + + for(var/turf/simulated/T in range(2, get_turf(src))) + + if(!T.has_resources) + continue + + for(var/metal in T.resources) + var/ore_type + + switch(metal) + if("silicates", "carbon", "hematite") ore_type = "surface minerals" + if("gold", "silver", "diamond") ore_type = "precious metals" + if("uranium") ore_type = "nuclear fuel" + if("phoron", "osmium", "hydrogen") ore_type = "exotic matter" + + if(ore_type) metals[ore_type] += T.resources[metal] + + usr << "\icon[src] The scanner beeps and displays a readout." + + for(var/ore_type in metals) + var/result = "no sign" + + switch(metals[ore_type]) + if(1 to 25) result = "trace amounts" + if(26 to 75) result = "significant amounts" + if(76 to INFINITY) result = "huge quantities" + + usr << "- [result] of [ore_type]." + +// VORESTATION EDIT END \ No newline at end of file