Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Steel Bolts -- Way too valuable  (Read 459 times)

JT

  • Bay Watcher
  • Explosively Canadian
    • View Profile
    • http://www.jtgibson.ca/df/
Steel Bolts -- Way too valuable
« on: October 31, 2007, 05:24:00 pm »

(This is a suggestion in a bug report's clothing.)

At present, each individual bolt is priced at 1¤.  Seems reasonable.  However, steel has a value of 30.  A single low-quality steel bolt is thus worth 30¤ -- 25 steel bolts are thus worth an unbelievable 750¤!

I propose that all ITEM_AMMO (or perhaps even all items) have a special flag which indicates the standard "lot": [LOTSIZE:20]

Under the default game, this is a score (20).  Thus, the value of any stack of bolts or arrows is equal to:

(quantity) * (value) * (material) * (quality) / (lotsize)

For instance, a stack of 25 mundane steel bolts will be worth {25 * 1 * 30 * 1.0 / 20 = 37.5} 38¤.

This is a simple enough change that it could probably be applied to all of the ITEM_ classes, with the Prepare for the Journey screen modified to consider all of the items of the same type as a single stack.


Along the lines of the Prepare for the Journey screen, it would have to display (somehow) the actual lot size of the items being purchased when adding a [n]ew item.  I suggest "(value)¤/(lotsize)" -- e.g., "30¤/20".  I also suggest replacing all of the " P" on the [n]ew item screen with "¤", so it's more obvious that commodities are listed by actual value; there's no need to distinguish points and monetary value since they're directly equivalent when purchasing equipment, though obviously they're not directly equivalent when purchasing skills.

[ October 31, 2007: Message edited by: JT ]

Logged
"The very existence of flamethrowers proves that some time, somewhere, someone said to themselves, 'You know, I want to set those people over there on fire, but I'm just not close enough to get the job done.'" --George Carlin

Skeeblix

  • Bay Watcher
    • View Profile
Re: Steel Bolts -- Way too valuable
« Reply #1 on: October 31, 2007, 10:43:00 pm »

Not a bad idea. Not at all.
Logged
This is not a signature.

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: Steel Bolts -- Way too valuable
« Reply #2 on: October 31, 2007, 11:23:00 pm »

If you divide, you lose precision -- how much is a single copper bolt worth?  What if you sold them separately?

I multiplied up all the weights so that I could handle small items more reasonable (probably need to do it even more).  Monetary values probably also need to be increased (even if it then displays them a few decimal points over and rounds in many applications).

[ November 01, 2007: Message edited by: Toady One ]

Logged
The Toad, a Natural Resource:  Preserve yours today!

JT

  • Bay Watcher
  • Explosively Canadian
    • View Profile
    • http://www.jtgibson.ca/df/
Re: Steel Bolts -- Way too valuable
« Reply #3 on: October 31, 2007, 11:45:00 pm »

quote:
Originally posted by Toady One:
<STRONG>If you divide, you lose precision -- how much is a single copper bolt worth?  What if you sold them separately?</STRONG>

The idea is, single copper bolts aren't meant to be sold individually -- or rather, if you sell a single copper bolt, it gets truncated to zero and you just give it away.

The opposite end -- selling a high-quality steel bolt -- would get rounded to two.  To plug that, however, if you kept selling bolts one-by-one to a trader, he'd get pissed at you for wasting his time with individual transactions.  The general idea is that the total floating point value of all trades would be added together simultaneously, then truncated down to a single integer for purposes of the final price.

Another thing you can do is track a floating point value from 0 to 1 to handle fractions.  When you complete a transaction, add the truncated fraction from the final price to the floating point variable (e.g., if I sold a batch of things worth 5758.68674¤, it'd cost the merchant 5758¤ and I would have 0.68674 stored into my floating point pool).  Every time the player's floating point exceeds 1.0, subtract 1.0 and increase the cost of the next transaction by 1¤.  You'd get some rounding error over a long time but for the most part it'd work fine.

[ November 01, 2007: Message edited by: JT ]

Logged
"The very existence of flamethrowers proves that some time, somewhere, someone said to themselves, 'You know, I want to set those people over there on fire, but I'm just not close enough to get the job done.'" --George Carlin

Frugal

  • Bay Watcher
    • View Profile
Re: Steel Bolts -- Way too valuable
« Reply #4 on: October 31, 2007, 11:48:00 pm »

Just making it round down to the nearest integer would discourage selling single bolts.
Logged

oolon1

  • Bay Watcher
    • View Profile
Re: Steel Bolts -- Way too valuable
« Reply #5 on: November 01, 2007, 02:25:00 am »

The elves are trying to trade me a stack of masterpiece saguaro encrusted ammo for 13275$.  Out of a 30090$ caravan.  A bit excessive, no?

In fact, all of the decorated ammo is extremely expensive.

&<<Saguaro>>& - 13275$
- This is a stack of 25 Saguaro arrow.  It is decorated with exceptionally worked Larch.  On the item is masterfully designed image of elves in Rope reed.  The elves are laboring.

*<<Alder>>* - 1050$
- This is a stack of 25 well-crafted Alder arrow.  It is encircled in bands of superior quality maple.

=<<Chestnut>>= - 2525$
- This is a stack of 25 Chestnut arrow.  On the item is an exceptionally designed image of elves in Saguaro.  The elves are laboring.


Meanwhile:
Saguaro arrows - 25$

Multipliers out of control?  It's definitely confined to ammo--guessing it's being multiplied by 25 too many times for a stack of 25 bolts...maybe the same as the bug with the melting of metal bolts makes incredible amounts of metal bars?

If you guys come to a consensus about this being a bug, or just weird, forward this off on its way to get fixed.

Logged