Skip to content

Commit 7d17d6e

Browse files
renamed Passive Point Cap Increase item to Passive Point Boost and did an edit pass on the Passive Points player options
1 parent 66bfee8 commit 7d17d6e

File tree

4 files changed

+21
-24
lines changed

4 files changed

+21
-24
lines changed

worlds/crystal_project/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def get_total_progressive_levels(self, max_progressive_levels: int) -> int:
454454
return progressive_levels
455455

456456
@staticmethod
457-
def get_total_passive_point_cap_items(max_passive_point_cap: int, starting_passive_point_cap: int, cap_increase: int) -> int:
457+
def get_total_passive_point_boosts(max_passive_point_cap: int, starting_passive_point_cap: int, cap_increase: int) -> int:
458458
return round((max_passive_point_cap - starting_passive_point_cap) / cap_increase)
459459

460460
#making randomized scholar ability pool
@@ -637,10 +637,10 @@ def get_item_pool(self, excluded_items: Set[str]) -> List[Item]:
637637
pool.append(item)
638638

639639
if self.options.maximum_passive_points > self.options.starting_passive_points:
640-
passive_points_to_add_to_pool = self.get_total_passive_point_cap_items(self.options.maximum_passive_points.value, self.options.starting_passive_points.value, self.options.passive_point_cap_increase_size.value)
641-
if passive_points_to_add_to_pool > 0:
642-
for _ in range(passive_points_to_add_to_pool):
643-
item = self.set_classifications(PASSIVE_POINT_CAP)
640+
passive_point_boosts_to_add_to_pool = self.get_total_passive_point_boosts(self.options.maximum_passive_points.value, self.options.starting_passive_points.value, self.options.passive_point_boost_size.value)
641+
if passive_point_boosts_to_add_to_pool > 0:
642+
for _ in range(passive_point_boosts_to_add_to_pool):
643+
item = self.set_classifications(PASSIVE_POINT_BOOST)
644644
pool.append(item)
645645

646646
if self.options.use_mods:
@@ -786,5 +786,5 @@ def fill_slot_data(self) -> Dict[str, Any]:
786786
"homePointHustle": self.options.home_point_hustle.value,
787787
"maximumPassivePoints": self.options.maximum_passive_points.value,
788788
"startingPassivePoints": self.options.starting_passive_points.value,
789-
"passivePointCapIncreaseSize": self.options.passive_point_cap_increase_size.value,
789+
"passivePointBoostSize": self.options.passive_point_boost_size.value,
790790
}

worlds/crystal_project/constants/key_items.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
ANCIENT_TABLET_C = "Item - Ancient Tablet C"
2323
TREASURE_FINDER = "Item - Treasure Finder"
2424
PROGRESSIVE_LEVEL = "Item - Progressive Level"
25-
PASSIVE_POINT_CAP = "Item - Passive Point Cap"
25+
PASSIVE_POINT_BOOST = "Item - Passive Point Boost"
2626
SPECIAL_SHOUDU_STEW = "Item - Special Shoudu Stew"
2727
SPECIAL_MILK = "Item - Special Milk"
2828
SPECIAL_FRESH_SALMON = "Item - Special Fresh Salmon"

worlds/crystal_project/items.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class Job(NamedTuple):
192192
TREASURE_FINDER: ItemData(ITEM, 196 + item_index_offset, ItemClassification.useful),
193193
# Progressive Level is used for all level gating options: Progressive Level Pass, Progressive Level Cap, and Progressive Level Catch-Up
194194
PROGRESSIVE_LEVEL: ItemData(ITEM, 500 + item_index_offset, ItemClassification.progression, 0),
195-
PASSIVE_POINT_CAP: ItemData(ITEM, 799 + item_index_offset, ItemClassification.useful, 0),
195+
PASSIVE_POINT_BOOST: ItemData(ITEM, 799 + item_index_offset, ItemClassification.useful, 0),
196196
HOMEPOINT_UNLOCK: ItemData(ITEM, 800 + item_index_offset, ItemClassification.filler, 0),
197197
SPECIAL_SHOUDU_STEW: ItemData(ITEM, 229 + item_index_offset, ItemClassification.progression, 0, 1),
198198
SPECIAL_MILK: ItemData(ITEM, 230 + item_index_offset, ItemClassification.progression, 0, 1),

