MapUpdate

object MapUpdate

This object provides a collection of methods to update the dungeon information from the map item in the hotbar and tab list.

Based on FunnyMap by Harry282

Colors in the map item: 85: grey - Unknown / unexplored room with questionmark in center. (color of the room not the questionmark) 63: brown; - Normal room. 30: green - Entracne room. and green checks. 18: red - Blood room. and failed puzzle X and blood door. 74: yellow - Mini room. 66: purple - Puzzle room. 82: pink - Fairy room. 0: blank - blank fully undiscovered. 119: black - question marks and wither doors. 34: white - used for checkmarks 62: orange - trap

Author

Aton

Functions

Link copied to clipboard
fun calibrate()
Link copied to clipboard
Link copied to clipboard

Makes sure that all rooms within Dungeon.dungeonList which are connected have the same data. Also updates the isUnique state.

Link copied to clipboard
fun updatePlayers(tabEntries: List<Pair<NetworkPlayerInfo, String>>)

Adds missing Players to the Dungeon.dungeonTeammates list and updates the information. Updates the dead status for the players. Dispatches DungeonPlayer.updatePlayerAndRoom for the teammates to update themselves.

Link copied to clipboard

Updates the dungeon info from the hotbar map item. Dispatches the map item based dungeon scan if that is enabled. Updates the room states and door states based on check marks and door color.