mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 11:38:12 +01:00
Fixes inconsistant material refunds and removes material cost from door repair (#15511)
* Oops did two different things at once Started out with me fixing improper material refunds on deconstructs, ended with me making doors not cost materials. Oops! * Graaah code fixius I know how new works now * Huge fart on PR I am so good at code huge fartius epic /obj fail I forgor * More effort than it's worth. unless im being lied to...!
This commit is contained in:
@@ -37,12 +37,10 @@
|
||||
|
||||
/obj/machinery/door/get_description_interaction()
|
||||
var/list/results = list()
|
||||
if(!repairing && (health < maxhealth) && !(stat & BROKEN))
|
||||
results += "[desc_panel_image("metal sheet")]to start repairing damage (May require different material type)."
|
||||
if(repairing && density)
|
||||
results += "[desc_panel_image("welder")]to finish repairs."
|
||||
results += "[desc_panel_image("crowbar")]to undo adding sheets for repairs."
|
||||
|
||||
//VOREstation Edit: Removing material requirements
|
||||
if((health < maxhealth) && !(stat & BROKEN))
|
||||
results += "[desc_panel_image("welder")]to start repairing damage."
|
||||
//VOREstation Edit End
|
||||
return results
|
||||
|
||||
/obj/machinery/door/airlock/get_description_interaction()
|
||||
|
||||
@@ -321,7 +321,7 @@ var/list/name_to_material
|
||||
|
||||
// General wall debris product placement.
|
||||
// Not particularly necessary aside from snowflakey cult girders.
|
||||
/datum/material/proc/place_dismantled_product(var/turf/target, var/amount = 1)
|
||||
/datum/material/proc/place_dismantled_product(var/turf/target, var/amount = 1) //Added an amount var to this. Lets multi-dropped walls to drop all of their sheets together. Woo!
|
||||
place_sheet(target, amount)
|
||||
|
||||
// Debris product. Used ALL THE TIME.
|
||||
|
||||
Reference in New Issue
Block a user