Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old March 1, 2021, 18:26   #1
tangar
Knight
 
tangar's Avatar
 
Join Date: Mar 2015
Posts: 783
tangar is on a distinguished road
Question [please help] MD negative value

In V variants (PWMA and Tangaria) we wanna add possibility to give certain races/classes negative MD, so stupid races and non-magical classes will have less chances of using MDs. Something like make it ~30% chance of success on using Staves of Speed instead of 90% which we got atm (38 lvl archer with 64 MD).

But it seems that MD formula is pretty complex, so it's hard to understand how negative MD could be implemented. Please help us to solve this puzze

Thanks in advance!
__________________
https://tangaria.com - Angband multiplayer variant
tangaria.com/variants - Angband variants table
tangar.info - my website ⍽⍽⍽⍽⍽⍽⍽⍽⍽⍽⍽⍽ My chars @ angband.oook.cz
youtube.com/GameGlaz — streams in English ⍽ youtube.com/StreamGuild — streams in Russian
tangar is offline   Reply With Quote
Old March 1, 2021, 20:15   #2
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,759
Donated: $60
Nick will become famous soon enough
There's a line for skill-device in each of p_race.txt and class.txt, and negative values are fine - half-trolls have a device skill of -8 in V, for example.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old March 1, 2021, 21:43   #3
tangar
Knight
 
tangar's Avatar
 
Join Date: Mar 2015
Posts: 783
tangar is on a distinguished road
yep.. but eg Hydra race (in T) with skill-device:-50 have 83% chance for success with cure light wounds staff.. as in character sheet (shift+C) hydra got 0 at MD. So it seems we need to change formula somehow
__________________
https://tangaria.com - Angband multiplayer variant
tangaria.com/variants - Angband variants table
tangar.info - my website ⍽⍽⍽⍽⍽⍽⍽⍽⍽⍽⍽⍽ My chars @ angband.oook.cz
youtube.com/GameGlaz — streams in English ⍽ youtube.com/StreamGuild — streams in Russian
tangar is offline   Reply With Quote
Old March 2, 2021, 08:05   #4
PowerWyrm
Prophet
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 2,847
PowerWyrm is on a distinguished road
Quote:
Originally Posted by Nick View Post
There's a line for skill-device in each of p_race.txt and class.txt, and negative values are fine - half-trolls have a device skill of -8 in V, for example.
Doesn't work. The calculated skill is rounded up to 0, which translates to a formula in get_use_device_chance() of fail = 100 * (- lvl - 140) / (lvl - 90).

A level 0 device would have fail = 15% and a level 40 device (like staff of speed) would have fail = 36%. There aren't many devices with higher level

This formula always uses negative values for whatever reason and is outright bugged (rod of speed is level 95 and gives negative value of fail chance, which is translated to 1% fail chance). I think this needs to be simplified.
__________________
PWMAngband variant maintainer - check http://powerwyrm.monsite-orange.fr (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!
PowerWyrm is offline   Reply With Quote
Old March 2, 2021, 10:37   #5
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,759
Donated: $60
Nick will become famous soon enough
Ah, I thought you were talking about input values.

Agreed, that formula is obscure and outdated (looks like there weren't any level 95 devices when it was written). Also there's the
Code:
/* TODO: maybe use something a little less convoluted? */
comment, which is itself very old...

I'll mark this as to fix for 4.2, but it probably won't make 4.2.2.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 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
4.2.0 negative burden bug? Bogatyr Vanilla 3 August 24, 2019 10:21
3.4.1 negative mana display scud Vanilla 4 June 29, 2013 23:25
Having negative AC Scraper Vanilla 6 October 22, 2011 17:05
Uncursed negative Magical Bonuses Cauldron Vanilla 8 May 17, 2009 10:56
V3.0.9 Negative gold? Dragonboneman Vanilla 7 February 2, 2008 14:10


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


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