Commit Graph

24 Commits

Author SHA1 Message Date
a237fa81bf
pull try out of Add
deferring a recovery handler is normal in Go but opaque. Pulling out a helper for this (`try`) makes it more obvious that this is just another "if this operation fails, return error" case.
2024-09-29 12:41:49 -07:00
2d16f97314
Remiplement Add to use reflection.
Now it matters whether `FieldLabel`s are spelled correctly, but in return, we don't have to write and maintain that obnoxious `switch` statement.
2024-09-29 12:19:07 -07:00
Rakeela
c4427885ca Converting cards to TablePolicy 2024-09-29 11:14:31 -07:00
d2a00d2044
fix compilation errors and warnings 2024-09-29 10:27:15 -07:00
ba5171fd67
Prototype for TablePolicy 2024-09-29 10:19:19 -07:00
Rakeela
e018bd0ad6 Card 10, first PIP implementation 2024-09-29 09:29:50 -07:00
Rakeela
16f452b08f Start on Implementing PIPs 2024-09-27 21:56:13 -07:00
Rakeela
18b221d972 Update stats.go 2024-09-27 16:04:17 -07:00
Rakeela
e45c5b3711 Test change
We'll see if this just works.
2024-09-27 15:45:34 -07:00
c30254a36d Crime stats update 2023-05-23 11:30:09 -07:00
350fd0f777
Use Mean to calculate StatChaos. 2023-05-13 20:15:57 -07:00
e61d7571f0 Chaos Stat 2023-05-13 20:05:07 -07:00
6d6d0f5c8b Squalor mechanic introduction
I haven't connected it to crime yet.
2023-04-19 22:33:24 -07:00
976610b1bb Food supply tweaks, new card 2023-04-19 11:37:40 -07:00
2ca8f3ed13 Economy Update,
Adding in diminishing returns.
2023-04-13 16:06:40 -07:00
95a30cb522 Foreign Relations, Forestry, and a New Issue
I guess this project will continue growing for now.
2023-04-05 20:26:57 -07:00
de98cf8fb3 Obesity Stat Implementation
First sigmoid function!
2023-04-05 12:29:23 -07:00
caa5c2e60c New Expense
I missed one from my notes
2023-04-05 00:09:12 -07:00
159508b202 New Issue, Food Supply Feature 2023-04-04 20:23:32 -07:00
e0dad09045 Refactor, new menu, issue feature update
It's now possible to make issue options enabled or disabled conditional upon having taken other actions with that issue before.
2023-04-04 13:22:43 -07:00
ccd141ddc5 Economic Stats Expansion
I also got rid of the "Sector" and "Gov" parts of the tokens, they were just pointless elongation.
2023-04-04 10:33:14 -07:00
8ce6539c8a IncompleteImplementationofSecondIssue 2023-04-03 16:18:26 -07:00
0e77206868 Change "Productivity" to "Income" and "Expense
Also fixes a typo and an incorrectly assigned variable.
2023-04-03 14:35:36 -07:00
825ee8d053
Initial stats, etc. 2023-04-02 23:24:47 -07:00