ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Sat Dec 14, 2019 7:50 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Minor shopping bug
PostPosted: Sat Jun 05, 2010 11:48 am 
Offline
Higher

Joined: Wed Jun 02, 2010 8:51 am
Posts: 68
While playing today, I had exactly 5.00 gold and tried to buy something for 5.00 gold and it wouldn't let me. I sold a potion for 0.30 and it let me make the purchase after that. What I assume is happening is the game is checking to see if you have more gold than the price of the object, rather than as much or more.


Top
 Profile  
 
 Post subject: Re: Minor shopping bug
PostPosted: Sat Jun 05, 2010 12:24 pm 
Offline
Sher'Tul

Joined: Mon Nov 24, 2003 2:31 pm
Posts: 1252
Location: South Africa
There are 2 possibilities...

1) As you said, > is used instead of >=.
2) You only had 4.999 gold... dunno if the game knows the fractions smaller than 2 decimals.


Top
 Profile  
 
 Post subject: Re: Minor shopping bug
PostPosted: Sat Jun 05, 2010 12:41 pm 
Offline
Reaper

Joined: Mon Jan 22, 2007 6:31 pm
Posts: 1534
Location: East of the sun, west of the moon
Canderel wrote:
2) You only had 4.999 gold... dunno if the game knows the fractions smaller than 2 decimals.


take for example selling ammo, if you do that I can guarantee that you will have a strange amount of gold (unless you use it to round it to a nice figure first).

_________________
Oliphant am I, and I never lie.


Top
 Profile  
 
 Post subject: Re: Minor shopping bug
PostPosted: Sun Jun 06, 2010 1:21 pm 
Offline
Halfling

Joined: Sun May 23, 2010 5:25 am
Posts: 85
Floats should never be used for money. Is this a lua issue? I'd've thought lua has integers, but hell, perl doesn't.


Top
 Profile  
 
 Post subject: Re: Minor shopping bug
PostPosted: Fri Jun 11, 2010 11:06 pm 
Offline
Low Yeek

Joined: Tue Jun 08, 2010 8:17 pm
Posts: 5
I've had this happen---3 gold and tried to buy a lesser healing for 3. managed to raise 0.1 and my return met with consumer success.


Top
 Profile  
 
 Post subject: Re: Minor shopping bug
PostPosted: Sun Jun 13, 2010 2:03 pm 
Offline
Halfling

Joined: Sun May 23, 2010 5:25 am
Posts: 85
Actually I looked into it, and the lua people only seem to use doubles. Apparently this is "never a problem."

lovely.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group