Map System Equip fix (#185)

Changing map key enable from hardcoded to item 2 to the actual vanilla behavior of checking for equip flag.
This commit is contained in:
Devon W 2023-01-23 14:51:40 -08:00 committed by GitHub
parent 0a7fd4dc47
commit 510442490e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1531,7 +1531,7 @@ impl GameScene {
self.inventory_player1.current_item = 0;
state.textscript_vm.set_mode(ScriptMode::Inventory);
self.player1.cond.set_interacted(false);
} else if self.player1.controller.trigger_map() && self.inventory_player1.has_item(2) {
} else if self.player1.controller.trigger_map() && self.player1.equip.has_map() {
state.textscript_vm.state = TextScriptExecutionState::MapSystem;
}
}