mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-27 17:03:22 -07:00
Even more review stuff - we're almost done
This commit is contained in:
@@ -2,6 +2,7 @@ from BaseClasses import Item, ItemClassification
|
||||
from .Types import HatDLC, HatType, hat_type_to_item, Difficulty, ItemData, HatInTimeItem
|
||||
from .Locations import get_total_locations
|
||||
from .Rules import get_difficulty
|
||||
from .Options import get_total_time_pieces
|
||||
from typing import Optional, List, Dict, TYPE_CHECKING
|
||||
|
||||
if TYPE_CHECKING:
|
||||
@@ -65,17 +66,7 @@ def create_itempool(world: "HatInTimeWorld") -> List[Item]:
|
||||
continue
|
||||
|
||||
if name == "Time Piece":
|
||||
tp_count = 40
|
||||
max_extra = 0
|
||||
if world.is_dlc1():
|
||||
max_extra += 6
|
||||
|
||||
if world.is_dlc2():
|
||||
max_extra += 10
|
||||
|
||||
tp_count += min(max_extra, world.options.MaxExtraTimePieces.value)
|
||||
tp_list: List[Item] = create_multiple_items(world, name, tp_count, item_type)
|
||||
|
||||
tp_list: List[Item] = create_multiple_items(world, name, get_total_time_pieces(world), item_type)
|
||||
for i in range(int(len(tp_list) * (0.01 * world.options.TimePieceBalancePercent.value))):
|
||||
tp_list[i].classification = ItemClassification.progression
|
||||
|
||||
|
||||
@@ -886,8 +886,8 @@ def get_shuffled_region(world: "HatInTimeWorld", region: str) -> str:
|
||||
|
||||
|
||||
def create_thug_shops(world: "HatInTimeWorld"):
|
||||
min_items: int = min(world.options.NyakuzaThugMinShopItems.value, world.options.NyakuzaThugMaxShopItems.value)
|
||||
max_items: int = max(world.options.NyakuzaThugMaxShopItems.value, world.options.NyakuzaThugMinShopItems.value)
|
||||
min_items: int = world.options.NyakuzaThugMinShopItems.value
|
||||
max_items: int = world.options.NyakuzaThugMaxShopItems.value
|
||||
count = -1
|
||||
step = 0
|
||||
old_name = ""
|
||||
|
||||
Reference in New Issue
Block a user