Fix cult structure stacking exploit (#17091)

This commit is contained in:
datlo
2021-11-13 16:15:24 +01:00
committed by GitHub
parent d946149456
commit f92f20c74c
3 changed files with 15 additions and 11 deletions
@@ -12,9 +12,9 @@
var/one_per_turf = 0
var/on_floor = 0
var/window_checks = FALSE
var/no_cult_structure = FALSE
var/cult_structure = FALSE
/datum/stack_recipe/New(title, result_type, req_amount = 1, res_amount = 1, max_res_amount = 1, time = 0, one_per_turf = 0, on_floor = 0, window_checks = FALSE, no_cult_structure = FALSE)
/datum/stack_recipe/New(title, result_type, req_amount = 1, res_amount = 1, max_res_amount = 1, time = 0, one_per_turf = 0, on_floor = 0, window_checks = FALSE, cult_structure = FALSE)
src.title = title
src.result_type = result_type
src.req_amount = req_amount
@@ -24,7 +24,7 @@
src.one_per_turf = one_per_turf
src.on_floor = on_floor
src.window_checks = window_checks
src.no_cult_structure = no_cult_structure
src.cult_structure = cult_structure
/datum/stack_recipe/proc/post_build(obj/item/stack/S, obj/result)
return