mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
[MIRROR] Fixing this dead mouse related harddel [MDB IGNORE] (#23569)
* Fixing this dead mouse related harddel (#78150) ## About The Pull Request Fixes https://github.com/tgstation/tgstation/issues/78085 Fixes https://github.com/Skyrat-SS13/Skyrat-tg/issues/23510 Fixes https://github.com/Skyrat-SS13/Skyrat-tg/issues/23506  When the foodening added some args to the constructor of `/obj/item/food` some instances of the constructor being passed stuff got overlooked and were not updated. This resulted in a mob ref potentially being passed in to `starting_reagent_purity` in some cases, ultimately resulting in this harddel. @ SyncIt21 this is exactly the reason I was being so paranoid with #77946 the other day. Tracking constructor uses down can be such a pain when they aren't prefaced with a type, and are almost guaranteed to get overlooked during refactors if the compiler does not say anything about it. I hate DM. edit: and I just tested this only to find a second bug with the ice cream. I can confirm that it is in fact working now after fixing that one too. <details><summary>evil ice cream</summary>  </details> ## Why It's Good For The Game Fixing a harddel that was causing many CI failures ## Changelog 🆑 fix: fixes creamatorium not producing any suspicious ice cream, and fixes a dead mouse related harrdel /🆑 --------- Co-authored-by: MrMelbert <51863163+MrMelbert@ users.noreply.github.com> Co-authored-by: Jacquerel <hnevard@ gmail.com> * Fixing this dead mouse related harddel --------- Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com> Co-authored-by: MrMelbert <51863163+MrMelbert@ users.noreply.github.com> Co-authored-by: Jacquerel <hnevard@ gmail.com>
This commit is contained in:
@@ -51,13 +51,12 @@
|
||||
///Buff given when a hand-crafted version of this item is consumed. Randomized according to crafting_complexity if not assigned.
|
||||
var/datum/status_effect/food/crafted_food_buff = null
|
||||
|
||||
/obj/item/food/New(loc, starting_reagent_purity, no_base_reagents = FALSE, ...)
|
||||
/obj/item/food/Initialize(mapload, starting_reagent_purity, no_base_reagents = FALSE)
|
||||
src.starting_reagent_purity = starting_reagent_purity
|
||||
if(no_base_reagents)
|
||||
food_reagents = null
|
||||
return ..()
|
||||
|
||||
/obj/item/food/Initialize(mapload)
|
||||
if(food_reagents)
|
||||
food_reagents = string_assoc_list(food_reagents)
|
||||
. = ..()
|
||||
if(food_reagents)
|
||||
food_reagents = string_assoc_list(food_reagents)
|
||||
|
||||
@@ -367,7 +367,7 @@
|
||||
*/
|
||||
var/list/prefill_flavours
|
||||
|
||||
/obj/item/food/icecream/Initialize(mapload, list/prefill_flavours)
|
||||
/obj/item/food/icecream/Initialize(mapload, starting_reagent_purity, no_base_reagents, list/prefill_flavours)
|
||||
if(prefill_flavours)
|
||||
src.prefill_flavours = prefill_flavours
|
||||
return ..()
|
||||
|
||||
@@ -359,9 +359,9 @@ GLOBAL_LIST_EMPTY(crematoriums)
|
||||
desc = "A human incinerator. Works well during ice cream socials."
|
||||
|
||||
/obj/structure/bodycontainer/crematorium/creamatorium/cremate(mob/user)
|
||||
var/list/icecreams = new()
|
||||
var/list/icecreams = list()
|
||||
for(var/mob/living/i_scream as anything in get_all_contents_type(/mob/living))
|
||||
var/obj/item/food/icecream/IC = new(null, list(ICE_CREAM_MOB = list(null, i_scream.name)))
|
||||
var/obj/item/food/icecream/IC = new /obj/item/food/icecream(null, /* starting_reagent_purity = */ null, /* no_base_reagents = */ FALSE, list(ICE_CREAM_MOB = list(null, i_scream.name)))
|
||||
icecreams += IC
|
||||
. = ..()
|
||||
for(var/obj/IC in icecreams)
|
||||
|
||||
Reference in New Issue
Block a user