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:
Reo Lozzot
2024-04-11 18:10:04 +10:00
committed by GitHub
parent 4c90f3953d
commit d39d966206
11 changed files with 50 additions and 82 deletions
@@ -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.