mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Stardew Valley: Refactor skill progression to use new feature system (#3662)
* create a first draft of the feature * use feature in items and locations * add content to more places * use feature in logic * replace option check by feature * remove unused code * remove weird white space * some import nitpicking * flip negative if
This commit is contained in:
@@ -7,7 +7,6 @@ from .has_logic import HasLogicMixin
|
||||
from .received_logic import ReceivedLogicMixin
|
||||
from .region_logic import RegionLogicMixin
|
||||
from .time_logic import TimeLogicMixin
|
||||
from ..options import Booksanity
|
||||
from ..stardew_rule import StardewRule, HasProgressionPercent
|
||||
from ..strings.book_names import Book
|
||||
from ..strings.craftable_names import Consumable
|
||||
@@ -39,7 +38,7 @@ class GrindLogic(BaseLogic[Union[GrindLogicMixin, HasLogicMixin, ReceivedLogicMi
|
||||
opening_rule = self.logic.region.can_reach(Region.blacksmith)
|
||||
mystery_box_rule = self.logic.has(Consumable.mystery_box)
|
||||
book_of_mysteries_rule = self.logic.true_ \
|
||||
if self.options.booksanity == Booksanity.option_none \
|
||||
if not self.content.features.booksanity.is_enabled \
|
||||
else self.logic.book.has_book_power(Book.book_of_mysteries)
|
||||
# Assuming one box per day, but halved because we don't know how many months have passed before Mr. Qi's Plane Ride.
|
||||
time_rule = self.logic.time.has_lived_months(quantity // 14)
|
||||
|
||||
Reference in New Issue
Block a user