From 0d9ae2932c4b459d8ce159d5ff1356364a12ca74 Mon Sep 17 00:00:00 2001 From: Sierra Helper <125094432+SierraHelper@users.noreply.github.com> Date: Sun, 30 Jun 2024 13:50:14 +0300 Subject: [PATCH] [MIRROR] removed . = ..() from some on_update_icon impls (#2321) Co-authored-by: Spookerton <918997+Spookerton@users.noreply.github.com> Co-authored-by: UEDCommander <52104104+UEDCommander@users.noreply.github.com> --- code/datums/beam.dm | 1 - code/game/machinery/teleporter/beacon.dm | 3 --- code/game/objects/effects/decals/Cleanable/misc.dm | 1 - code/game/objects/items/devices/inducer.dm | 2 +- code/game/objects/items/flora.dm | 1 - code/game/objects/items/paper_fortune_teller.dm | 1 - code/game/objects/items/weapons/flamethrower.dm | 2 +- code/game/objects/items/weapons/melee/energy.dm | 1 - code/game/objects/items/weapons/storage/misc.dm | 1 - code/game/objects/structures/watercloset.dm | 1 - code/modules/clothing/masks/cig_crafting.dm | 7 +++---- code/modules/holomap/ship_holomap.dm | 1 - code/modules/mechs/equipment/combat.dm | 3 --- code/modules/mechs/equipment/utility.dm | 1 - code/modules/mechs/interface/screen_objects.dm | 1 - .../simple_animal/hostile/giant_spider/webslinger.dm | 2 -- .../modular_computers/computers/subtypes/dev_console.dm | 2 +- code/modules/overmap/contacts/tracker.dm | 1 - code/modules/projectiles/guns/magnetic/magnetic.dm | 2 +- .../reagents/reagent_containers/food/drinks/bottle.dm | 2 +- code/modules/xenoarcheaology/tools/transport_drone.dm | 1 - maps/away/skrellscoutship/skrellscoutship_machines.dm | 2 -- maps/torch/structures/memorabilia.dm | 4 ++-- 23 files changed, 10 insertions(+), 33 deletions(-) diff --git a/code/datums/beam.dm b/code/datums/beam.dm index 0caf2e0488f6b..dea7e5affce9e 100644 --- a/code/datums/beam.dm +++ b/code/datums/beam.dm @@ -153,7 +153,6 @@ //Equivalent to /obj/ebeam, except it also adds an emissive layer /obj/ebeam/emissive/on_update_icon() - . = ..() var/mutable_appearance/emissive_overlay = emissive_appearance(icon, icon_state, src) AddOverlays(emissive_overlay) diff --git a/code/game/machinery/teleporter/beacon.dm b/code/game/machinery/teleporter/beacon.dm index 2f9f9343d3660..6ba4dae0678a0 100644 --- a/code/game/machinery/teleporter/beacon.dm +++ b/code/game/machinery/teleporter/beacon.dm @@ -135,10 +135,7 @@ var/global/const/TELEBEACON_WIRE_SIGNALLER = 4 /obj/machinery/tele_beacon/on_update_icon() - . = ..() - icon_state = initial(icon_state) - if (panel_open) icon_state += "_open" else if (functioning()) diff --git a/code/game/objects/effects/decals/Cleanable/misc.dm b/code/game/objects/effects/decals/Cleanable/misc.dm index d0c91ebcd573a..6c4e716092daa 100644 --- a/code/game/objects/effects/decals/Cleanable/misc.dm +++ b/code/game/objects/effects/decals/Cleanable/misc.dm @@ -91,7 +91,6 @@ SetTransform(rotation = pick(90, 180, 270)) /obj/decal/cleanable/vomit/on_update_icon() - . = ..() color = reagents.get_color() /obj/decal/cleanable/tomato_smudge diff --git a/code/game/objects/items/devices/inducer.dm b/code/game/objects/items/devices/inducer.dm index fce6bc4937566..b30ea5f5e6e95 100644 --- a/code/game/objects/items/devices/inducer.dm +++ b/code/game/objects/items/devices/inducer.dm @@ -189,7 +189,7 @@ return ..() /obj/item/inducer/borg/on_update_icon() - . = ..() + ..() AddOverlays(image("icons/obj/guns/gui.dmi","safety[safety()]")) /obj/item/inducer/borg/verb/toggle_safety(mob/user) diff --git a/code/game/objects/items/flora.dm b/code/game/objects/items/flora.dm index 54100428fa6ee..d2dfbcb378397 100644 --- a/code/game/objects/items/flora.dm +++ b/code/game/objects/items/flora.dm @@ -33,7 +33,6 @@ return ..() /obj/item/flora/pottedplantsmall/fern/on_update_icon() - . = ..() if (trimmed) name = "fancy trimmed ferny potted plant" desc = "This leafy desk fern seems to have been trimmed too much." diff --git a/code/game/objects/items/paper_fortune_teller.dm b/code/game/objects/items/paper_fortune_teller.dm index 1f4bf9a02b3fe..b8335989bc96b 100644 --- a/code/game/objects/items/paper_fortune_teller.dm +++ b/code/game/objects/items/paper_fortune_teller.dm @@ -33,7 +33,6 @@ . = ..() /obj/item/paper_fortune_teller/on_update_icon() - . = ..() var/datum/state_machine/fsm = get_state_machine(src, /datum/state_machine/paper_fortune) if(fsm && istype(fsm.current_state, /singleton/state/paper_fortune)) var/singleton/state/paper_fortune/fsm_state = fsm.current_state diff --git a/code/game/objects/items/weapons/flamethrower.dm b/code/game/objects/items/weapons/flamethrower.dm index 0b1367dfa559d..cf966eb535672 100644 --- a/code/game/objects/items/weapons/flamethrower.dm +++ b/code/game/objects/items/weapons/flamethrower.dm @@ -245,7 +245,7 @@ ) /obj/item/flamethrower/full/on_update_icon() - . = ..() + ..() item_state_slots[slot_l_hand_str] = "humanoid body-slot_l_hand_[lit]" item_state_slots[slot_r_hand_str] = "humanoid body-slot_r_hand_[lit]" diff --git a/code/game/objects/items/weapons/melee/energy.dm b/code/game/objects/items/weapons/melee/energy.dm index 4fc2d9eb90971..ba3c29e0324b3 100644 --- a/code/game/objects/items/weapons/melee/energy.dm +++ b/code/game/objects/items/weapons/melee/energy.dm @@ -27,7 +27,6 @@ /obj/item/melee/energy/on_update_icon() - . = ..() if(active) icon_state = active_icon else diff --git a/code/game/objects/items/weapons/storage/misc.dm b/code/game/objects/items/weapons/storage/misc.dm index 32547be3c942b..d1f33e9ec243e 100644 --- a/code/game/objects/items/weapons/storage/misc.dm +++ b/code/game/objects/items/weapons/storage/misc.dm @@ -193,7 +193,6 @@ startswith = list(/obj/item/clothing/mask/chewable/candy/lolli/weak_meds = 15) /obj/item/storage/medical_lolli_jar/on_update_icon() - . = ..() if(length(contents)) icon_state = "lollijar" else diff --git a/code/game/objects/structures/watercloset.dm b/code/game/objects/structures/watercloset.dm index 0f41c37960e36..3139220bf409c 100644 --- a/code/game/objects/structures/watercloset.dm +++ b/code/game/objects/structures/watercloset.dm @@ -710,7 +710,6 @@ update_icon() /obj/structure/hygiene/faucet/on_update_icon() - . = ..() icon_state = icon_state = "[initial(icon_state)][open ? "-on" : ""]" /obj/item/faucet diff --git a/code/modules/clothing/masks/cig_crafting.dm b/code/modules/clothing/masks/cig_crafting.dm index 33da9bd4d51fd..a716b55f761a2 100644 --- a/code/modules/clothing/masks/cig_crafting.dm +++ b/code/modules/clothing/masks/cig_crafting.dm @@ -15,12 +15,11 @@ to_chat(user, "One of the ends is capped off by a filter.") /obj/item/clothing/mask/smokable/cigarette/rolled/on_update_icon() - . = ..() + ..() if(!lit) icon_state = filter ? "cigoff" : "cigroll" -/////////// //Ported Straight from TG. I am not sorry. - BloodyMan //YOU SHOULD BE -//ROLLING// -/////////// + + /obj/item/paper/cig name = "rolling paper" desc = "A thin piece of paper used to make smokeables." diff --git a/code/modules/holomap/ship_holomap.dm b/code/modules/holomap/ship_holomap.dm index c5ebd72314bc6..9f67f14e50e65 100644 --- a/code/modules/holomap/ship_holomap.dm +++ b/code/modules/holomap/ship_holomap.dm @@ -150,7 +150,6 @@ M.client.images -= I /obj/machinery/ship_map/on_update_icon() - . = ..() ClearOverlays() if(MACHINE_IS_BROKEN(src)) icon_state = "station_mapb" diff --git a/code/modules/mechs/equipment/combat.dm b/code/modules/mechs/equipment/combat.dm index 52f18b02cbc48..e7310de91c523 100644 --- a/code/modules/mechs/equipment/combat.dm +++ b/code/modules/mechs/equipment/combat.dm @@ -144,7 +144,6 @@ ..() /obj/item/mech_equipment/shields/on_update_icon() - . = ..() //[SIERRA-ADD] - Mechs-by-Shegar if(OVERHEAT) icon_state= "shield_droid_overheat" @@ -243,7 +242,6 @@ /obj/aura/mechshield/on_update_icon() - . = ..() if(active) //[SIERRA-ADD] - Mechs-by-Shegar - добавляет степени повреждения энергощита var/percentrage = shields.charge/shields.max_charge * 100 @@ -648,7 +646,6 @@ return ..() /obj/item/mech_equipment/mounted_system/flamethrower/on_update_icon() - . = ..() if(owner && holding) var/obj/item/flamethrower/full/mech/FM = holding if(istype(FM)) diff --git a/code/modules/mechs/equipment/utility.dm b/code/modules/mechs/equipment/utility.dm index c46cbf729a007..4da69d34d22ea 100644 --- a/code/modules/mechs/equipment/utility.dm +++ b/code/modules/mechs/equipment/utility.dm @@ -791,7 +791,6 @@ update_icon() /obj/item/mech_equipment/ionjets/on_update_icon() - . = ..() if (active) icon_state = "mech_jet_on" set_light(1, 1, l_color = COLOR_LIGHT_CYAN) diff --git a/code/modules/mechs/interface/screen_objects.dm b/code/modules/mechs/interface/screen_objects.dm index 49c07c3faab6f..a6ee4e08fb172 100644 --- a/code/modules/mechs/interface/screen_objects.dm +++ b/code/modules/mechs/interface/screen_objects.dm @@ -192,7 +192,6 @@ queue_icon_update() /obj/screen/movable/exosuit/toggle/on_update_icon() - . = ..() icon_state = "[initial(icon_state)][toggled ? "_enabled" : ""]" maptext = SPAN_COLOR(toggled ? COLOR_WHITE : COLOR_GRAY,initial(maptext)) diff --git a/code/modules/mob/living/simple_animal/hostile/giant_spider/webslinger.dm b/code/modules/mob/living/simple_animal/hostile/giant_spider/webslinger.dm index f0269b1200a93..8072cbd037e83 100644 --- a/code/modules/mob/living/simple_animal/hostile/giant_spider/webslinger.dm +++ b/code/modules/mob/living/simple_animal/hostile/giant_spider/webslinger.dm @@ -66,8 +66,6 @@ . = ..() /obj/aura/web/on_update_icon() - . = ..() - icon_state = "web_[clamp(stacks, 1, 4)]" user.update_icon() diff --git a/code/modules/modular_computers/computers/subtypes/dev_console.dm b/code/modules/modular_computers/computers/subtypes/dev_console.dm index 96f6a4a18b63c..4146877c6c21f 100644 --- a/code/modules/modular_computers/computers/subtypes/dev_console.dm +++ b/code/modules/modular_computers/computers/subtypes/dev_console.dm @@ -44,7 +44,7 @@ return TRUE /obj/machinery/computer/modular/on_update_icon() - . = ..() + ..() var/datum/extension/interactive/ntos/os = get_extension(src, /datum/extension/interactive/ntos) if(os) if(os.on) diff --git a/code/modules/overmap/contacts/tracker.dm b/code/modules/overmap/contacts/tracker.dm index 823ba06cd4cf9..752958f3dda39 100644 --- a/code/modules/overmap/contacts/tracker.dm +++ b/code/modules/overmap/contacts/tracker.dm @@ -19,7 +19,6 @@ update_icon() /obj/item/ship_tracker/on_update_icon() - . = ..() icon_state = enabled ? "enabled" : "disabled" /obj/item/ship_tracker/examine(mob/user) diff --git a/code/modules/projectiles/guns/magnetic/magnetic.dm b/code/modules/projectiles/guns/magnetic/magnetic.dm index bbac9cab17f02..524d7a1a0ecf2 100644 --- a/code/modules/projectiles/guns/magnetic/magnetic.dm +++ b/code/modules/projectiles/guns/magnetic/magnetic.dm @@ -65,7 +65,7 @@ update_icon() /obj/item/gun/magnetic/on_update_icon() - . = ..() + ..() var/list/overlays_to_add = list() if(removable_components) if(cell) diff --git a/code/modules/reagents/reagent_containers/food/drinks/bottle.dm b/code/modules/reagents/reagent_containers/food/drinks/bottle.dm index e4a51a0daefac..e15ed4a6f010a 100644 --- a/code/modules/reagents/reagent_containers/food/drinks/bottle.dm +++ b/code/modules/reagents/reagent_containers/food/drinks/bottle.dm @@ -492,7 +492,7 @@ /obj/item/reagent_containers/food/drinks/bottle/champagne/on_update_icon() - . = ..() + ..() if(is_open_container()) if(sabraged) icon_state = "[initial(icon_state)]_sabrage" diff --git a/code/modules/xenoarcheaology/tools/transport_drone.dm b/code/modules/xenoarcheaology/tools/transport_drone.dm index 8cf6ffb615dc1..7579e5ae0b800 100644 --- a/code/modules/xenoarcheaology/tools/transport_drone.dm +++ b/code/modules/xenoarcheaology/tools/transport_drone.dm @@ -116,7 +116,6 @@ QDEL_NULL(current_flight) /obj/machinery/drone_pad/on_update_icon() - . = ..() ClearOverlays() if (current_flight) AddOverlays(list( diff --git a/maps/away/skrellscoutship/skrellscoutship_machines.dm b/maps/away/skrellscoutship/skrellscoutship_machines.dm index 485a0e9a33338..03d565643e9bb 100644 --- a/maps/away/skrellscoutship/skrellscoutship_machines.dm +++ b/maps/away/skrellscoutship/skrellscoutship_machines.dm @@ -29,8 +29,6 @@ update_icon() /obj/machinery/power/skrell_reactor/on_update_icon() - . = ..() - if(!field_image) field_image = image(icon = 'icons/obj/machines/power/fusion_core.dmi', icon_state = "emfield_s1") field_image.color = COLOR_CYAN diff --git a/maps/torch/structures/memorabilia.dm b/maps/torch/structures/memorabilia.dm index b437088ad08ee..58817f432b874 100644 --- a/maps/torch/structures/memorabilia.dm +++ b/maps/torch/structures/memorabilia.dm @@ -24,10 +24,10 @@ to_chat(user, "Magnetic chains hold it in place. Somebody isn't taking any risks with this one.") /obj/structure/decorative/ed209/on_update_icon() - . = ..() if(anchored) pixel_z = 8 - else pixel_z = 0 + else + pixel_z = 0 /obj/structure/decorative/ed209/use_tool(obj/item/tool, mob/user, list/click_params)