forked from virtualcommons/port-of-mars
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add solo game persistence, db interaction
- add fixtures for game treatments and event cards - add service methods for persisting game data and drawing cards/picking treatments - reworked solo game entities - (re-)add migration for solo game data model ref virtualcommons#856
- Loading branch information
Showing
19 changed files
with
551 additions
and
156 deletions.
There are no files selected for viewing
This file contains 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,74 @@ | ||
entity: SoloGameTreatment | ||
items: | ||
treatment1: | ||
id: 1 | ||
name: treatment1 | ||
isKnownNumberOfRounds: false | ||
isEventDeckKnown: false | ||
thresholdInformation: unknown | ||
treatment2: | ||
id: 2 | ||
name: treatment2 | ||
isKnownNumberOfRounds: false | ||
isEventDeckKnown: false | ||
thresholdInformation: range | ||
treatment3: | ||
id: 3 | ||
name: treatment3 | ||
isKnownNumberOfRounds: false | ||
isEventDeckKnown: false | ||
thresholdInformation: known | ||
treatment4: | ||
id: 4 | ||
name: treatment4 | ||
isKnownNumberOfRounds: false | ||
isEventDeckKnown: true | ||
thresholdInformation: unknown | ||
treatment5: | ||
id: 5 | ||
name: treatment5 | ||
isKnownNumberOfRounds: false | ||
isEventDeckKnown: true | ||
thresholdInformation: range | ||
treatment6: | ||
id: 6 | ||
name: treatment6 | ||
isKnownNumberOfRounds: false | ||
isEventDeckKnown: true | ||
thresholdInformation: known | ||
treatment7: | ||
id: 7 | ||
name: treatment7 | ||
isKnownNumberOfRounds: true | ||
isEventDeckKnown: false | ||
thresholdInformation: unknown | ||
treatment8: | ||
id: 8 | ||
name: treatment8 | ||
isKnownNumberOfRounds: true | ||
isEventDeckKnown: false | ||
thresholdInformation: range | ||
treatment9: | ||
id: 9 | ||
name: treatment9 | ||
isKnownNumberOfRounds: true | ||
isEventDeckKnown: false | ||
thresholdInformation: known | ||
treatment10: | ||
id: 10 | ||
name: treatment10 | ||
isKnownNumberOfRounds: true | ||
isEventDeckKnown: true | ||
thresholdInformation: unknown | ||
treatment11: | ||
id: 11 | ||
name: treatment11 | ||
isKnownNumberOfRounds: true | ||
isEventDeckKnown: true | ||
thresholdInformation: range | ||
treatment12: | ||
id: 12 | ||
name: treatment12 | ||
isKnownNumberOfRounds: true | ||
isEventDeckKnown: true | ||
thresholdInformation: known |
This file contains 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,119 @@ | ||
entity: SoloMarsEventCard | ||
items: | ||
event1: | ||
id: 1 | ||
codeName: "lifeAsUsual" | ||
displayName: "Life As Usual" | ||
flavorText: "As the first human outpost on Mars, having a \"usual\" day is pretty unusual." | ||
effect: "No special effect." | ||
drawMin: 10 | ||
drawMax: 20 | ||
rollMin: 0 | ||
rollMax: 0 | ||
systemHealthMultiplier: 0 | ||
pointsMultiplier: 0 | ||
resourcesMultiplier: 0 | ||
event2: # needs special casing (draw 2 more cards) | ||
id: 2 | ||
codeName: "murphysLaw" | ||
displayName: "Murphy's Law" | ||
flavorText: "Residents at Port of Mars know better than to ask, \"what ELSE could go wrong?\"" | ||
effect: "Reveal 2 more events for this round." | ||
drawMin: 1 | ||
drawMax: 1 | ||
rollMin: 0 | ||
rollMax: 0 | ||
systemHealthMultiplier: 0 | ||
pointsMultiplier: 0 | ||
resourcesMultiplier: 0 | ||
event3: | ||
id: 3 | ||
codeName: "lostTime" | ||
displayName: "Lost Time" | ||
flavorText: "Time flies when you're trying to stay alive." | ||
effect: "Lose {roll} resource{s} for this round." | ||
drawMin: 1 | ||
drawMax: 1 | ||
rollMin: 1 | ||
rollMax: 8 | ||
systemHealthMultiplier: 0 | ||
pointsMultiplier: 0 | ||
resourcesMultiplier: -1 | ||
event4: | ||
id: 4 | ||
codeName: "richDeposit" | ||
displayName: "Rich Deposit" | ||
flavorText: "A stroke of luck in an otherwise unlucky day." | ||
effect: "Gain {roll} resource{s} for this round." | ||
drawMin: 1 | ||
drawMax: 1 | ||
rollMin: 1 | ||
rollMax: 8 | ||
systemHealthMultiplier: 0 | ||
pointsMultiplier: 0 | ||
resourcesMultiplier: 1 | ||
event5: | ||
id: 5 | ||
codeName: "urgentRepairs" | ||
displayName: "Urgent Repairs" | ||
flavorText: "No pneumatic tires on mars, but there are always holes to patch." | ||
effect: "{roll} resource{s} are immediately diverted to system health." | ||
drawMin: 1 | ||
drawMax: 1 | ||
rollMin: 2 | ||
rollMax: 7 | ||
systemHealthMultiplier: 1 | ||
pointsMultiplier: 0 | ||
resourcesMultiplier: -1 | ||
event6: | ||
id: 6 | ||
codeName: "hullBreach" | ||
displayName: "hullBreach" | ||
flavorText: "Accidents happen. It's unavoidable. Our job is to do our best to avoid them all the same." | ||
effect: "Lose {roll} system health." | ||
drawMin: 4 | ||
drawMax: 4 | ||
rollMin: 1 | ||
rollMax: 10 | ||
systemHealthMultiplier: -1 | ||
pointsMultiplier: 0 | ||
resourcesMultiplier: 0 | ||
event7: | ||
id: 7 | ||
codeName: "softwareUpgrade" | ||
displayName: "Software Upgrade" | ||
flavorText: "A much needed patch to the system comes online." | ||
effect: "Gain {roll} system health." | ||
drawMin: 4 | ||
drawMax: 4 | ||
rollMin: 1 | ||
rollMax: 10 | ||
systemHealthMultiplier: 1 | ||
pointsMultiplier: 0 | ||
resourcesMultiplier: 0 | ||
event8: | ||
id: 8 | ||
codeName: "lostCargo" | ||
displayName: "Lost Cargo" | ||
flavorText: "Precious cargo, now forever Martian property." | ||
effect: "Lose {roll} point{s}." | ||
drawMin: 4 | ||
drawMax: 4 | ||
rollMin: 1 | ||
rollMax: 10 | ||
systemHealthMultiplier: 0 | ||
pointsMultiplier: -1 | ||
resourcesMultiplier: 0 | ||
event9: | ||
id: 9 | ||
codeName: "hitTheMotherload" | ||
displayName: "Hit the Motherload" | ||
flavorText: "A valuable find. Fortunately for us, not that useful for repairs." | ||
effect: "Gain {roll} point{s}." | ||
drawMin: 4 | ||
drawMax: 4 | ||
rollMin: 1 | ||
rollMax: 10 | ||
systemHealthMultiplier: 0 | ||
pointsMultiplier: 1 | ||
resourcesMultiplier: 0 |
This file contains 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 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 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 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 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 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 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
Oops, something went wrong.