worlds/crystal_project/options.py

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -304,34 +304,31 @@ class MaxLevel(Range):
304304
range_end = 99
305305
default = 60
306306

307-
class MaximumPassivePoints(Range):
307+
class StartingPassivePoints(Range):
308308
"""
309-
This controls the maximum number of passive points each party member will have
310-
Default is the vanilla value of 10
311-
If your starting Passive points are less than your maximum, checks will be added to the pool that increase the maximum when found.
309+
The number of Passive Points each party member starts with. Default is the vanilla value of 10.
312310
"""
313-
display_name = "Max Passive Points"
311+
display_name = "Starting Passive Points"
314312
range_start = 0
315313
range_end = 50
316314
default = 10
317315

318-
class StartingPassivePoints(Range):
316+
class MaximumPassivePoints(Range):
319317
"""
320-
This controls the number of passive points each party member will have at the start of the seed
321-
Default is the vanilla value of 10
322-
If your starting Passive points are less than your maximum, checks will be added to the pool that increase the maximum when found.
318+
The maximum number of Passive Points each party member can have. Default is the vanilla value of 10.
319+
320+
If you set your Maximum Passive Points higher than your Starting Passive Points, Passive Point Boosts will be added to the item pool that increase your party's available Passive Points when found.
323321
"""
324-
display_name = "Starting Passive Points"
322+
display_name = "Maximum Passive Points"
325323
range_start = 0
326324
range_end = 50
327325
default = 10
328326

329-
class PassivePointCapIncreaseSize(Range):
327+
class PassivePointBoostSize(Range):
330328
"""
331-
If your Maximum Passive Points is greate than your starting passive points
332-
this controls how many additional passive points each check will give you
329+
This sets the number of Passive Points you gain per Passive Point Boost.
333330
"""
334-
display_name = "Passive Point Cap Increase Size"
331+
display_name = "Passive Point Boost Size"
335332
range_start = 1
336333
range_end = 10
337334
default = 2
@@ -550,7 +547,7 @@ class CrystalProjectOptions(PerGameCommonOptions):
550547
max_level: MaxLevel
551548
starting_passive_points: StartingPassivePoints
552549
maximum_passive_points: MaximumPassivePoints
553-
passive_point_cap_increase_size: PassivePointCapIncreaseSize
550+
passive_point_boost_size: PassivePointBoostSize
554551
key_mode: KeyMode
555552
obscure_routes: ObscureRoutes
556553
hop_to_it: HopToIt
@@ -572,7 +569,7 @@ class CrystalProjectOptions(PerGameCommonOptions):
572569
crystal_project_option_groups: Dict[str, List[Any]] = {
573570
"Goal Options": [Goal, ClamshellGoalQuantity, ExtraClamshellsInPool, AstleyJobQuantity],
574571
"Location Options": [IncludedRegions, JobRando, StartingJobQuantity, DisableSparks, KillBossesMode, Shopsanity, Regionsanity, RegionsanityStarterRegionMinLevel, RegionsanityStarterRegionMaxLevel, HomePointHustle],
575-
"Progression Options": [ProgressiveMountMode, StartingLevel, LevelGating, LevelComparedToEnemies, ProgressiveLevelSize, MaxLevel, StartingPassivePoints, MaximumPassivePoints, PassivePointCapIncreaseSize, KeyMode, ObscureRoutes, HopToIt, PrioritizeCrystals, AutoSpendLP, AutoEquipPassives, EasyLeveling],
572+
"Progression Options": [ProgressiveMountMode, StartingLevel, LevelGating, LevelComparedToEnemies, ProgressiveLevelSize, MaxLevel, StartingPassivePoints, MaximumPassivePoints, PassivePointBoostSize, KeyMode, ObscureRoutes, HopToIt, PrioritizeCrystals, AutoSpendLP, AutoEquipPassives, EasyLeveling],
576573
"Item Pool Options": [ProgressiveEquipmentMode, StartWithTreasureFinder, StartWithMaps, FillFullMap, IncludeSummonAbilities, IncludeScholarAbilities],
577574
"Bonus Fun": [ItemInfoMode, RandomizeMusic, UseMods]
578575
}

0 commit comments

Comments
 (0)