Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: When a token is repeated within USE_CASTE, does it overwrite the previous one?  (Read 275 times)

joostheger

  • Bay Watcher
    • View Profile

[CASTE:MALE]
[DESCRIPTION:a male]
[NATURAL_SKILL:SWIMMING:1]

[USE_CASTE:QUICKMALE:MALE]
[DESCRIPTION:a quick male]
[NATURAL_SKILL:SWIMMING:3]

Will Quick male has a swimming skill of 3? and an updated description? and so on?

Logged

crazyabe

  • Bay Watcher
  • I didn't start the fire...Just added the gasoline!
    • View Profile

When DF detects duplicate tokens in the raws of the same object, a failsafe seems to kick in; it takes the bottom-most of the duplicates, and disregards the others. In the case of tokens added by a mod, it prioritizes the duplicate in the mod.
TLDR: because "QUICKMALE" is "lower" on the list than "MALE"- the duplicated token (IE "NATURAL_SKILL:SWIMMING:3") overwrites the previous account of its use ("NATURAL_SKILL:SWIMMING:1") so yes it should.
Logged
Quote from: MonkeyMarkMario, 2023
“Don’t quote me.”
nothing here.

joostheger

  • Bay Watcher
    • View Profile

Right, thanks!
Logged