forked from CleverRaven/Cataclysm-DDA
-
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.
Add failure chance calculation, adjust catastrophic failure odds (#27)
* Display recipe chance of failure Split the crafting roll function into just providing the parameters for the normal curve it will be rolling on, and a function doing the actual roll. Also, fix some DBZ bugs, and add debug outputs while we're there. Then, add a function to calculate the chance we'll pass a normal roll with given center, stddev, and difficulty, and use that to provide the recipe success chance. Add this to the crafting GUI. * Adjust crafting catastrophic failure chances Fudge the numbers to make catastrophic (item-destroying) failures much less likely than setback failures. Also display the chance of a catastrophic failure in the UI.
- Loading branch information
1 parent
eec67b1
commit b41fbdc
Showing
5 changed files
with
173 additions
and
17 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
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