Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Drink job logic change  (Read 573 times)

amade

  • Bay Watcher
    • View Profile
    • amade's illustrations
Drink job logic change
« on: October 11, 2024, 03:21:24 am »

Currently, as I understand from doing a little bit of !!SCIENCE!!, this is how dwarves go about looking for a drink:

  • Check if preferred drink exists, if not too far*, choose that barrel. Else, look for closest available barrel.
  • Check if a goblet/mug/cup exists, choose one closest to the dwarf's current position, and grab it.
  • Check if target drink still exists, and go to it.
*I haven't determined exactly how far is too far.

This will occasionally result in unwanted behavior such as dwarfs choosing goblets stockpiled closer to them but in the opposite direction to where the drinks they want to get, instead of getting goblets that are stockpiled closer to the drinks they wanted. In extreme cases, e.g. a dwarf halfway between the caverns and the tavern might go all the way up to the tavern to pick up a goblet and then all the way back down to the caverns to get their drink.

I propose the following changes:
  • No change in step 1
  • Check if a goblet/mug/cup exists on the same z-level as the target barrel, and grab the closest one to the barrel on the target z-level. If none exists on the target z-level, skip to step 3 without collecting a goblet/mug/cup.
  • No change in step 3

Players will need to stockpile mugs on every level where drinks are stockpiled, or just live with having some dwarves getting the occasional bad thought from drinking without a proper mug. The reason for restricting checking for mugs on same z-level is to minimize unnecessary traveling time, as sometimes dwarves might end up choosing a goblet that's one or two z-levels above/below the target barrel, but the pathing to it is actually a lot longer than a goblet on the same level.
Logged
¯\_(ツ)_/¯

SixOfSpades

  • Bay Watcher
  • likes flesh balls for their calming roundness
    • View Profile
Re: Drink job logic change
« Reply #1 on: October 12, 2024, 10:07:48 pm »

Allow dwarves to claim a mug as their personal property, and carry it on their person. May require a belt to be claimed & worn first.
Logged
Dwarf Fortress -- kind of like Minecraft, but for people who hate themselves.

amade

  • Bay Watcher
    • View Profile
    • amade's illustrations
Re: Drink job logic change
« Reply #2 on: October 13, 2024, 02:33:01 am »

Allow dwarves to claim a mug as their personal property, and carry it on their person. May require a belt to be claimed & worn first.

I assigned an artifact mug to my mayor as his symbol of office. He carries it around, but never uses it to drink with :-(
Logged
¯\_(ツ)_/¯

anewaname

  • Bay Watcher
  • The mattock... My choice for problem solving.
    • View Profile
Re: Drink job logic change
« Reply #3 on: October 14, 2024, 08:44:09 pm »

Allow dwarves to claim a mug as their personal property, and carry it on their person. May require a belt to be claimed & worn first.
This...
Logged
Quote from: dragdeler
There is something to be said about, if the stakes are as high, maybe reconsider your certitudes. One has to be aggressively allistic to feel entitled to be able to trust. But it won't happen to me, my bit doesn't count etc etc... Just saying, after my recent experiences I couldn't trust the public if I wanted to. People got their risk assessment neurons rotten and replaced with game theory. Folks walk around like fat turkeys taunting the world to slaughter them.