Materials stacktrace on deletion (#17056)

* Atomization

* changelog

* sdf

* Update code/modules/item_worth/materials.dm

Co-authored-by: SleepyGemmy <99297919+SleepyGemmy@users.noreply.github.com>

---------

Co-authored-by: FluffyGhost <FluffyGhost>
Co-authored-by: SleepyGemmy <99297919+SleepyGemmy@users.noreply.github.com>
This commit is contained in:
Fluffy
2023-08-14 15:50:28 +00:00
committed by GitHub
co-authored by SleepyGemmy FluffyGhost <FluffyGhost>
parent 75c2873fb8
commit 203a780eae
2 changed files with 47 additions and 1 deletions
+6 -1
View File
@@ -1,6 +1,11 @@
/material
var/value = 1
/material/Destroy(force)
stack_trace("Someone tried to delete a /material.")
. = ..()
return QDEL_HINT_LETMELIVE //Materials cannot be deleted, as you cannot poof the concept out of existence
/material/uranium
value = 100
@@ -83,4 +88,4 @@
value = 5
/material/bone/necromancer
value = 50
value = 50