Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Variants

Reply
 
Thread Tools Display Modes
Old December 10, 2018, 17:03   #41
Sideways
Swordsman
 
Join Date: Nov 2008
Posts: 318
Sideways is on a distinguished road
The last ring winner is Aver's from PosChengband 7.0.2; and the only changes to rings since then should make them easier; so ring ought to be winnable.

I'll look into the skillmaster thing, thanks.
__________________
The Complainer worries about the lack of activity here these days.
Sideways is offline   Reply With Quote
Old December 12, 2018, 23:31   #42
CyclopsSlayer
Swordsman
 
Join Date: Feb 2009
Posts: 263
CyclopsSlayer is on a distinguished road
I've seen this issue before and have shrugged it off, but it does lead me to wonder about a problem with the core Math routines in Frog and many other *bands.

The particular issue I saw today;

A pair of soft leather boots was selling for 10 gold.
A pair of soft leather boots, 25% off, was selling for 9 gold.

I can think of no math that would allow this. IF the base boots were actually 10.7 then the reduced cost with round up would be 9 gold, BUT then the base boots should be 11.

1 gold is not the issue, it is that this seems to indicate a flaw in the base math routines.
CyclopsSlayer is offline   Reply With Quote
Old December 13, 2018, 00:10   #43
Sideways
Swordsman
 
Join Date: Nov 2008
Posts: 318
Sideways is on a distinguished road
I think that has to do with the order in which certain things are calculated. In this case the boots probably have a "real" value of 6, which becomes 5 after the discount is applied and the resulting value is rounded up. Then that's multiplied by some factor in the store, and if that factor is something like 1.73, you get 6*1.73=10.38=10 and 5*1.73=8.65=9.

Although it may seem odd to apply the discount so early (and that is the root cause of the weird prices you're seeing), from a coding point of view it's easier to do it that way.
__________________
The Complainer worries about the lack of activity here these days.
Sideways is offline   Reply With Quote
Old December 13, 2018, 04:11   #44
CyclopsSlayer
Swordsman
 
Join Date: Feb 2009
Posts: 263
CyclopsSlayer is on a distinguished road
Quote:
Originally Posted by Sideways View Post
I think that has to do with the order in which certain things are calculated. In this case the boots probably have a "real" value of 6, which becomes 5 after the discount is applied and the resulting value is rounded up. Then that's multiplied by some factor in the store, and if that factor is something like 1.73, you get 6*1.73=10.38=10 and 5*1.73=8.65=9.

Although it may seem odd to apply the discount so early (and that is the root cause of the weird prices you're seeing), from a coding point of view it's easier to do it that way.
Ah, okay. Yes applying the discount early makes the process order dubious.

Is the same true of other things, Saves, Fails, To-Hit, Damage, etc...??
CyclopsSlayer is offline   Reply With Quote
Old December 13, 2018, 16:15   #45
Sideways
Swordsman
 
Join Date: Nov 2008
Posts: 318
Sideways is on a distinguished road
I'm not sure how the concept would even apply to something like saves or fails or to-hit.

And discounts have that process order for a reason - it means all discounts can be calculated once in one place in the code, and don't need to be separately applied by every piece of code that wants a discounted price, and item values don't need any scaling. It makes the code a lot easier to maintain, and the errors in shop prices that result from it are very minor.

Could I fix it with some hack - "apply the discount later in this special case", and then do the applying where necessary - sure, but it wouldn't be a good return on the coding investment.
__________________
The Complainer worries about the lack of activity here these days.
Sideways is offline   Reply With Quote
Old December 13, 2018, 18:27   #46
CyclopsSlayer
Swordsman
 
Join Date: Feb 2009
Posts: 263
CyclopsSlayer is on a distinguished road
Sorry, it wasn't meant to be an accusation.
I was just curious about the inner workings of complex calculations. I am only remotely familiar with coding, classes in BASIC and Pascal 40 years ago, so looking into the source is not really an option. I was just curious about the process order and whether or not it rendered the displayed numbers as meaningful.
CyclopsSlayer is offline   Reply With Quote
Old December 13, 2018, 18:46   #47
TauzentBlitz
Rookie
 
Join Date: May 2018
Posts: 22
TauzentBlitz is on a distinguished road
Skill Masters with 5 points in Burglary don't get friendly piranhas from traps either.

Edit: Any monster you ride on will log every step you take as a non-spell-cast turn, more or less permanently ruining their spell % chance in recall. This even takes precedence over the probing spell. (After riding around a Hell Knight on a ring character for a while it has a listed 1.88% chance, 854 out of 45245 moves.)

Edit Edit: Does weapon proficiency affect skillmaster throwing to_hit?

MORE EDIT: Anyone know what a good set of schools for a Blood Mage is? I'm considering Death as a primary for those vampirism spells (and while I haven't tested the spells, the vampirism wand still heals a blood mage fully) and then maybe Armageddon to begin with and then switch to sorcery once I have a good set of damage spells from the Death Realm.

Last edited by TauzentBlitz; December 17, 2018 at 16:45.
TauzentBlitz is offline   Reply With Quote
Reply

Tags
frogcomposband


Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Announce] FrogComposband 7.0.nougat released Sideways Variants 152 November 6, 2018 13:16
[Announce] FrogComposband 7.0.mango released Sideways Variants 133 August 3, 2018 11:53
[Announce] PosChengband 4.0.0 Released chris Variants 288 March 11, 2017 07:29
Announce DaJAngband 1.1.2 released will_asher Variants 11 January 17, 2010 23:51
Announce DaJAngband v1.0.96 Released will_asher Variants 3 September 30, 2008 19:17


All times are GMT +1. The time now is 00:52.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.