User Name:


Forgot your password?
Vote for Us!
 adding a new stat to OSET
Yesterday, 6:02 pm
By joeyfogas
alias snippet fix-like hack
Mar 17, 2018, 6:14 pm
By Vladaar
help with debug?
Mar 17, 2018, 5:52 pm
By joeyfogas
features of a good MUD
Mar 17, 2018, 1:06 am
By GatewaySysop
All skills to a class?
Mar 15, 2018, 11:43 pm
By joeyfogas
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Sogou, Yandex, Google

Members: 0
Guests: 8
Newest Member
Today's Birthdays
Gatz (33)
Related Links
» SmaugMuds.org » Bugfix Lists » AFKMud Bugfix List » [Bug] Armor type conversion c...
Forum Rules | Mark all | Recent Posts

[Bug] Armor type conversion code should not have been included
< Newer Topic :: Older Topic > AFKMud 2.0

Pages:<< prev 1 next >>
Post is unread #1 Jan 6, 2007, 10:16 am
Go to the top of the page
Go to the bottom of the page

Black Hand
JoinedJan 1, 2002

Bug: Armor type conversion code should not have been included
Danger: Medium - Could cause problems with areas from older codebase versions.
Discovered in: AFKMud 2.0
Found by: Samson
Fixed by: Samson


objindex.cpp, obj_index::create_object

Locate and remove:
    * Wow. This hackish looking thing is pretty bad isn't it?
    * * I thought so too, but hey. Dwip wanted to bring in a bunch of old stuff that needed to be armorgen'd.
    * * This was about the only way I could think to do it.
    * * Won't bother you much if you haven't set v3 or v4 on an armor though.
    * * All in the name of being able to retain stats if deviating from the armorgen specs.
    * * Samson 12-23-02
   if( area->version < 18 )
      if( obj->item_type == ITEM_ARMOR && obj->value[3] > 0 && obj->value[4] > 0 )
         bool pflag = false;

         if( extra_flags.test( ITEM_PROTOTYPE ) )
            pflag = true;
         obj->extra_flags.set( ITEM_PROTOTYPE );
         obj->armorgen(  );
         if( !pflag )
            obj->extra_flags.reset( ITEM_PROTOTYPE );
            extra_flags.reset( ITEM_PROTOTYPE );

This block of code was used by Alsherok to bring up old area files into the new automatic armor generation code and convert their old settings. It was not supposed to have been included in the stock code distribution. It should not have any lasting affects, but you may need to check any of your "armor" type objects to make sure they haven't received strange settings from this.
Pages:<< prev 1 next >>