-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e710886
commit 20c72e2
Showing
11 changed files
with
883 additions
and
96 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
-- Used for all dice weighing modes except Situational, which needs special code | ||
Pools = { | ||
-- The way dice were handled in the jam version | ||
Legacy = { | ||
Operators = {"add","add","add","add", "mul","mul","mul", "sub", "div"}, | ||
Die = {1,2,3,4,5,6} | ||
}, | ||
-- All outcomes are equally likely | ||
Even = { | ||
Operators = {"add","mul","sub","div"}, | ||
Die = {1,2,3,4,5,6} | ||
}, | ||
-- Negative outcomes are more common | ||
Unfair = { | ||
Operators = {"sub","sub","sub","sub", "div","div","div", "add", "mul"}, | ||
Die = {1,1,1,1,1,2,2,2,2,3,3,3,3,4,5,6} | ||
} | ||
} | ||
|
||
function GetPoolByID(id) | ||
if id == 0 then | ||
return Pools.Legacy | ||
end | ||
if id == 1 then | ||
return Pools.Even | ||
end | ||
if id == 2 then | ||
return Pools.Legacy -- Placeholder: Real pools are dynamically generated | ||
end | ||
if id == 3 then | ||
return Pools.Unfair -- pain | ||
end | ||
end |
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.