Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Hard-coded material/item behavior  (Read 739 times)

Random832

  • Bay Watcher
    • View Profile
Hard-coded material/item behavior
« on: December 17, 2008, 08:39:50 pm »

The following tokens appear in the EXE:

COPPER, SILVER, ELECTRUM, GOLD: only metals that can make useful coins
PLATINUM: Are platinum coins possible?
DIAMOND, EMERALD, RUBY, SAPPHIRE - some sort of hardcoded rarity?
DRAGON - ???
ITEM_WEAPON_SWORD_2H, ITEM_ARMOR_PLATEMAIL, ITEM_ARMOR_CLOAK - ???
CAVE WHEAT - ???
Logged

brainfire

  • Bay Watcher
    • View Profile
Re: Hard-coded material/item behavior
« Reply #1 on: December 17, 2008, 08:56:51 pm »

Those are mostly the preference list for a dungeon master noble. Maybe all of them are.
Logged
You can allow or stop your dwarves from eating these mushrooms, but it's entirely optional and doesn't turn Dwarf Fortress into Dwarf hookah-smoking pad.

Random832

  • Bay Watcher
    • View Profile
Re: Hard-coded material/item behavior
« Reply #2 on: December 17, 2008, 09:05:20 pm »

Note that "CAVE WHEAT" is not the token for cave wheat. Maybe there's a behavior that's not happening because he put this instead of GRASS_WHEAT_CAVE?
Logged

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: Hard-coded material/item behavior
« Reply #3 on: December 17, 2008, 09:07:15 pm »

Yeah, those are the dungeon master pref tokens, in order.  And yeah, that must have been an old token for it.  It's now corrected.  It's supposed to make the DM like dwarven beer.
Logged
The Toad, a Natural Resource:  Preserve yours today!

Random832

  • Bay Watcher
    • View Profile
Re: Hard-coded material/item behavior
« Reply #4 on: December 17, 2008, 09:10:45 pm »

Yeah, those are the dungeon master pref tokens, in order.  And yeah, that must have been an old token for it.  It's now corrected.  It's supposed to make the DM like dwarven beer.

Yay, I helped find a bug for you to fix :)

So what determines coinage metals then? There doesn't seem to be anything for it in the raws - what happens if I take out silver, gold, or copper? (goes to try it...) - EDIT: nevermind - CURRENCY in entities.
« Last Edit: December 17, 2008, 09:24:50 pm by Random832 »
Logged

Pilsu

  • Bay Watcher
    • View Profile
Re: Hard-coded material/item behavior
« Reply #5 on: December 18, 2008, 01:02:28 am »

Why does the Dungeon Master like dwarven beer?

Or twohanded swords for that matter, he can't even wield one
Logged

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: Hard-coded material/item behavior
« Reply #6 on: December 18, 2008, 09:56:10 am »

He's supposed to be sort of tacky.
Logged
The Toad, a Natural Resource:  Preserve yours today!