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.

Difference between revisions of "DF2014 Talk:Strange mood"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(rsp)
Line 1: Line 1:
 
==Mood Lottery==
 
==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 [https://github.com/DFHack/dfhack/blob/master/plugins/strangemood.cpp#L567 strangemood] plugin (which I mostly reimplemented from disassembly - there are some minor differences, but most of the logic is intact). --[[User:Quietust|Quietust]] ([[User talk:Quietust|talk]]) 19:48, 2 September 2014 (UTC)
 
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 [https://github.com/DFHack/dfhack/blob/master/plugins/strangemood.cpp#L567 strangemood] plugin (which I mostly reimplemented from disassembly - there are some minor differences, but most of the logic is intact). --[[User:Quietust|Quietust]] ([[User talk: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.--[[User:Loci|Loci]] ([[User talk:Loci|talk]]) 20:10, 2 September 2014 (UTC)

Revision as of 20:10, 2 September 2014

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)