For anyone interested in object pricing issues

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Magnate
    Angband Devteam member
    • May 2007
    • 5110

    #31
    Originally posted by Magnate
    P.S. There is one whole area which isn't covered yet and remains on my to-do list, which is weight. At the moment a 40lb suit of plate has the same value as a 4lb shield of the same AC, and this is clearly wrong. I do plan to adjust power for AC by weight, and hope to get this in for 3.1.1 (though it is non-trivial in integer arithmetic!).
    Well, I had a go at this, and I'm sorry to report that it's a total washout. Heavy armours are already cheaper than they were under the old pricing system (because the value of AC is linear), and adjusting the value of AC to reflect weight just made them cheaper still, without really noticeably affecting anything else (except Large Metal Shields). For it to be worth doing this, things like Adamantite Plate would need a base AC of 60 rather than 40, and similar boosts given to Full Plate, Ribbed Plate etc. etc.

    I'm still a bit bothered by the fact that there is no real difference in power between a 1lb cloak and a 20lb suit of armour with the same properties, but trying to adjust for this creates more problems than it solves. So unless anybody both really cares and has some suggestions, I'll just leave it as it is.
    "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

    Comment

    • Nick
      Vanilla maintainer
      • Apr 2007
      • 9634

      #32
      Originally posted by Magnate
      Interestingly, there are only two sources of ESP - hats and blessed weapons
      And amulets of ESP.
      One for the Dark Lord on his dark throne
      In the Land of Mordor where the Shadows lie.

      Comment

      • Magnate
        Angband Devteam member
        • May 2007
        • 5110

        #33
        Originally posted by Nick
        And amulets of ESP.
        Doh! [slaps forehead and eats doughnut]
        "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

        Comment

        • PowerDiver
          Prophet
          • Mar 2008
          • 2820

          #34
          i guess *slay evil* counts as blessed from one viewpoint.

          You have forgotten weapons of Gondolin and launchers of Lothlorien.

          And maybe cloaks of the magi, but I hardly ever see those.
          Last edited by PowerDiver; April 16, 2009, 17:18.

          Comment

          • Rizwan
            Swordsman
            • Jun 2007
            • 292

            #35
            Originally posted by Nick
            Off the top of my head, here's a halfway house to no selling - drop all the selling price caps in the stores to, say 1000AU or less. Early game selling still works, ID-by-selling still works.

            Shoot me down
            Well it will really discomode players who like to take it slow and buy needed stuff from the shops forcing them to dive fast/faster. I don't know if that will turn them off or not. I know I usually accumulate cash by selling stuff to get neater stuff because I play way too slow. Although in the new version I did try to be daring and dove like six or seven levels before recalling

            Comment

            • Pete Mack
              Prophet
              • Apr 2007
              • 6883

              #36
              @Eddie
              You beat me to it. I've only seen the Cloak of Magi {ESP} in NPP, where they occasionally show up in the general store or fall out of a chest.

              In any case, ego items usually end up with one of the undesirable abilities, so you aren't likely to see more than a very few of any sort with ESP in a game.

              Comment

              • PaulBlay
                Knight
                • Jan 2009
                • 657

                #37
                I think the following change (or a better written one ) to object_value_real should stop the pricing.log file from growing to monstrous size. (It's in the user directory, if you want to check how large yours is).

                Code:
                #ifdef POWER_PRICING 
                	s32b power; 
                	int a = 2; 
                	int b = 1; 
                	[COLOR="Lime"]static bool useappend; /* Is false when program first runs */[/COLOR]
                	
                	if (wearable_p(o_ptr)) 
                	{ 
                		char buf[1024]; 
                		int verbose = 1; 
                		ang_file *log_file = NULL; 
                	
                		if (verbose) 
                		{                 
                			path_build(buf, sizeof(buf), ANGBAND_DIR_USER, "pricing.log"); 
                			[COLOR="Lime"]if (useappend)
                				log_file = file_open(buf, MODE_APPEND, FTYPE_TEXT); 
                			else
                				log_file = file_open(buf, MODE_WRITE, FTYPE_TEXT); 
                			useappend = TRUE;[/COLOR]
                Currently turning (Angband) Japanese.

                Comment

                • Pete Mack
                  Prophet
                  • Apr 2007
                  • 6883

                  #38
                  BTW: If you want to do this, the usual way is to truncate the file during initialization, not as a side-effect way down in the program.

                  Comment

                  • Magnate
                    Angband Devteam member
                    • May 2007
                    • 5110

                    #39
                    Originally posted by Pete Mack
                    BTW: If you want to do this, the usual way is to truncate the file during initialization, not as a side-effect way down in the program.
                    Do you mean delete it? I can't parse "truncate" in this context.

                    @Eddie: Gondolin weapons and Lothlorien bows can get ESP??? I never knew that - I've never seen either.
                    "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

                    Comment

                    • Pete Mack
                      Prophet
                      • Apr 2007
                      • 6883

                      #40
                      Originally posted by Magnate
                      Do you mean delete it? I can't parse "truncate" in this context.

                      @Eddie: Gondolin weapons and Lothlorien bows can get ESP??? I never knew that - I've never seen either.
                      From unix man section 2 open:

                      $ man 2 open
                      ....
                      Flags:
                      O_CREAT create file if it does not exist
                      O_TRUNC truncate size to 0
                      O_APPEND append on each write

                      These are the flags you would use for open. For fopen, it's a little different.



                      And yes, a Gondolin weapon or Bow of Lothlorien with ESP is pretty uber. Unfortunately, they are quite rare.

                      Comment

                      • PowerDiver
                        Prophet
                        • Mar 2008
                        • 2820

                        #41
                        Originally posted by Magnate
                        @Eddie: Gondolin weapons and Lothlorien bows can get ESP??? I never knew that - I've never seen either.
                        I see a gondolin with ESP pretty frequently. It helps in my code that I fixed the random abilities not to duplicate, so since gondolin starts with FA and SI, that means 1 in 6 of ESP instead of 1 in 8 [IIRC and there are 8 abilities].

                        Comment

                        • Nick
                          Vanilla maintainer
                          • Apr 2007
                          • 9634

                          #42
                          Originally posted by Rizwan
                          Well it will really discomode players who like to take it slow and buy needed stuff from the shops forcing them to dive fast/faster. I don't know if that will turn them off or not. I know I usually accumulate cash by selling stuff to get neater stuff because I play way too slow.
                          It could be combined with more starting cash and/or better gold drops, as Eddie has done in his patch.
                          One for the Dark Lord on his dark throne
                          In the Land of Mordor where the Shadows lie.

                          Comment

                          • Pete Mack
                            Prophet
                            • Apr 2007
                            • 6883

                            #43
                            @Eddie --
                            it means 1 in 5, because Gondolin also has LITE.
                            Lesser benefits, of 1 in 7, hold for *Slay Evil* and Lothlorien.

                            Comment

                            • bebo
                              Adept
                              • Jan 2009
                              • 213

                              #44
                              while playing with dev r1359 i noticed that at the black market a rod of teleport other costs half the amount of a rod of acid bolts - which is pretty strange, considering that i would value the first around 4 times more than the second, as a rough estimate. Is the new object pricing algorithm only related to weapons and armour or does it affect also rings,wands,rods,etc ?
                              My first winner! http://angband.oook.cz/ladder-show.php?id=8681
                              And my second! http://angband.oook.cz/ladder-show.php?id=8872
                              And the third! http://angband.oook.cz/ladder-show.php?id=9452
                              And the fourth! http://angband.oook.cz/ladder-show.php?id=10513
                              And the fifth! http://angband.oook.cz/ladder-show.php?id=10631
                              And the sixth! http://angband.oook.cz/ladder-show.php?id=10990

                              Comment

                              • takkaria
                                Veteran
                                • Apr 2007
                                • 1951

                                #45
                                Originally posted by bebo
                                while playing with dev r1359 i noticed that at the black market a rod of teleport other costs half the amount of a rod of acid bolts - which is pretty strange, considering that i would value the first around 4 times more than the second, as a rough estimate. Is the new object pricing algorithm only related to weapons and armour or does it affect also rings,wands,rods,etc ?
                                It's only combat gear, not magical items.
                                takkaria whispers something about options. -more-

                                Comment

                                Working...
                                😀
                                😂
                                🥰
                                😘
                                🤢
                                😎
                                😞
                                😡
                                👍
                                👎