![]() |
#1 |
Veteran
Join Date: Jun 2007
Posts: 1,388
![]() |
pval
This may be a stupid question, but what does the 'p' in pval actually stand for? Does it stand for anything?
(I have my own guess, but it's just a guess and I'd like to avoid biasing replies.) |
![]() |
![]() |
![]() |
#2 |
Adept
Join Date: Apr 2021
Posts: 105
![]() |
|
![]() |
![]() |
![]() |
#3 |
Knight
Join Date: Nov 2008
Posts: 867
![]() |
In Moria/UMoria and very early Angband, pval was called p1; and object description code included the additional parameters p2 through p6, although only p1 was an actual variable name. P2 through P4 were explicitly glossed as plusses (they were stand-ins for +to-hit, +to-dam and +to-ac), but it's still unclear to me whether P in these parameters actually stood for plus or for parameter. I believe Ben was responsible for changing the variable's name from p1 to pval.
I believe that at some point I did gloss pval as plus value; but whether I knew something about the name's origins then that I've forgotten since or if I just made an editorial decision based on pvals being used as plus values in the present day, I do not know. Modern Vanilla code calls pval an "item extra-parameter" in the comments, but that is also a latter-day development. The current Frog glossary simply describes the purpose of a pval without implying that the word stands for anything specific.
__________________
The Complainer worries about the lack of activity here these days. |
![]() |
![]() |
![]() |
#4 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 56
Posts: 9,319
Donated: $60
![]() ![]() |
I was hoping for "potato".
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
#5 |
Rookie
Join Date: Oct 2021
Posts: 1
![]() |
I had the same thought.
|
![]() |
![]() |
![]() |
#6 |
Veteran
Join Date: Jun 2007
Posts: 1,388
![]() |
Brb, gotta rename a few variables to potatoVal...
|
![]() |
![]() |
![]() |
#7 |
Veteran
Join Date: Apr 2009
Location: Pisa / DL0
Posts: 1,001
![]() |
Now it's official. Nick spoke, maintainer's authority.
__________________
Dive fast, die young, leave a high-CHA corpse. -- You read a scroll labeled 'lol gtfo' of Teleport Level. |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[3.5-dev] Pval strangeness: amulet of devotion | PowerWyrm | Vanilla | 1 | October 9, 2013 16:06 |
[3.3] Potential crash with multiple pval system | PowerWyrm | Vanilla | 6 | October 7, 2011 11:11 |
Pval oddness | Faust | Development | 2 | April 20, 2011 20:58 |