mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-26 14:46:52 +01:00
fixes infinite morphium duplication exploit (#9046)
* fixes very old exploit that we literally just discovered * this is what i get for speedrunning a bugfix * reworks material ejection code * literally it worked fine this is just so github likes it * Update code/game/machinery/autolathe.dm Co-authored-by: Atermonera <atermonera@gmail.com> * Update code/game/machinery/autolathe.dm Co-authored-by: Atermonera <atermonera@gmail.com> * code prettiness --------- Co-authored-by: Atermonera <atermonera@gmail.com>
This commit is contained in:
@@ -92,6 +92,10 @@
|
||||
name = "stack of durasteel hull"
|
||||
type_to_spawn = /obj/item/stack/material/durasteel/hull
|
||||
|
||||
/obj/fiftyspawner/grass
|
||||
name = "stack of grass"
|
||||
type_to_spawn = /obj/item/stack/material/grass
|
||||
|
||||
/obj/fiftyspawner/wood
|
||||
name = "stack of wood"
|
||||
type_to_spawn = /obj/item/stack/material/wood
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/datum/material/grass
|
||||
name = MAT_GRASS
|
||||
name = "grass"
|
||||
display_name = "grass"
|
||||
stack_type = /obj/item/stack/tile/grass
|
||||
stack_type = /obj/item/stack/material/grass
|
||||
ignition_point = T0C+300
|
||||
melting_point = T0C+300
|
||||
protectiveness = 0
|
||||
@@ -27,5 +27,6 @@
|
||||
new /datum/stack_recipe("pink-and-purple flowers", /obj/structure/flora/ausbushes/ppflowers, 3, one_per_turf = 0, on_floor = 1, recycle_material = "[name]"),
|
||||
new /datum/stack_recipe("sparse grass", /obj/structure/flora/ausbushes/sparsegrass, 3, one_per_turf = 0, on_floor = 1, recycle_material = "[name]"),
|
||||
new /datum/stack_recipe("full grass", /obj/structure/flora/ausbushes/fullgrass, 3, one_per_turf = 0, on_floor = 1, recycle_material = "[name]")
|
||||
))
|
||||
)),
|
||||
new /datum/stack_recipe("grass floor tile", /obj/item/stack/tile/grass, 1, 4, 20, pass_stack_color = TRUE, recycle_material = "[name]"),
|
||||
)
|
||||
@@ -53,3 +53,8 @@
|
||||
to_chat(user, "<span class='notice'>You add the newly-formed wood to the stack. It now contains [existing_wood.amount] planks.</span>")
|
||||
else
|
||||
return ..()
|
||||
|
||||
/obj/item/stack/material/grass
|
||||
name = "grass"
|
||||
icon_state = "tile_grass"
|
||||
default_type = "grass"
|
||||
Reference in New Issue
Block a user