v50 Steam/Premium information for editors
- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.
DF2014 Talk:Strange mood
Jump to navigation
Jump to search
Mood Lottery
The idea of most dwarves getting 6 tickets in the mood lottery but other dwarves getting more is exactly how Toady implemented it, and you can see how it works in DFHack's strangemood plugin (which I mostly reimplemented from disassembly - there are some minor differences, but most of the logic is intact). --Quietust (talk) 19:48, 2 September 2014 (UTC)
- Fair enough; that certainly isn't how I would implement a random choice like that, but it would accomplish the job. I will note that your code uses "tickets" because you chose to use the keyword "tickets", not necessarily because the game itself uses "tickets", but that is splitting hairs.--Loci (talk) 20:10, 2 September 2014 (UTC)