More improvements

This commit is contained in:
2024-12-27 03:36:45 +01:00
parent 30dc69ab4b
commit 0fe060ff99
12 changed files with 25 additions and 27 deletions

View File

@ -33,7 +33,7 @@ class ZoneManager {
return this.zones.get(zoneId)
}
public getCharacter(characterId: number): ZoneCharacter | undefined {
public getCharacterById(characterId: number): ZoneCharacter | undefined {
for (const zone of this.zones.values()) {
const character = zone.getCharactersInZone().find((char) => char.character.id === characterId)
if (character) return character