mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Rogue Legacy: Fix early vendors and architect... again. (#1359)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from BaseClasses import MultiWorld, CollectionState
|
||||
from BaseClasses import CollectionState, MultiWorld
|
||||
|
||||
|
||||
def get_upgrade_total(multiworld: MultiWorld, player: int) -> int:
|
||||
@@ -20,7 +20,7 @@ def has_upgrade_amount(state: CollectionState, player: int, amount: int) -> bool
|
||||
|
||||
|
||||
def has_upgrades_percentage(state: CollectionState, player: int, percentage: float) -> bool:
|
||||
return has_upgrade_amount(state, player, get_upgrade_total(state.multiworld, player) * (round(percentage) // 100))
|
||||
return has_upgrade_amount(state, player, round(get_upgrade_total(state.multiworld, player) * (percentage / 100)))
|
||||
|
||||
|
||||
def has_movement_rune(state: CollectionState, player: int) -> bool:
|
||||
|
Reference in New Issue
Block a user