Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Variable bag prices  (Read 1042 times)

Aqizzar

  • Bay Watcher
  • There is no 'U'.
    • View Profile
Variable bag prices
« on: May 31, 2008, 02:12:00 pm »

Not the best way to make a first post, but I have a bug to report.  This is hardly large or game-breaking but it has to do with the game's math so I figured it worth mention, and couldn't find any notice of it elsewhere.

In my last few fortresses (two stock DF, one with the Martial Arts mod) I've seen pig-tail bags with no contents, no decoration, and equal quality with different prices.  It might happen with bags of other cloth or any bags or any cloth items, but this is the only way I've noticed.

Standard quality, undecorated, empty bags sometimes have a value of 60, sometimes 80.  Well-crafted ones are either 80 or 100.  I've seen this with bags made in house and empty bags bought from traders.  One recent caravan had several identical bags with different prices (really should have taken a screenshot).

Which is odd since according to the wiki, unless I'm mistaken or the wiki is, pig-tail bags should cost 10(furniture)x2(pig-tail)+20(cloth) = 40, and well-crafted ones would be 10x2x2+20 = 60.  If bags are actually finished goods then it'd be 15x2[x2]+40 = 70/100.  That said I'll bet it has something to do with the cloth price function.

Funny equations aside, I'm sure everything uses the same algorithm, so I can't image why it would return two different values for two copies of the same item.

Has anyone else seen this?  Like I said, I've seen it in different fortresses so it should be present anywhere.

Logged
And here is where my beef pops up like a looming awkward boner.
Please amplify your relaxed states.
Quote from: PTTG??
The ancients built these quote pyramids to forever store vast quantities of rage.

Thassa

  • Bay Watcher
    • View Profile
Re: Variable bag prices
« Reply #1 on: May 31, 2008, 03:36:00 pm »

One thing your missing in the equation is dye.  Dye will add to the cost of a bag, and 2 of the three dyes in the vanilla game have a cost of 20 each.
Logged
Dwarf Fortress players: Coming up with solutions for problems that haven't been implemented yet. 

Grek

  • Bay Watcher
    • View Profile
Re: Variable bag prices
« Reply #2 on: May 31, 2008, 03:44:00 pm »

quote:
Originally posted by Thassa:
<STRONG>One thing your missing in the equation is dye.  Dye will add to the cost of a bag, and 2 of the three dyes in the vanilla game have a cost of 20 each.</STRONG>

A bag that has been dyed will have a higher price. Due to another bug, a bag containing dye lowers the price of the bag.

Logged

Aqizzar

  • Bay Watcher
  • There is no 'U'.
    • View Profile
Re: Variable bag prices
« Reply #3 on: May 31, 2008, 04:04:00 pm »

Like I said, the bags are undecorated.  In the description it just says, "This is a [well-crafted] Pig tail bag. It is made from Pig tail cloth."  Every bag says the same thing.  The equation is really irrelevant.  I've got two well-crafted bags in my current fortress, one is worth 80, the other 100.

Its just a curious little issue, but if it points to a problem in the game's math I figured it should be noted.

[EDIT] I am indeed a fool, it is just dye.  Well, heck of an introduction.

[ May 31, 2008: Message edited by: Aqizzar ]

Logged
And here is where my beef pops up like a looming awkward boner.
Please amplify your relaxed states.
Quote from: PTTG??
The ancients built these quote pyramids to forever store vast quantities of rage.

Thassa

  • Bay Watcher
    • View Profile
Re: Variable bag prices
« Reply #4 on: May 31, 2008, 05:11:00 pm »

quote:
Originally posted by Grek:
<STRONG>

A bag that has been dyed will have a higher price. Due to another bug, a bag containing dye lowers the price of the bag.</STRONG>


I've noticed this with seeds too.  It's funny how a bag containing 20 seeds actually costs about half what the same bag would cost if it was empty.   :D

Logged
Dwarf Fortress players: Coming up with solutions for problems that haven't been implemented yet. 

Keldor

  • Bay Watcher
  • Blood for the blood god!
    • View Profile
Re: Variable bag prices
« Reply #5 on: May 31, 2008, 05:13:00 pm »

Maybe the dye/seeds stain the bag?
Logged
If ignorance is bliss, why are my dwarves all tantruming?

Abyssal Squid

  • Bay Watcher
    • View Profile
Re: Variable bag prices
« Reply #6 on: May 31, 2008, 08:52:00 pm »

It might be based on the quality of the cloth going into it, although I don't know if that accounts for the standard-quality bags.
Logged

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: Variable bag prices
« Reply #7 on: June 02, 2008, 02:37:00 am »

I didn't see a report of the container price bug before.  How does this one work?  Does putting anything in a bag lower its price?
Logged
The Toad, a Natural Resource:  Preserve yours today!

Aqizzar

  • Bay Watcher
  • There is no 'U'.
    • View Profile
Re: Variable bag prices
« Reply #8 on: June 02, 2008, 05:19:00 am »

More or less.  My original post was just my misunderstanding, but puting powders or seeds into containers does seem to lower their price.  At least when buying them from traders, an empty bag or barrel will cost its natural price, but if it contains anything, it just costs the value of the contents.  In the case of cloth bags with seeds or powders, this will be a lot less than the empty bag would be.  I always thought this was just an accepted bit of weirdness, I didn't think it would be a bug.

[ June 02, 2008: Message edited by: Aqizzar ]

Logged
And here is where my beef pops up like a looming awkward boner.
Please amplify your relaxed states.
Quote from: PTTG??
The ancients built these quote pyramids to forever store vast quantities of rage.