User Name:


Forgot your password?
Vote for Us!
AFKMud 2.2.2
Mar 3, 2019 5:35 pm
By Samson
Nov 28, 2018 12:10 pm
By Keirath
First Immortal
Oct 12, 2018 2:02 pm
By GatewaySysop
Bug in do_climb( )
Jun 5, 2018 7:31 pm
By joeyfogas
question on overland code
May 31, 2018 12:03 pm
By joeyfogas
SmaugFUSS 1.9.3
Author: Various
Submitted by: Samson
AFKMud 2.2.2
Author: AFKMud Team
Submitted by: Samson
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Bing

Members: 0
Guests: 20
Newest Member
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds » 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 12:16 pm
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 >>