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
(+foreign weapons)
Line 2: Line 2:
 
A moody dwarf with a preference for large daggers create a large cave crocodile bone dagger in my fort. My civilization is not capable of producing large daggers, so I suppose it's confirmed that preferences can allow item types that couldn't otherwise be chosen.--[[User:Loci|Loci]] ([[User talk:Loci|talk]]) 18:47, 22 February 2015 (UTC)
 
A moody dwarf with a preference for large daggers create a large cave crocodile bone dagger in my fort. My civilization is not capable of producing large daggers, so I suppose it's confirmed that preferences can allow item types that couldn't otherwise be chosen.--[[User:Loci|Loci]] ([[User talk:Loci|talk]]) 18:47, 22 February 2015 (UTC)
  
 +
Yep. My king, a clothier, created an artifact face veil.--[[User:Feb Rainyworks|Feb Rainyworks]] 13 June 2015
  
 
==Mood Lottery==
 
==Mood Lottery==

Revision as of 01:00, 14 June 2015

Foreign weapons

A moody dwarf with a preference for large daggers create a large cave crocodile bone dagger in my fort. My civilization is not capable of producing large daggers, so I suppose it's confirmed that preferences can allow item types that couldn't otherwise be chosen.--Loci (talk) 18:47, 22 February 2015 (UTC)

Yep. My king, a clothier, created an artifact face veil.--Feb Rainyworks 13 June 2015

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)