forked from ArchipelagoMW/Archipelago
-
Notifications
You must be signed in to change notification settings - Fork 1
Sims 4: Rules Refactor Part 1 #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
71 commits
Select commit
Hold shift + click to select a range
30a19ca
move the create_event function to the items file
benny-dreamly d83657d
Revert "move the create_event function to the items file"
benny-dreamly 57b5ca0
pass the world, player and options instead of getting them
benny-dreamly aaf7a41
start making a completion condition function
benny-dreamly 05a7168
use the local goal variable
benny-dreamly 3024298
call the new function
benny-dreamly c44a509
make a local variable for the goal value and reference it
benny-dreamly f0a92ea
make variables for the pack options
benny-dreamly 6b045c8
more optimizing
benny-dreamly 14b2e52
more optimizing again
benny-dreamly 16bad25
move skill rules into new function
benny-dreamly 908ce2c
move aspiration rules into new function
benny-dreamly e813dc7
cool aspiration function thing
benny-dreamly f1fa2f1
move the lookup stuff down
benny-dreamly 452bbd9
note down what i'm thinking
benny-dreamly 4f8144d
new structure for career logic
benny-dreamly 4a48a54
use the new structure
benny-dreamly 3fb5ece
make the set rules function leaner
benny-dreamly 99f3afc
okay this should be good now
benny-dreamly d3ae8a9
move the completion condition call over
benny-dreamly cb6c2c0
oops that was broken at runtime
benny-dreamly fa3e777
move the helper functions down in order to make it easier to edit them
benny-dreamly d6cf72e
remove the old import
benny-dreamly d6fd1eb
rename the import
benny-dreamly 620b265
let's not override the location constructor
benny-dreamly 5b22429
add an event location creator method
benny-dreamly 7d0db30
start working on events
benny-dreamly b54b840
okay i think this is the first event
benny-dreamly c9f8c14
move the import
benny-dreamly af0a1ed
change it back?
benny-dreamly af431c1
change it back?
benny-dreamly ceb584d
another one
benny-dreamly 4306120
oooooooops
benny-dreamly 26a0bfb
okay well that was a fucking shitshow
benny-dreamly 55ae9a9
okay we're fully migrated to events for the goal now
benny-dreamly dcce519
fix the c&p mistake
benny-dreamly c44aa8d
remove old code
benny-dreamly ab74d9a
new line for EOF
benny-dreamly eaf003b
use a lookup table
benny-dreamly 05187cf
remove extra comma
benny-dreamly 79b5223
fix the lookup table
benny-dreamly 52f164d
fuck i fell in the trap again
benny-dreamly b3741f3
remove old code again
benny-dreamly 5986e93
remove unused imports
benny-dreamly 233e200
whitespace stuff
benny-dreamly c1e2c60
type the lookup table & remove trailing comma
benny-dreamly a557aac
typing
benny-dreamly c462db2
add eije's test thingy
benny-dreamly ce58185
unused import (again)
benny-dreamly 7012b74
fix some small things
benny-dreamly 61ae538
another typing thing
benny-dreamly 4157996
fix pep8
benny-dreamly 8c88da1
some small tweaks (other than that should be good)
benny-dreamly b57fc7b
oops extra space :D
benny-dreamly 86b1832
fix the extra space and make a new error type
benny-dreamly 534f139
fixywixy
benny-dreamly 5215c27
fix some formatting
benny-dreamly a423640
fix a pep8
benny-dreamly 1a95683
i think this is actually better
benny-dreamly fabfd74
stop shadowing the thing
benny-dreamly ef0feb4
actually make the thing optional and use it in the event thing
benny-dreamly db70ed8
add create location helper
benny-dreamly 4c24303
refactor to use the new location helper
benny-dreamly ad5b093
use the right Mapping
benny-dreamly 9f3f7a5
line length
benny-dreamly e58e6de
okay that went horribly wrong
benny-dreamly 60d9bb7
remove the comment (i misinterpreted)
benny-dreamly 9668878
update the version (i can't believe i forgot)
benny-dreamly 0da7c4e
remove unused import
benny-dreamly 8f91f09
fix the length of the line here
benny-dreamly e1ec54a
Update .github/workflows/test.yml
benny-dreamly File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| name: Test apworld | ||
| on: | ||
| push: | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| tests: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: Eijebong/ap-actions/ap-tests@main | ||
| with: | ||
| apworld-path: worlds/sims4 | ||
| ap-version: latest | ||
| python-version: '3.12' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| bodybuilder = "Completed Bodybuilder Aspiration" | ||
| bodybuilder_item = "Completed Bodybuilder" | ||
| painter_extraordinaire = "Completed Painter Extraordinaire Aspiration" | ||
| painter_extraordinaire_item = "Completed Painter Extraordinaire" | ||
| bestselling_author = "Completed Bestselling Author Aspiration" | ||
| bestselling_author_item = "Completed Bestselling Author" | ||
| musical_genius = "Completed Musical Genius Aspiration" | ||
| musical_genius_item = "Completed Musical Genius" | ||
| chief_of_mischief = "Completed Chief of Mischief Aspiration" | ||
| chief_of_mischief_item = "Completed Chief of Mischief" | ||
| public_enemy = "Completed Public Enemy Aspiration" | ||
| public_enemy_item = "Completed Public Enemy" | ||
| master_chef = "Completed Master Chef Aspiration" | ||
| master_chef_item = "Completed Master Chef" | ||
| master_mixologist = "Completed Master Mixologist Aspiration" | ||
| master_mixologist_item = "Completed Master Mixologist" | ||
| renaissance_sim = "Completed Renaissance Sim Aspiration" | ||
| renaissance_sim_item = "Completed Renaissance Sim" | ||
| nerd_brain = "Completed Nerd Brain Aspiration" | ||
| nerd_brain_item = "Completed Nerd Brain" | ||
| computer_whiz = "Completed Computer Whiz Aspiration" | ||
| computer_whiz_item = "Completed Computer Whiz" | ||
| serial_romantic = "Completed Serial Romantic Aspiration" | ||
| serial_romantic_item = "Completed Serial Romantic" | ||
| freelance_botanist = "Completed Freelance Botanist Aspiration" | ||
| freelance_botanist_item = "Completed Freelance Botanist" | ||
| the_curator = "Completed The Curator Aspiration" | ||
| the_curator_item = "Completed The Curator" | ||
| angling_ace = "Completed Angling Ace Aspiration" | ||
| angling_ace_item = "Completed Angling Ace" | ||
| joke_star = "Completed Joke Star Aspiration" | ||
| joke_star_item = "Completed Joke Star" | ||
| friend_of_the_world = "Completed Friend of the World Aspiration" | ||
| friend_of_the_world_item = "Completed Friend of the World" | ||
| neighborly_advisor = "Completed Neighborly Advisor Aspiration" | ||
| neighborly_advisor_item = "Completed Neighborly Advisor" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.