Skip to content

Commit

Permalink
[MIRROR] removed . = ..() from some on_update_icon impls (#2321)
Browse files Browse the repository at this point in the history
Co-authored-by: Spookerton <[email protected]>
Co-authored-by: UEDCommander <[email protected]>
  • Loading branch information
3 people authored Jun 30, 2024
1 parent bded0ab commit 0d9ae29
Show file tree
Hide file tree
Showing 23 changed files with 10 additions and 33 deletions.
1 change: 0 additions & 1 deletion code/datums/beam.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 0 additions & 3 deletions code/game/machinery/teleporter/beacon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
1 change: 0 additions & 1 deletion code/game/objects/effects/decals/Cleanable/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/devices/inducer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion code/game/objects/items/flora.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
1 change: 0 additions & 1 deletion code/game/objects/items/paper_fortune_teller.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/weapons/flamethrower.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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]"

Expand Down
1 change: 0 additions & 1 deletion code/game/objects/items/weapons/melee/energy.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@


/obj/item/melee/energy/on_update_icon()
. = ..()
if(active)
icon_state = active_icon
else
Expand Down
1 change: 0 additions & 1 deletion code/game/objects/items/weapons/storage/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion code/game/objects/structures/watercloset.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions code/modules/clothing/masks/cig_crafting.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
1 change: 0 additions & 1 deletion code/modules/holomap/ship_holomap.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 0 additions & 3 deletions code/modules/mechs/equipment/combat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@
..()

/obj/item/mech_equipment/shields/on_update_icon()
. = ..()
//[SIERRA-ADD] - Mechs-by-Shegar
if(OVERHEAT)
icon_state= "shield_droid_overheat"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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))
Expand Down
1 change: 0 additions & 1 deletion code/modules/mechs/equipment/utility.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion code/modules/mechs/interface/screen_objects.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@
. = ..()

/obj/aura/web/on_update_icon()
. = ..()

icon_state = "web_[clamp(stacks, 1, 4)]"
user.update_icon()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion code/modules/overmap/contacts/tracker.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/projectiles/guns/magnetic/magnetic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
update_icon()

/obj/item/gun/magnetic/on_update_icon()
. = ..()
..()
var/list/overlays_to_add = list()
if(removable_components)
if(cell)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion code/modules/xenoarcheaology/tools/transport_drone.dm
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@
QDEL_NULL(current_flight)

/obj/machinery/drone_pad/on_update_icon()
. = ..()
ClearOverlays()
if (current_flight)
AddOverlays(list(
Expand Down
2 changes: 0 additions & 2 deletions maps/away/skrellscoutship/skrellscoutship_machines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions maps/torch/structures/memorabilia.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0d9ae29

Please sign in to comment.