From 8c906e927cac3fe583f0459567ab087ba8ceb187 Mon Sep 17 00:00:00 2001 From: GregHib Date: Thu, 23 Jan 2025 12:16:53 +0000 Subject: [PATCH] Rename clearGraphic to clearGfx() --- .../world/gregs/voidps/engine/entity/character/Character.kt | 2 +- .../gregs/voidps/world/command/debug/PlayerUpdatingCommands.kts | 2 +- .../world/gregs/voidps/world/map/falador/DressingRoom.kts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/src/main/kotlin/world/gregs/voidps/engine/entity/character/Character.kt b/engine/src/main/kotlin/world/gregs/voidps/engine/entity/character/Character.kt index 648f6f703..13d163acc 100644 --- a/engine/src/main/kotlin/world/gregs/voidps/engine/entity/character/Character.kt +++ b/engine/src/main/kotlin/world/gregs/voidps/engine/entity/character/Character.kt @@ -97,7 +97,7 @@ interface Character : Entity, Variable, EventDispatcher, Comparable { } } - fun clearGraphic() { + fun clearGfx() { visuals.primaryGraphic.reset() flagPrimaryGraphic() visuals.secondaryGraphic.reset() diff --git a/game/src/main/kotlin/world/gregs/voidps/world/command/debug/PlayerUpdatingCommands.kts b/game/src/main/kotlin/world/gregs/voidps/world/command/debug/PlayerUpdatingCommands.kts index ddb0ecdc3..8107cea0d 100644 --- a/game/src/main/kotlin/world/gregs/voidps/world/command/debug/PlayerUpdatingCommands.kts +++ b/game/src/main/kotlin/world/gregs/voidps/world/command/debug/PlayerUpdatingCommands.kts @@ -47,7 +47,7 @@ adminCommand("emote (emote-id)", "perform render emote by int or string id (-1 t adminCommand("gfx (gfx-id)", "perform graphic effect by int or string id (-1 to clear)") { when (content) { - "-1", "" -> player.clearGraphic() + "-1", "" -> player.clearGfx() else -> player.gfx(content)// 93 } } diff --git a/game/src/main/kotlin/world/gregs/voidps/world/map/falador/DressingRoom.kts b/game/src/main/kotlin/world/gregs/voidps/world/map/falador/DressingRoom.kts index c78273e70..04057c154 100644 --- a/game/src/main/kotlin/world/gregs/voidps/world/map/falador/DressingRoom.kts +++ b/game/src/main/kotlin/world/gregs/voidps/world/map/falador/DressingRoom.kts @@ -15,7 +15,7 @@ timerTick("dressing_room") { player -> } timerStop("dressing_room") { player -> - player.clearGraphic() + player.clearGfx() player["delay"] = 1 player.closeMenu() player.gfx("dressing_room_finish")