Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean up some weird typo'd types that shouldn't exist #4575

Merged
merged 2 commits into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@
RND_CATEGORY_INITIAL,
RND_CATEGORY_AKHTER_RESOURCES,
)
a
1 change: 0 additions & 1 deletion monkestation/code/modules/events/brand_intelligence.dm
Original file line number Diff line number Diff line change
Expand Up @@ -241,4 +241,3 @@

#undef MAX_INFECTION_DISTANCE
#undef MIN_INFECTION_DISTANCE
z
32 changes: 16 additions & 16 deletions monkestation/code/modules/virology/machines/incubator.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
idle_power_usage = 100
active_power_usage = 200

// Contains instances of /dish_incubator_dish.
// Contains instances of /datum/dish_incubator_dish.
var/list/dish_data = list(null, null, null)

var/on = FALSE
Expand Down Expand Up @@ -90,7 +90,7 @@
if (!user.transferItemToLoc(VD, src))
return

var/dish_incubator_dish/dish_datum = new
var/datum/dish_incubator_dish/dish_datum = new
dish_datum.dish = VD
dish_data[slot] = dish_datum

Expand All @@ -108,7 +108,7 @@
if ("power")
on = !on
if (on)
for (var/dish_incubator_dish/dish_datum in dish_data)
for (var/datum/dish_incubator_dish/dish_datum in dish_data)
if (dish_datum.dish.contained_virus)
dish_datum.dish.contained_virus.log += "<br />[ROUND_TIME()] Incubation started by [key_name(usr)]"

Expand All @@ -120,7 +120,7 @@
if (slot == null || slot < 1 || slot > dish_data.len)
return TRUE

var/dish_incubator_dish/dish_datum = dish_data[slot]
var/datum/dish_incubator_dish/dish_datum = dish_data[slot]
if (dish_datum == null)
return TRUE

Expand Down Expand Up @@ -154,7 +154,7 @@
if (slot == null || slot < 1 || slot > dish_data.len)
return TRUE

var/dish_incubator_dish/dish_datum = dish_data[slot]
var/datum/dish_incubator_dish/dish_datum = dish_data[slot]
if (dish_datum == null)
return TRUE

Expand All @@ -166,7 +166,7 @@
if (slot == null || slot < 1 || slot > dish_data.len)
return TRUE

var/dish_incubator_dish/dish_datum = dish_data[slot]
var/datum/dish_incubator_dish/dish_datum = dish_data[slot]
if (dish_datum == null)
return TRUE

Expand All @@ -176,7 +176,7 @@
var/slot = text2num(params["slot"])
if(slot == null || slot < 1 || slot > dish_data.len)
return TRUE
var/dish_incubator_dish/dish_datum = dish_data[slot]
var/datum/dish_incubator_dish/dish_datum = dish_data[slot]
if (dish_datum == null)
return TRUE
var/stage_to_focus = input(usr, "Choose a stage to focus on. This will block symptoms from other stages from being mutated. Input 0 to disable effect focusing.", "Choose a stage.") as num
Expand All @@ -195,7 +195,7 @@
if (machine_stat & (NOPOWER))
to_chat(user, span_notice("Deprived of power, \the [src] is unresponsive."))
for (var/i in 1 to dish_data.len)
var/dish_incubator_dish/dish_datum = dish_data[i]
var/datum/dish_incubator_dish/dish_datum = dish_data[i]
if (dish_datum == null)
continue

Expand Down Expand Up @@ -231,7 +231,7 @@
data["dishes"] = dish_ui_data

for (var/i = 1 to dish_data.len)
var/dish_incubator_dish/dish_datum = dish_data[i]
var/datum/dish_incubator_dish/dish_datum = dish_data[i]
var/list/dish_ui_datum = list()
// tfw no linq
dish_ui_data[++dish_ui_data.len] = dish_ui_datum
Expand Down Expand Up @@ -268,7 +268,7 @@

if (on)
use_power = ACTIVE_POWER_USE
for (var/dish_incubator_dish/dish_datum in dish_data)
for (var/datum/dish_incubator_dish/dish_datum in dish_data)
dish_datum.dish.incubate(mutatechance, growthrate, effect_focus)
else
use_power = IDLE_POWER_USE
Expand All @@ -277,15 +277,15 @@


/obj/machinery/disease2/incubator/proc/find_dish_datum(obj/item/weapon/virusdish/dish)
for (var/dish_incubator_dish/dish_datum in dish_data)
for (var/datum/dish_incubator_dish/dish_datum in dish_data)
if (dish_datum.dish == dish)
return dish_datum

return null


/obj/machinery/disease2/incubator/proc/update_major(obj/item/weapon/virusdish/dish)
var/dish_incubator_dish/dish_datum = find_dish_datum(dish)
var/datum/dish_incubator_dish/dish_datum = find_dish_datum(dish)
if (dish_datum == null)
return

Expand All @@ -295,7 +295,7 @@


/obj/machinery/disease2/incubator/proc/update_minor(obj/item/weapon/virusdish/dish, str=0, rob=0, eff=0)
var/dish_incubator_dish/dish_datum = find_dish_datum(dish)
var/datum/dish_incubator_dish/dish_datum = find_dish_datum(dish)
if (dish_datum == null)
return

Expand Down Expand Up @@ -342,7 +342,7 @@
if (dish_data[i] != null)
. += add_dish_sprite(dish_data[i], i)

/obj/machinery/disease2/incubator/proc/add_dish_sprite(dish_incubator_dish/dish_datum, slot)
/obj/machinery/disease2/incubator/proc/add_dish_sprite(datum/dish_incubator_dish/dish_datum, slot)
var/obj/item/weapon/virusdish/dish = dish_datum.dish
var/list/overlays = list()

Expand Down Expand Up @@ -459,7 +459,7 @@
/obj/machinery/disease2/incubator/Destroy()
. = ..()
for (var/i in 1 to dish_data.len)
var/dish_incubator_dish/dish_datum = dish_data[i]
var/datum/dish_incubator_dish/dish_datum = dish_data[i]
if (dish_datum == null)
continue

Expand All @@ -468,7 +468,7 @@

..()

/dish_incubator_dish
/datum/dish_incubator_dish
// The inserted virus dish.
var/obj/item/weapon/virusdish/dish

Expand Down
Loading