Refactored archeological finds to use Initialize() instead of New() where possible (#18964)

Refactored archeological finds to use Initialize() instead of New()
where possible
This commit is contained in:
Fluffy
2024-04-19 01:35:07 +02:00
committed by GitHub
parent 08945fb517
commit f9e8a7cd69
4 changed files with 86 additions and 17 deletions
+2 -2
View File
@@ -426,9 +426,9 @@ var/list/mineral_can_smooth_with = list(
//otherwise, they come out inside a chunk of rock
var/obj/item/X
if(prob_clean)
X = new /obj/item/archaeological_find(src, new_item_type = F.find_type)
X = new /obj/item/archaeological_find(src, F.find_type)
else
var/obj/item/ore/strangerock/SR = new /obj/item/ore/strangerock(src, inside_item_type = F.find_type)
var/obj/item/ore/strangerock/SR = new /obj/item/ore/strangerock(src, F.find_type)
SR.geologic_data = get_geodata()
X = SR