/New -> /Initialize Migration §2: Stacks. (#27446)

* refactor: /New -> /Initialize §2: stacks

* remove named arg from phazon BS crystal removal

* whoops
This commit is contained in:
warriorstar-orion
2024-12-30 14:36:32 +00:00
committed by GitHub
parent f5e752732b
commit c68637011a
15 changed files with 96 additions and 106 deletions
+5 -7
View File
@@ -17,8 +17,8 @@
var/points = 0 //How many points this ore gets you from the ore redemption machine
var/refined_type = null //What this ore defaults to being refined into
/obj/item/stack/ore/New(loc, new_amount, merge = TRUE)
..()
/obj/item/stack/ore/Initialize(mapload, new_amount, merge = TRUE)
. = ..()
pixel_x = rand(0, 16) - 8
pixel_y = rand(0, 8) - 8
@@ -349,14 +349,12 @@ GLOBAL_LIST_INIT(sand_recipes, list(\
var/cooldown = 0
var/credits = 10
/obj/item/coin/New()
..()
/obj/item/coin/Initialize(mapload)
. = ..()
icon_state = "coin_[cmineral]_[sideslist[1]]"
if(cmineral && name_by_cmineral)
name = "[cmineral] coin"
/obj/item/coin/Initialize(mapload)
. = ..()
update_appearance(UPDATE_NAME|UPDATE_ICON_STATE)
AddComponent(/datum/component/surgery_initiator/robo)
/obj/item/coin/gold