From 35b0f811f23f029110373798b19d9d0895d907f0 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 5 Jan 2025 16:54:36 +0100 Subject: next commit --- packets/character_information.gd | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packets/character_information.gd') diff --git a/packets/character_information.gd b/packets/character_information.gd index a2ac0ab..9c940c5 100644 --- a/packets/character_information.gd +++ b/packets/character_information.gd @@ -182,6 +182,10 @@ var character_name_change: int var gender: Constants.Gender +func get_map_name() -> String: + return map_name.substr(0, map_name.length() - 4) + + static func from_bytes(bytes: PackedByteArray): var info = CharacterInformation.new() -- cgit v1.2.3