Existential question about dropping 1 gold...

Frosty_The_Snowman

Diabloii.Net Member
Existential question about dropping 1 gold...

- Open inventory
- Click on your gold
- Drop *1* gold

Now, why on earth do I get a *stack* of gold coins on the ground :shocked: ??!!?11oneoneoneone (did I say one ?)

There must be some logical explanation involving Alien-Government Conspiracy :nervous:... Any ideas, folks :scratch: ?
 

ppz

Diabloii.Net Member
Lazy programmers.....

(warning, all numbers made up, someone else may know the real numbers)

if (dropped gold < 50)
show small gold pile

else if (dropped gold < 500)
show medium gold pile

else if (dropped gold < 5000)
show large gold pile

else
show huge gold pile


You get the idea.

btw, apparently there are 0 gp piles as well.
 

IntelligentX

Diabloii.Net Member
- Open inventory
- Click on your gold
- Drop *1* gold

Now, why on earth do I get a *stack* of gold coins on the ground :shocked: ??!!?11oneoneoneone (did I say one ?)

There must be some logical explanation involving Alien-Government Conspiracy :nervous:... Any ideas, folks :scratch: ?
Because if gold stacks, you can't make a good picture from it :azn:



 

TurbulentTurtle

Diabloii.Net Member
We all know the only monsters who drop 1 gold are the poor act 1 normal people. So maybe we just get their loose change, which adds up to 1 gold?
Probably the most logical reason IMO.
 

Frosty_The_Snowman

Diabloii.Net Member
We all know the only monsters who drop 1 gold are the poor act 1 normal people. So maybe we just get their loose change, which adds up to 1 gold?
Probably the most logical reason IMO.
Loose change... Mmmh... or maybe the characters drop 1 gold in foreign currency, making it equal to 47.31 whatever-currency, thus the stack on the ground :scratch: ?



 

kikomun

Diabloii.Net Member
Lazy programmers.....

(warning, all numbers made up, someone else may know the real numbers)

if (dropped gold < 50)
show small gold pile

else if (dropped gold < 500)
show medium gold pile

else if (dropped gold < 5000)
show large gold pile

else
show huge gold pile


You get the idea.

btw, apparently there are 0 gp piles as well.
oh god...if else statements



 

SoxFan

Diabloii.Net Member
oh god...if else statements
What's wrong with else if's?

To the OP, maybe each piece of gold doesn't equal a full 1. Kind of like if I dropped 1 dollar on the ground, it could either be a single $1 coin, or perhaps 4 quarters.



 

krischan

Europe Trade Moderator
Loose change... Mmmh... or maybe the characters drop 1 gold in foreign currency, making it equal to 47.31 whatever-currency, thus the stack on the ground :scratch: ?
All the fractions of a gold piece go to Dredd, Gorny, Xora and me. we are donating everything to The Cause.

* lights a cigar with a €100 bill *



 

Gorny

Banned
All the fractions of a gold piece go to Dredd, Gorny, Xora and me. we are donating everything to The Cause.

* lights a cigar with a ?100 bill *
Problem there is, I don't have any DII gold.

However, I have a few hundred WoW coins.

*lights a cigar with a $1,000 dollar bill*



 

Dawnmaster

Diabloii.Net Member
What's wrong with else if's?

To the OP, maybe each piece of gold doesn't equal a full 1. Kind of like if I dropped 1 dollar on the ground, it could either be a single $1 coin, or perhaps 4 quarters.
You even dare to ask what's wrong with it?

If you're using if else's in that way, you'd be better of using Select Case...



 

SoxFan

Diabloii.Net Member
You even dare to ask what's wrong with it?

If you're using if else's in that way, you'd be better of using Select Case...
Well, not to drag this completely off topic :) but most modern compilers are going to generate the same Assembly, ByteCode, Intermediate Language, whatever, whether you use ifs, elseifs, or select / case for a small set of comparisons.

Once you have a larger set, select/case is O(lg(n)) whereas if/elseif is O(n), so yes, it is significantly faster.



 

ppz

Diabloii.Net Member
You even dare to ask what's wrong with it?

If you're using if else's in that way, you'd be better of using Select Case...
OT: Sorry, I come from the land of C programming where select cases don't work on ranges of numbers, only discreet numbers.

back on topic,
Well, you have plenty of options to choose from, but I believe your answer to the 1 gp piles is.... your guess is as good as mine.



 

spigot

Diabloii.Net Member
Gold
Gold has long served as the sole reliable currency in the world of Sanctuary. This precious metal is melted into small gold slugs, which are then pressed and stamped with the heraldry of the kingdom that created them. Each coin throughout the realms possesses the same value, regardless of the coin's shape or size.
-from bnet

possibly, as the coins possess the same value regardless of the weight or size, counterfitters snick small corners off the edges of the coins or cut them into fractions (as in "pieces of eight"), these fractions or clippings, being made of gold could then be resmithed if necessary. People obviously wouldnt use a whole gold coin to buy a loaf of bread, therfore most single gold coins would come in a small pile of clippings, you can clearly see this in d2 if you have a resolution of 1024x768.
 
Top