RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[RunUO 2.0 RC1] Lucid's <<_Advanced Archery_>>

[RunUO 2.0 RC1] Lucid's <<_Advanced Archery_>>

~Lucid's Advanced Archery~
Version [3.0.1] (e)
Next release #: v[3].0.1 (f)

............................................................................................................
........:|| Created by: Lucid Nagual & Rift ||:.........
............................................................................................................


Installation Instructions:
Open AOS.cs and make the following changes:
Code:
[LEFT][Under]
else if( obj is Spellbook )
{
AosAttributes attrs = ((Spellbook)obj).Attributes;
if ( attrs != null )
value += attrs[attribute];
}[/LEFT]
 
[LEFT][Add]
//--<<Advanced Archery Edit>>-----------[Start]    
else if ( obj is BaseQuiver )
{
AosAttributes attrs = ((BaseQuiver)obj).Attributes;[/LEFT]
 
[LEFT]if( attrs != null )
value += attrs[attribute];
}
//--<<Advanced Archery Edit>>-----------[End][/LEFT]

Thanks To:
  • Dracana - Coding the BaseQuiver.
  • Snicker - For helping me fix weight reduction (percentage) for the BaseQuiver.
  • Kenko - For the container/layer fix in the BaseQuiver.
  • LordHogFred - For adding skill level to arrow damage in BaseRanged.
  • And to everyone else that has downloaded this script and reported bugs and crashes. I would also like to thank those who have voted on this system and have given me good feedback and PMs. Many thanks.
Special Thanks:
  • To Alien for advice on how to use Central Memory with the bows and how to get the Invalidate Properties to work.
  • To Rift for his help and contribution to this project. This system would have never been completed without his help and insight, MANY THANKS!!!
Contents:
  • New arrows and bolts: Poison, explosive, armor piercing, freeze and lightning.
  • New bow stringers: linen cloth, cotton, silk, horse hair,hemp and angel hair.
  • Venom arrow dipping tubs: to apply damage attributes.
  • Quivers: Ultimate and elven quivers. Has 30% weight reduction, attributes, is dyable and adds owner's name when worn.
  • Uses Central Memory for bow memory storage.
  • Custom BaseRanged and other distro modifications.
How to Set Ammo Type on Bows:

Double-click the bow and target the ammo of choice, or bow stringer.


Types Of Arrows:
  • Normal
  • Poison
  • Explosive
  • Armor Piercing
  • Freeze
  • Lightning
Types Of Bolts:
  • Normal
  • Poison
  • Explosive
  • Armor Piercing
  • Freeze
  • Lightning
Types Of Dip Tubs:
  • Normal
  • Poison
  • Explosive
  • Armor Piercing
  • Freeze
  • Lightning
Types Of Bow Stringers:
  • Linen Cloth (Very Weak)
  • Cotton (Weak)
  • Silk (Sturdy)
  • Horse Hair (Strong)
  • Hemp (Dependable)
  • Angel Hair (Indestructable)
Strengths Of Strings (pounds per pull):
  • Forty
  • Sixty
  • Eighty
  • Hundred
 

Attachments

  • Advanced Archery [3].0.1 (e).zip
    89.5 KB · Views: 1,482
Current Updates

!Updates:
Updated v[1].0.2b:
  • -Added the elven quiver
  • -Added crossbows & bolts
  • -Added new bows
  • -Added two new types of arrows and bolts
  • -Added random damage & random levels of poison (for poison arrows)
  • -Fixed the drag and drop issue
  • -Fixed the dip tub charge issue


Updated v[1].0.3:
  • -Fixed skill mod issue. Thanks Drac!
  • -Fixed BaseRanged.cs warning.
  • -Parcially fixed the weight issue. Needs more work, but at least weight won't go negative when ammo is emptied.

Updated v[1]0.4:
  • -Added new bows.

Updated v[2].0.1:
  • -Changed BaseRanged.cs to CBaseRanged.cs for an easier install.
  • -Fixed serialization in all Bows for an easier install.
  • -Fixed bug with the Dip Tubs. Doesn't crash when targeting mobiles.
  • -Bolts are now functional thanks to blkdrac.

Updated v[2].0.2:
  • -Fixed Internal Map/Item issue.....thx to Lumberman and Ray.

Updated v[2].0.2b:
  • -Fixed a couple of warnings, thanks Greystar.
Updated v[2].0.2c:
  • -Fixed the ArcheryButtAddon, thanks Greystar.

Updated v[2].0.3:
  • -Added the BaseQuiver. Thanks Dracana!
  • -Changed layer to middletorso so cloaks can be worn. Thanks Dracana!
  • -Added lower reagent cost attribute. Thanks Dracana!

Updated v[2].0.3 (b):
  • Improved the CBaseRanged. Wasn't pulling arrows from backpack and quiver proper.
Updated v[3].0.1 (a):
Sweet Jesus!!! It's finally done :)
  • -Fixed serilization issues by converting the CBaseRanged to a BaseRangedModule (Central Memory). The CBaseRanged is no longer needed.
  • -Added bow stringers! Now all bows use different types of strings. Weak strings don't last as long as strong ones. The better the string the more likely you can get a PERFECT HIT (damage bonus). The different strings are: horse hair, linen thread, angel hair, hemp, silk and cotton. Only Master Fletchers can apply the strings.
  • -Added pounds per pull. Now the ppp will determine how high of damage you create on a PERFECT HIT. The pounds per pull can only be adjusted (added) when a string is changed. The pounds per pull is determined by the level of the Master Fletcher.
  • -Fixed all bugs in the BaseQuiver. The quiver now allows one bow to be carried just like OSI. The quiver also allows dip tubs to be carried as well. And added the fix for the layer/container issue. Thanks Kenko!
  • -Fixed unstrung bow issue.
 

dragonlady

Sorceror
hiya love the system, but everytime i use the bow i can't fire, any idea's btw i download the other package that someone had updated it for u and worked great until the crash then redownloaded the CBaseRanged.cs and know can't fire any of the bow :) can't wait to use this again
 

psycomantis

Wanderer
could it be you forgot to include the "newer" arrows and bolts ? they all got these "dupe" lines incompatible to 2.0

i think there is a typo in ElvencompositelongBow - some scripts cant find it.. shouldnt it be Elvencompositelongbow ?

and this also happened to me :
Code:
Spellbook.cs:
CS1502: Line 808: The best oberloaded method match for 'Server.Items.BaseRunicTool.ApplyAttributesTo<Server.Items.Baseweapon, bool, int, int, int, int>' hase some invalid arguments
CS1503: Line 808: Argument '1': cannot convert from 'Server.Items.Spellbook to 'Server.Items.Baseweapon'

LootPack.cs
CS1502: Line 667: The best oberloaded method match for 'Server.Items.BaseRunicTool.ApplyAttributesTo<Server.Items.Baseweapon, bool, int, int, int, int>' hase some invalid arguments
CS1503: Line 667: Argument '1': cannot convert from 'Server.Items.Basehat' to 'Server.Items.Baseweapon'


ill help you out on testing if you like - Got Runuo2.0 rev 64 http://xmlspawner.15.forumer.com/index.php?showtopic=580
and currently installed scripts is :
-Xmlspawner2 latest
-Xmlsockets latest
-XmlCustomattacks latest
- Custom Vehicles

got nothin to lose here- started working on this just a few days ago and the world is empty :) + since i really want your script badly ill do anything ^^

*EDIT1 hope you dont mind if i keep posting in this post so i dont uselessly enlarge your thread

just keep it comeing ill test whatever you'll throw at us :)
 
I still have to do some testing. But fixed the quivers and part of the CBaseRanged. And crap how did I skip the new arrows? Guess need to update again.
 
Update:

Gimme sec......

Checking to see if it compiles...........

OK try these updates. The quivers might crash when adding an illegal item. But I'm not sure.

I gotta get a few hours sleep before I have to goto a family gathering.
 

Attachments

  • [2.0]Lucid Nagual's Advanced Archery Beta2.zip
    48.8 KB · Views: 203

psycomantis

Wanderer
okay well.. there was still a load of files with conversion errors but i listed the fixed ones as attachments


yet after fixing them all i get this again :
Code:
Spellbook.cs:
CS1502: Line 808: The best oberloaded method match for 'Server.Items.BaseRunicTool.ApplyAttributesTo<Server.Items.Baseweapon, bool, int, int, int, int>' hase some invalid arguments
CS1503: Line 808: Argument '1': cannot convert from 'Server.Items.Spellbook to 'Server.Items.Baseweapon'

LootPack.cs
CS1502: Line 667: The best oberloaded method match for 'Server.Items.BaseRunicTool.ApplyAttributesTo<Server.Items.Baseweapon, bool, int, int, int, int>' hase some invalid arguments
CS1503: Line 667: Argument '1': cannot convert from 'Server.Items.Basehat' to 'Server.Items.Baseweapon'

any idea bout this anyone ? well for now i hope i save you some time with these fixed ones here


*EDIT i got around this error by adding :
Code:
using System.Collections.Generic

instead of

Code:
using System.Collections;

at the Top of BaseRunicTool.cs

:( now i'm stuck with this :

Code:
Errors:

+ Items/Skill Items/Tools/BaseRunicTool.cs:
CS0246: Line 202: The type or namcespace name 'BitArray' could not be found (are you missing a using directive or an assembly reference?)
 

Attachments

  • ElvenCompositeLongbow.cs
    5.4 KB · Views: 84
  • ArmorPiercingDipTub.cs
    4.8 KB · Views: 80
  • ExplosiveDipTub.cs
    4.8 KB · Views: 76
  • FreezeDipTub.cs
    4.7 KB · Views: 74
  • LightningDipTub.cs
    4.8 KB · Views: 76
  • PoisonDipTub.cs
    4.7 KB · Views: 79
  • Bow.cs
    5.5 KB · Views: 83

dragonlady

Sorceror
After Installing this i went from this error

RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (8 errors, 1 warnings)
Warnings:
+ Items/Custom Script/Custom Commands/ShardInfo.cs:
CS0105: Line 13: The using directive for 'Server.Network' appeared previousl
y in this namespace
Errors:
+ Items/Custom Script/Custom Wepond/ML_Artifacts_and_Weapons/Artifacts/Craftabl
e/FaerieFire.cs:
CS0246: Line 6: The type or namespace name 'ElvenCompositeLongbow' could not
be found (are you missing a using directive or an assembly reference?)
+ Items/Custom Script/Custom Wepond/ML_Artifacts_and_Weapons/Artifacts/WildFire
Bow.cs:
CS0246: Line 7: The type or namespace name 'ElvenCompositeLongbow' could not
be found (are you missing a using directive or an assembly reference?)
+ Items/Custom Script/Custom Wepond/ML_Artifacts_and_Weapons/ML Weapons/Ranged/
Longbow/BarbedLongbow.cs:
CS0246: Line 8: The type or namespace name 'ElvenCompositeLongbow' could not
be found (are you missing a using directive or an assembly reference?)
+ Items/Custom Script/Custom Wepond/ML_Artifacts_and_Weapons/ML Weapons/Ranged/
Longbow/FrozenLongbow.cs:
CS0246: Line 8: The type or namespace name 'ElvenCompositeLongbow' could not
be found (are you missing a using directive or an assembly reference?)
+ Items/Custom Script/Custom Wepond/ML_Artifacts_and_Weapons/ML Weapons/Ranged/
Longbow/LongbowOfMight.cs:
CS0246: Line 8: The type or namespace name 'ElvenCompositeLongbow' could not
be found (are you missing a using directive or an assembly reference?)
+ Items/Custom Script/Custom Wepond/ML_Artifacts_and_Weapons/ML Weapons/Ranged/
Longbow/SlayerLongbow.cs:
CS0246: Line 8: The type or namespace name 'ElvenCompositeLongbow' could not
be found (are you missing a using directive or an assembly reference?)
+ Items/Weapons/ML Weapons/Artifacts/BlightGrippedLongbow.cs:
CS0246: Line 6: The type or namespace name 'ElvenCompositeLongbow' could not
be found (are you missing a using directive or an assembly reference?)
+ Items/Weapons/ML Weapons/Artifacts/SilvanisFeywoodBow.cs:
CS0246: Line 7: The type or namespace name 'ElvenCompositeLongbow' could not
be found (are you missing a using directive or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

Then Fixing Thoses Error, I also get these error now, also fixed them now im stuck on these error's :)

RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (2 errors, 12 warnings)
Warnings:
+ Items/Custom Script/Custom Commands/ShardInfo.cs:
CS0105: Line 13: The using directive for 'Server.Network' appeared previousl
y in this namespace
+ Items/Custom Script/Custom Crafting/Publisher/Publisher/Publisher.cs:
CS0108: Line 18: 'Server.Mobiles.Publisher.PlaySound' hides inherited member
'Server.Mobile.PlaySound(int)'. Use the new keyword if hiding was intended.
+ Items/Custom Script/Custom Quest/VampireQuest/VampQuestItems/Drac Required it
ems/DraculasTeleporter.cs:
CS0114: Line 21: 'Server.Items.DraculasTeleporter.Location' hides inherited
member 'Server.Item.Location'. To make the current member override that implemen
tation, add the override keyword. Otherwise add the new keyword.
CS0108: Line 28: 'Server.Items.DraculasTeleporter.Map' hides inherited membe
r 'Server.Item.Map'. Use the new keyword if hiding was intended.
+ Tamingmoded scripts/BaseCreature.cs:
CS1717: Line 3129: Assignment made to same variable; did you mean to assign
something else?
+ Items/Custom Script/Custom Armor/Other/SkelHelml.cs:
CS0162: Line 72: Unreachable code detected
+ Items/Custom Script/Custom Commands/FindhouseSys.cs:
CS0168: Line 137: The variable 'online' is declared but never used
+ Items/Custom Script/Custom Monster/TrainingElemental/TrainingElemental.cs:
CS0429: Line 78: Unreachable expression code detected
CS0162: Line 79: Unreachable code detected
+ Items/Custom Script/Custom Quest/ElainQuest/Mobiles/Andora.cs:
CS0219: Line 34: The variable 'hairHue' is assigned but its value is never u
sed
+ Items/Custom Script/Custom Quest/ElainQuest/Mobiles/ErikSullivan.cs:
CS0219: Line 35: The variable 'hairHue' is assigned but its value is never u
sed
+ Items/Custom Script/Custom Quest/SpellcrafterQuest/SpellcrafterQuest/Balto.cs
:
CS0219: Line 31: The variable 'hairHue' is assigned but its value is never u
sed
+ Items/Custom Script/Custom Quest/SpellcrafterQuest/SpellcrafterQuest/Gallin.c
s:
CS0219: Line 31: The variable 'hairHue' is assigned but its value is never u
sed
+ Items/Custom Script/Custom Quest/SpellcrafterQuest/SpellcrafterQuest/SCAppren
.cs:
CS0219: Line 49: The variable 'hairHue' is assigned but its value is never u
sed
Errors:
+ Items/Skill Items/Magical/Spellbook.cs:
CS1502: Line 808: The best overloaded method match for 'Server.Items.BaseRun
icTool.ApplyAttributesTo(Server.Items.BaseWeapon, bool, int, int, int, int)' has
some invalid arguments
CS1503: Line 808: Argument '1': cannot convert from 'Server.Items.Spellbook'
to 'Server.Items.BaseWeapon'
+ Misc/LootPack.cs:
CS1502: Line 638: The best overloaded method match for 'Server.Items.BaseRun
icTool.ApplyAttributesTo(Server.Items.BaseWeapon, bool, int, int, int, int)' has
some invalid arguments
CS1503: Line 638: Argument '1': cannot convert from 'Server.Items.BaseHat' t
o 'Server.Items.BaseWeapon'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 
Do you two have some kind of update I don't know about? I don't get these errors.

Update:
I just opened the BaseRunicTool.cs form the RC1 package and it is the same one that I provided you with.

The only thing I changed was:
Code:
[SIZE=2]if ( weapon is BaseRanged )
[/SIZE]

To this:
Code:
[SIZE=2]if ( weapon is CBaseRanged )
[/SIZE]

Post your BaseRunicTool.cs.
 

dragonlady

Sorceror
I don't think so hun, but if i did i dont remember but here is the script ur asking for :)
 

Attachments

  • BaseRunicTool.cs
    24.9 KB · Views: 93
dragonlady

OK this is do to some modification in spellbook and lootpack that you two have. This has nothing to do with Advanced Archery. If you post the spellbook and lootpack I can try and look into the reasons why this happened. What system has the spellbook modification that you have?
 

dragonlady

Sorceror
only other system i can think of that i placed in was the spell crafter but i dont think that has anything to do with it or the taming bods, other than that my server is clean of any other scripts that r craftable :) but here r the script's u ask for anyhow tks for all ur help :)
 

Attachments

  • Spellbook.cs
    21.4 KB · Views: 68
  • LootPack.cs
    31.1 KB · Views: 69

psycomantis

Wanderer
no dragonlady these 2 specific erros you posted are because your Baserunictool.cs doesnt contain:


Code:
using System.Collections.Generic;
right at the top!


i fixed this in the version i posted above -> as a result you will get this error

Code:
Errors:
Items/Skill Items/Tools/BaseRunicTool.cs:
CS0246: Line 206: The type or namespace name 'BitArray' could not be found (are you missing a using directive or an assembly reference?

wich i think is better than having 2 errors in not even related scripts....

but i couldnt get around this in any way yet

but here as wanted my baseranged.cs -wich is basicly same as yours lucid just with the change mentioned above




Code:
using System;
using System.Collections.Generic;




namespace Server.Items
{
	public abstract class BaseRunicTool : BaseTool
	{
		private CraftResource m_Resource;

		[CommandProperty( AccessLevel.GameMaster )]
		public CraftResource Resource
		{
			get{ return m_Resource; }
			set{ m_Resource = value; Hue = CraftResources.GetHue( m_Resource ); InvalidateProperties(); }
		}

		public BaseRunicTool( CraftResource resource, int itemID ) : base( itemID )
		{
			m_Resource = resource;
		}

		public BaseRunicTool( CraftResource resource, int uses, int itemID ) : base( uses, itemID )
		{
			m_Resource = resource;
		}

		public BaseRunicTool( Serial serial ) : base( serial )
		{
		}

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 ); // version
			writer.Write( (int) m_Resource );
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();

			switch ( version )
			{
				case 0:
				{
					m_Resource = (CraftResource)reader.ReadInt();
					break;
				}
			}
		}

		private static bool m_IsRunicTool;
		private static int m_LuckChance;

		private static int Scale( int min, int max, int low, int high )
		{
			int percent;

			if ( m_IsRunicTool )
			{
				percent = Utility.RandomMinMax( min, max );
			}
			else
			{
				// Behold, the worst system ever!
				int v = Utility.RandomMinMax( 0, 10000 );

				v = (int) Math.Sqrt( v );
				v = 100 - v;

				if ( LootPack.CheckLuck( m_LuckChance ) )
					v += 10; // TODO: is this right? who knows

				if ( v < min )
					v = min;
				else if ( v > max )
					v = max;

				percent = v;
			}

			int scaledBy = Math.Abs( high - low ) + 1;

			if ( scaledBy != 0 )
				scaledBy = 10000 / scaledBy;

			percent *= (10000 + scaledBy);

			return low + (((high - low) * percent) / 1000001);
		}

		private static void ApplyAttribute( AosAttributes attrs, int min, int max, AosAttribute attr, int low, int high )
		{
			ApplyAttribute( attrs, min, max, attr, low, high, 1 );
		}

		private static void ApplyAttribute( AosAttributes attrs, int min, int max, AosAttribute attr, int low, int high, int scale )
		{
			if ( attr == AosAttribute.CastSpeed )
				attrs[attr] += Scale( min, max, low / scale, high / scale ) * scale;
			else
				attrs[attr] = Scale( min, max, low / scale, high / scale ) * scale;

			if ( attr == AosAttribute.SpellChanneling )
				attrs[AosAttribute.CastSpeed] -= 1;
		}

		private static void ApplyAttribute( AosArmorAttributes attrs, int min, int max, AosArmorAttribute attr, int low, int high )
		{
			attrs[attr] = Scale( min, max, low, high );
		}

		private static void ApplyAttribute( AosArmorAttributes attrs, int min, int max, AosArmorAttribute attr, int low, int high, int scale )
		{
			attrs[attr] = Scale( min, max, low / scale, high / scale ) * scale;
		}

		private static void ApplyAttribute( AosWeaponAttributes attrs, int min, int max, AosWeaponAttribute attr, int low, int high )
		{
			attrs[attr] = Scale( min, max, low, high );
		}

		private static void ApplyAttribute( AosWeaponAttributes attrs, int min, int max, AosWeaponAttribute attr, int low, int high, int scale )
		{
			attrs[attr] = Scale( min, max, low / scale, high / scale ) * scale;
		}

		private static void ApplyAttribute( AosElementAttributes attrs, int min, int max, AosElementAttribute attr, int low, int high )
		{
			attrs[attr] = Scale( min, max, low, high );
		}

		private static void ApplyAttribute( AosElementAttributes attrs, int min, int max, AosElementAttribute attr, int low, int high, int scale )
		{
			attrs[attr] = Scale( min, max, low / scale, high / scale ) * scale;
		}

		private static SkillName[] m_PossibleBonusSkills = new SkillName[]
			{
				SkillName.Swords,
				SkillName.Fencing,
				SkillName.Macing,
				SkillName.Archery,
				SkillName.Wrestling,
				SkillName.Parry,
				SkillName.Tactics,
				SkillName.Anatomy,
				SkillName.Healing,
				SkillName.Magery,
				SkillName.Meditation,
				SkillName.EvalInt,
				SkillName.MagicResist,
				SkillName.AnimalTaming,
				SkillName.AnimalLore,
				SkillName.Veterinary,
				SkillName.Musicianship,
				SkillName.Provocation,
				SkillName.Discordance,
				SkillName.Peacemaking,
				SkillName.Chivalry,
				SkillName.Focus,
				SkillName.Necromancy,
				SkillName.Stealing,
				SkillName.Stealth,
				SkillName.SpiritSpeak 
			};

		private static void ApplySkillBonus( AosSkillBonuses attrs, int min, int max, int index, int low, int high )
		{
			SkillName sk, check;
			double bonus;
			bool found;

			do
			{
				found = false;
				sk = m_PossibleBonusSkills[Utility.Random( m_PossibleBonusSkills.Length )];

				for ( int i = 0; !found && i < 5; ++i )
					found = ( attrs.GetValues( i, out check, out bonus ) && check == sk );
			} while ( found );

			attrs.SetValues( index, sk, Scale( min, max, low, high ) );
		}

		private static void ApplyResistance( BaseArmor ar, int min, int max, ResistanceType res, int low, int high )
		{
			switch ( res )
			{
				case ResistanceType.Physical: ar.PhysicalBonus += Scale( min, max, low, high ); break;
				case ResistanceType.Fire: ar.FireBonus += Scale( min, max, low, high ); break;
				case ResistanceType.Cold: ar.ColdBonus += Scale( min, max, low, high ); break;
				case ResistanceType.Poison: ar.PoisonBonus += Scale( min, max, low, high ); break;
				case ResistanceType.Energy: ar.EnergyBonus += Scale( min, max, low, high ); break;
			}
		}

		private const int MaxProperties = 32;
		private static BitArray m_Props = new BitArray( MaxProperties );
		private static int[] m_Possible = new int[MaxProperties];

		public static int GetUniqueRandom( int count )
		{
			int avail = 0;

			for ( int i = 0; i < count; ++i )
			{
				if ( !m_Props[i] )
					m_Possible[avail++] = i;
			}

			if ( avail == 0 )
				return -1;

			int v = m_Possible[Utility.Random( avail )];

			m_Props.Set( v, true );

			return v;
		}

		public void ApplyAttributesTo( BaseWeapon weapon )
		{
			CraftResourceInfo resInfo = CraftResources.GetInfo( m_Resource );

			if ( resInfo == null )
				return;

			CraftAttributeInfo attrs = resInfo.AttributeInfo;

			if ( attrs == null )
				return;

			int attributeCount = Utility.RandomMinMax( attrs.RunicMinAttributes, attrs.RunicMaxAttributes );
			int min = attrs.RunicMinIntensity;
			int max = attrs.RunicMaxIntensity;

			ApplyAttributesTo( weapon, true, 0, attributeCount, min, max );
		}

		public static void ApplyAttributesTo( BaseWeapon weapon, int attributeCount, int min, int max )
		{
			ApplyAttributesTo( weapon, false, 0, attributeCount, min, max );
		}

		public static void ApplyAttributesTo( BaseWeapon weapon, bool isRunicTool, int luckChance, int attributeCount, int min, int max )
		{
			m_IsRunicTool = isRunicTool;
			m_LuckChance = luckChance;

			AosAttributes primary = weapon.Attributes;
			AosWeaponAttributes secondary = weapon.WeaponAttributes;

			m_Props.SetAll( false );

			if ( weapon is CBaseRanged )
				m_Props.Set( 2, true ); // ranged weapons cannot be ubws or mageweapon

			for ( int i = 0; i < attributeCount; ++i )
			{
				int random = GetUniqueRandom( 24 );

				if ( random == -1 )
					break;

				switch ( random )
				{
					case 0:
					{
						switch ( Utility.Random( 5 ) )
						{
							case 0: ApplyAttribute( secondary, min, max, AosWeaponAttribute.HitPhysicalArea,2, 50, 2 ); break;
							case 1: ApplyAttribute( secondary, min, max, AosWeaponAttribute.HitFireArea,	2, 50, 2 ); break;
							case 2: ApplyAttribute( secondary, min, max, AosWeaponAttribute.HitColdArea,	2, 50, 2 ); break;
							case 3: ApplyAttribute( secondary, min, max, AosWeaponAttribute.HitPoisonArea,	2, 50, 2 ); break;
							case 4: ApplyAttribute( secondary, min, max, AosWeaponAttribute.HitEnergyArea,	2, 50, 2 ); break;
						}

						break;
					}
					case 1:
					{
						switch ( Utility.Random( 4 ) )
						{
							case 0: ApplyAttribute( secondary, min, max, AosWeaponAttribute.HitMagicArrow,	2, 50, 2 ); break;
							case 1: ApplyAttribute( secondary, min, max, AosWeaponAttribute.HitHarm,		2, 50, 2 ); break;
							case 2: ApplyAttribute( secondary, min, max, AosWeaponAttribute.HitFireball,	2, 50, 2 ); break;
							case 3: ApplyAttribute( secondary, min, max, AosWeaponAttribute.HitLightning,	2, 50, 2 ); break;
						}

						break;
					}
					case 2:
					{
						switch ( Utility.Random( 2 ) )
						{
							case 0: ApplyAttribute( secondary, min, max, AosWeaponAttribute.UseBestSkill,	1, 1 ); break;
							case 1: ApplyAttribute( secondary, min, max, AosWeaponAttribute.MageWeapon,		1, 10 ); break;
						}

						break;
					}
					case  3: ApplyAttribute( primary,	min, max, AosAttribute.WeaponDamage,				1, 50 ); break;
					case  4: ApplyAttribute( primary,	min, max, AosAttribute.DefendChance,				1, 15 ); break;
					case  5: ApplyAttribute( primary,	min, max, AosAttribute.CastSpeed,					1, 1 ); break;
					case  6: ApplyAttribute( primary,	min, max, AosAttribute.AttackChance,				1, 15 ); break;
					case  7: ApplyAttribute( primary,	min, max, AosAttribute.Luck,						1, 100 ); break;
					case  8: ApplyAttribute( primary,	min, max, AosAttribute.WeaponSpeed,					5, 30, 5 ); break;
					case  9: ApplyAttribute( primary,	min, max, AosAttribute.SpellChanneling,				1, 1 ); break;
					case 10: ApplyAttribute( secondary, min, max, AosWeaponAttribute.HitDispel,				2, 50, 2 ); break;
					case 11: ApplyAttribute( secondary,	min, max, AosWeaponAttribute.HitLeechHits,			2, 50, 2 ); break;
					case 12: ApplyAttribute( secondary,	min, max, AosWeaponAttribute.HitLowerAttack,		2, 50, 2 ); break;
					case 13: ApplyAttribute( secondary,	min, max, AosWeaponAttribute.HitLowerDefend,		2, 50, 2 ); break;
					case 14: ApplyAttribute( secondary,	min, max, AosWeaponAttribute.HitLeechMana,			2, 50, 2 ); break;
					case 15: ApplyAttribute( secondary,	min, max, AosWeaponAttribute.HitLeechStam,			2, 50, 2 ); break;
					case 16: ApplyAttribute( secondary,	min, max, AosWeaponAttribute.LowerStatReq,			10, 100, 10 ); break;
					case 17: ApplyAttribute( secondary,	min, max, AosWeaponAttribute.ResistPhysicalBonus,	1, 15 ); break;
					case 18: ApplyAttribute( secondary,	min, max, AosWeaponAttribute.ResistFireBonus,		1, 15 ); break;
					case 19: ApplyAttribute( secondary,	min, max, AosWeaponAttribute.ResistColdBonus,		1, 15 ); break;
					case 20: ApplyAttribute( secondary,	min, max, AosWeaponAttribute.ResistPoisonBonus,		1, 15 ); break;
					case 21: ApplyAttribute( secondary,	min, max, AosWeaponAttribute.ResistEnergyBonus,		1, 15 ); break;
					case 22: ApplyAttribute( secondary, min, max, AosWeaponAttribute.DurabilityBonus,		10, 100, 10 ); break;
					case 23: weapon.Slayer = GetRandomSlayer(); break;
				}
			}
		}

		public static SlayerName GetRandomSlayer()
		{
			// TODO: Check random algorithm on OSI

			SlayerGroup[] groups = SlayerGroup.Groups;

			if ( groups.Length == 0 )
				return SlayerName.None;

			SlayerGroup group = groups[Utility.Random( groups.Length -1 )]; //-1 To Exclude the Fey Slayer which appears ONLY on a certain artifact.
			SlayerEntry entry;

			if ( 10 > Utility.Random( 100 ) ) // 10% chance to do super slayer
			{
				entry = group.Super;
			}
			else
			{
				SlayerEntry[] entries = group.Entries;

				if ( entries.Length == 0 )
					return SlayerName.None;

				entry = entries[Utility.Random( entries.Length )];
			}

			return entry.Name;
		}

		public void ApplyAttributesTo( BaseArmor armor )
		{
			CraftResourceInfo resInfo = CraftResources.GetInfo( m_Resource );

			if ( resInfo == null )
				return;

			CraftAttributeInfo attrs = resInfo.AttributeInfo;

			if ( attrs == null )
				return;

			int attributeCount = Utility.RandomMinMax( attrs.RunicMinAttributes, attrs.RunicMaxAttributes );
			int min = attrs.RunicMinIntensity;
			int max = attrs.RunicMaxIntensity;

			ApplyAttributesTo( armor, true, 0, attributeCount, min, max );
		}

		public static void ApplyAttributesTo( BaseArmor armor, int attributeCount, int min, int max )
		{
			ApplyAttributesTo( armor, false, 0, attributeCount, min, max );
		}

		public static void ApplyAttributesTo( BaseArmor armor, bool isRunicTool, int luckChance, int attributeCount, int min, int max )
		{
			m_IsRunicTool = isRunicTool;
			m_LuckChance = luckChance;

			AosAttributes primary = armor.Attributes;
			AosArmorAttributes secondary = armor.ArmorAttributes;

			m_Props.SetAll( false );

			bool isShield = ( armor is BaseShield );
			int baseCount = ( isShield ? 7 : 20 );
			int baseOffset = ( isShield ? 0 : 4 );

			if ( !isShield && armor.MeditationAllowance == ArmorMeditationAllowance.All )
				m_Props.Set( 3, true ); // remove mage armor from possible properties

			for ( int i = 0; i < attributeCount; ++i )
			{
				int random = GetUniqueRandom( baseCount );

				if ( random == -1 )
					break;

				random += baseOffset;

				switch ( random )
				{
						/* Begin Sheilds */
					case  0: ApplyAttribute( primary,	min, max, AosAttribute.SpellChanneling,			1, 1 ); break;
					case  1: ApplyAttribute( primary,	min, max, AosAttribute.DefendChance,			1, 15 ); break;
					case  2: ApplyAttribute( primary,	min, max, AosAttribute.AttackChance,			1, 15 ); break;
					case  3: ApplyAttribute( primary,	min, max, AosAttribute.CastSpeed,				1, 1 ); break;
						/* Begin Armor */
					case  4: ApplyAttribute( secondary,	min, max, AosArmorAttribute.LowerStatReq,		10, 100, 10 ); break;
					case  5: ApplyAttribute( secondary,	min, max, AosArmorAttribute.SelfRepair,			1, 5 ); break;
					case  6: ApplyAttribute( secondary,	min, max, AosArmorAttribute.DurabilityBonus,	10, 100, 10 ); break;
						/* End Shields */
					case  7: ApplyAttribute( secondary,	min, max, AosArmorAttribute.MageArmor,			1, 1 ); break;
					case  8: ApplyAttribute( primary,	min, max, AosAttribute.RegenHits,				1, 2 ); break;
					case  9: ApplyAttribute( primary,	min, max, AosAttribute.RegenStam,				1, 3 ); break;
					case 10: ApplyAttribute( primary,	min, max, AosAttribute.RegenMana,				1, 2 ); break;
					case 11: ApplyAttribute( primary,	min, max, AosAttribute.NightSight,				1, 1 ); break;
					case 12: ApplyAttribute( primary,	min, max, AosAttribute.BonusHits,				1, 5 ); break;
					case 13: ApplyAttribute( primary,	min, max, AosAttribute.BonusStam,				1, 8 ); break;
					case 14: ApplyAttribute( primary,	min, max, AosAttribute.BonusMana,				1, 8 ); break;
					case 15: ApplyAttribute( primary,	min, max, AosAttribute.LowerManaCost,			1, 8 ); break;
					case 16: ApplyAttribute( primary,	min, max, AosAttribute.LowerRegCost,			1, 20 ); break;
					case 17: ApplyAttribute( primary,	min, max, AosAttribute.Luck,					1, 100 ); break;
					case 18: ApplyAttribute( primary,	min, max, AosAttribute.ReflectPhysical,			1, 15 ); break;
					case 19: ApplyResistance( armor,	min, max, ResistanceType.Physical,				1, 15 ); break;
					case 20: ApplyResistance( armor,	min, max, ResistanceType.Fire,					1, 15 ); break;
					case 21: ApplyResistance( armor,	min, max, ResistanceType.Cold,					1, 15 ); break;
					case 22: ApplyResistance( armor,	min, max, ResistanceType.Poison,				1, 15 ); break;
					case 23: ApplyResistance( armor,	min, max, ResistanceType.Energy,				1, 15 ); break;
						/* End Armor */
				}
			}
		}

		public void ApplyAttributesTo( BaseJewel jewelry )
		{
			CraftResourceInfo resInfo = CraftResources.GetInfo( m_Resource );

			if ( resInfo == null )
				return;

			CraftAttributeInfo attrs = resInfo.AttributeInfo;

			if ( attrs == null )
				return;

			int attributeCount = Utility.RandomMinMax( attrs.RunicMinAttributes, attrs.RunicMaxAttributes );
			int min = attrs.RunicMinIntensity;
			int max = attrs.RunicMaxIntensity;

			ApplyAttributesTo( jewelry, true, 0, attributeCount, min, max );
		}
		
		public static void ApplyAttributesTo( BaseJewel jewelry, int attributeCount, int min, int max )
		{
			ApplyAttributesTo( jewelry, false, 0, attributeCount, min, max );
		}

		public static void ApplyAttributesTo( BaseJewel jewelry, bool isRunicTool, int luckChance, int attributeCount, int min, int max )
		{
			m_IsRunicTool = isRunicTool;
			m_LuckChance = luckChance;

			AosAttributes primary = jewelry.Attributes;
			AosElementAttributes resists = jewelry.Resistances;
			AosSkillBonuses skills = jewelry.SkillBonuses;

			m_Props.SetAll( false );

			for ( int i = 0; i < attributeCount; ++i )
			{
				int random = GetUniqueRandom( 24 );

				if ( random == -1 )
					break;

				switch ( random )
				{
					case  0: ApplyAttribute( resists,	min, max, AosElementAttribute.Physical,			1, 15 ); break;
					case  1: ApplyAttribute( resists,	min, max, AosElementAttribute.Fire,				1, 15 ); break;
					case  2: ApplyAttribute( resists,	min, max, AosElementAttribute.Cold,				1, 15 ); break;
					case  3: ApplyAttribute( resists,	min, max, AosElementAttribute.Poison,			1, 15 ); break;
					case  4: ApplyAttribute( resists,	min, max, AosElementAttribute.Energy,			1, 15 ); break;
					case  5: ApplyAttribute( primary,	min, max, AosAttribute.WeaponDamage,			1, 25 ); break;
					case  6: ApplyAttribute( primary,	min, max, AosAttribute.DefendChance,			1, 15 ); break;
					case  7: ApplyAttribute( primary,	min, max, AosAttribute.AttackChance,			1, 15 ); break;
					case  8: ApplyAttribute( primary,	min, max, AosAttribute.BonusStr,				1, 8 ); break;
					case  9: ApplyAttribute( primary,	min, max, AosAttribute.BonusDex,				1, 8 ); break;
					case 10: ApplyAttribute( primary,	min, max, AosAttribute.BonusInt,				1, 8 ); break;
					case 11: ApplyAttribute( primary,	min, max, AosAttribute.EnhancePotions,			5, 25, 5 ); break;
					case 12: ApplyAttribute( primary,	min, max, AosAttribute.CastSpeed,				1, 1 ); break;
					case 13: ApplyAttribute( primary,	min, max, AosAttribute.CastRecovery,			1, 3 ); break;
					case 14: ApplyAttribute( primary,	min, max, AosAttribute.LowerManaCost,			1, 8 ); break;
					case 15: ApplyAttribute( primary,	min, max, AosAttribute.LowerRegCost,			1, 20 ); break;
					case 16: ApplyAttribute( primary,	min, max, AosAttribute.Luck,					1, 100 ); break;
					case 17: ApplyAttribute( primary,	min, max, AosAttribute.SpellDamage,				1, 12 ); break;
					case 18: ApplyAttribute( primary,	min, max, AosAttribute.NightSight,				1, 1 ); break;
					case 19: ApplySkillBonus( skills,	min, max, 0,									1, 15 ); break;
					case 20: ApplySkillBonus( skills,	min, max, 1,									1, 15 ); break;
					case 21: ApplySkillBonus( skills,	min, max, 2,									1, 15 ); break;
					case 22: ApplySkillBonus( skills,	min, max, 3,									1, 15 ); break;
					case 23: ApplySkillBonus( skills,	min, max, 4,									1, 15 ); break;
				}
			}
		}
	}
}
 

dragonlady

Sorceror
ohh yeah stupid me, im a retard lol, well everything work ok but only problem im having is i can't fire any Ranged Wepond i tryed alot of them and none of them fire off but here all the script's zipper up again, in case i need to go to bed and sleep, yeha maybe that's what it is lack of sleep lol sorry about that guys, i just wasn't thinking :rolleyes:
 

Attachments

  • [2[1].0]Lucid Nagual's Advanced Archery Beta2.rar
    48.1 KB · Views: 83

psycomantis

Wanderer
Working !

okay my set of files combined with your baserunictool.cs did it dragonlady !

i dont know where the difference between the files is (mine/lucids is much smaller) and im really toooo lazy to look now just be glad it works finally ^^


so basicly if you handle to fix errors you get because of other systems of yours this package now should do it for you aswell (since my system is veeeery basic {6 days old})

but its rev64 (absolutely latest) maybe you wanna get this aswell!

hmm for now all left to say is thx for this wonderful scripts lucid - ill get back to you with some results as soon as i got them :) and it was fun to work with you two lets continue it :) wish everyone was like this!
 

Attachments

  • Lucid's wonderful Advanced Archery Package for 2.0.rar
    47.6 KB · Views: 157

dragonlady

Sorceror
psycomantis My friend, I loveeeeeeeeeeeeee u, i have no clue what u did but that fixed it and that's all that counts to me, :) tks to everyone who helped me with this, lol :p
 
no dragonlady these 2 specific erros you posted are because your Baserunictool.cs doesnt contain:



Code:
using System.Collections.Generic;​

right at the top!


i fixed this in the version i posted above -> as a result you will get this error


Code:
Errors:Items/Skill Items/Tools/BaseRunicTool.cs:CS0246: Line 206: The type or namespace name 'BitArray' could not be found (are you missing a using directive or an assembly reference?​


wich i think is better than having 2 errors in not even related scripts....

but i couldnt get around this in any way yet

but here as wanted my baseranged.cs -wich is basicly same as yours lucid just with the change mentioned above
I gave you the same script as the distro one. Obiviously, the problem is coming from a different source. Look at this BaseRunicTool.cs and tell me it doesn't come from the RC1 package.
Code:
[B][SIZE=2][COLOR=#008000]using [/B][/COLOR][/SIZE][SIZE=2]System[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#008000]using [/B][/COLOR][/SIZE][SIZE=2]System[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Collections[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#008000]namespace [/B][/COLOR][/SIZE][SIZE=2]Server[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Items
[/SIZE][SIZE=2][COLOR=#006400]{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]public [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]abstract [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]class [/COLOR][/SIZE][SIZE=2]BaseRunicTool : BaseTool
[/SIZE][SIZE=2][COLOR=#006400]{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]private [/B][/COLOR][/SIZE][SIZE=2]CraftResource m_Resource[/SIZE][SIZE=2][COLOR=#006400];
[[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]CommandProperty[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]AccessLevel[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]GameMaster [/SIZE][SIZE=2][COLOR=#006400])]
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]public [/B][/COLOR][/SIZE][SIZE=2]CraftResource Resource
[/SIZE][SIZE=2][COLOR=#006400]{
[/COLOR][/SIZE][SIZE=2][COLOR=#8b4513]get[/COLOR][/SIZE][SIZE=2][COLOR=#006400]{ [/COLOR][/SIZE][SIZE=2][COLOR=#000080]return [/COLOR][/SIZE][SIZE=2]m_Resource[/SIZE][SIZE=2][COLOR=#006400]; }
[/COLOR][/SIZE][SIZE=2][COLOR=#8b4513]set[/COLOR][/SIZE][SIZE=2][COLOR=#006400]{ [/COLOR][/SIZE][SIZE=2]m_Resource [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][B][SIZE=2]value[/B][/SIZE][SIZE=2][COLOR=#006400]; [/COLOR][/SIZE][SIZE=2]Hue [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]CraftResources[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]GetHue[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]m_Resource [/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]InvalidateProperties[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400](); }
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]public [/COLOR][/SIZE][SIZE=2][COLOR=#191970]BaseRunicTool[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]CraftResource resource[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]itemID [/SIZE][SIZE=2][COLOR=#006400]) [/COLOR][/SIZE][SIZE=2]: [B]base[/B][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]itemID [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][SIZE=2]m_Resource [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]resource[/SIZE][SIZE=2][COLOR=#006400];
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]public [/COLOR][/SIZE][SIZE=2][COLOR=#191970]BaseRunicTool[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]CraftResource resource[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]uses[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]itemID [/SIZE][SIZE=2][COLOR=#006400]) [/COLOR][/SIZE][SIZE=2]: [B]base[/B][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]uses[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]itemID [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][SIZE=2]m_Resource [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]resource[/SIZE][SIZE=2][COLOR=#006400];
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]public [/COLOR][/SIZE][SIZE=2][COLOR=#191970]BaseRunicTool[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]Serial serial [/SIZE][SIZE=2][COLOR=#006400]) [/COLOR][/SIZE][SIZE=2]: [B]base[/B][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]serial [/SIZE][SIZE=2][COLOR=#006400])
{
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]public [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]override [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Serialize[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]GenericWriter writer [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2]base[/B][/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Serialize[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]writer [/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][SIZE=2]writer[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Write[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( ([/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]) [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#008000]// version
[/COLOR][/SIZE][SIZE=2]writer[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Write[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( ([/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]) [/COLOR][/SIZE][SIZE=2]m_Resource [/SIZE][SIZE=2][COLOR=#006400]);
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]public [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]override [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Deserialize[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]GenericReader reader [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2]base[/B][/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Deserialize[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]reader [/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]version [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]reader[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ReadInt[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]();
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]switch [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]version [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2]:
[/SIZE][SIZE=2][COLOR=#006400]{
[/COLOR][/SIZE][SIZE=2]m_Resource [/SIZE][SIZE=2][COLOR=#006400]= ([/COLOR][/SIZE][SIZE=2]CraftResource[/SIZE][SIZE=2][COLOR=#006400])[/COLOR][/SIZE][SIZE=2]reader[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ReadInt[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]();
[/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
}
}
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]private [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]bool [/B][/COLOR][/SIZE][SIZE=2]m_IsRunicTool[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]private [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]m_LuckChance[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]private [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/COLOR][/SIZE][SIZE=2][COLOR=#191970]Scale[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]low[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]high [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]percent[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]m_IsRunicTool [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][SIZE=2]percent [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]Utility[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]RandomMinMax[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max [/SIZE][SIZE=2][COLOR=#006400]);
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]else
[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]{
[/COLOR][/SIZE][SIZE=2][COLOR=#008000]// Behold, the worst system ever!
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]v [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]Utility[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]RandomMinMax[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10000 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][SIZE=2]v [/SIZE][SIZE=2][COLOR=#006400]= ([/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]) [/COLOR][/SIZE][SIZE=2]Math[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Sqrt[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]v [/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][SIZE=2]v [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]100 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]- [/COLOR][/SIZE][SIZE=2]v[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]LootPack[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]CheckLuck[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]m_LuckChance [/SIZE][SIZE=2][COLOR=#006400]) )
[/COLOR][/SIZE][SIZE=2]v [/SIZE][SIZE=2][COLOR=#006400]+= [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]v [/SIZE][SIZE=2][COLOR=#006400]< [/COLOR][/SIZE][SIZE=2]min [/SIZE][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][SIZE=2]v [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]else if [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]v [/SIZE][SIZE=2][COLOR=#006400]> [/COLOR][/SIZE][SIZE=2]max [/SIZE][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][SIZE=2]v [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]percent [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]v[/SIZE][SIZE=2][COLOR=#006400];
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]scaledBy [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]Math[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Abs[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]high [/SIZE][SIZE=2][COLOR=#006400]- [/COLOR][/SIZE][SIZE=2]low [/SIZE][SIZE=2][COLOR=#006400]) + [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]scaledBy [/SIZE][SIZE=2][COLOR=#006400]!= [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0 [/COLOR][/SIZE][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][SIZE=2]scaledBy [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10000 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]/ [/COLOR][/SIZE][SIZE=2]scaledBy[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]percent [/SIZE][SIZE=2][COLOR=#006400]*= ([/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10000 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]+ [/COLOR][/SIZE][SIZE=2]scaledBy[/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][SIZE=2][COLOR=#000080]return [/COLOR][/SIZE][SIZE=2]low [/SIZE][SIZE=2][COLOR=#006400]+ ((([/COLOR][/SIZE][SIZE=2]high [/SIZE][SIZE=2][COLOR=#006400]- [/COLOR][/SIZE][SIZE=2]low[/SIZE][SIZE=2][COLOR=#006400]) * [/COLOR][/SIZE][SIZE=2]percent[/SIZE][SIZE=2][COLOR=#006400]) / [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1000001[/COLOR][/SIZE][SIZE=2][COLOR=#006400]);
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]private [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]AosAttributes attrs[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute attr[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]low[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]high [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]attr[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]low[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]high[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]);
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]private [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]AosAttributes attrs[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute attr[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]low[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]high[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]scale [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]attr [/SIZE][SIZE=2][COLOR=#006400]== [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]CastSpeed [/SIZE][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400][[/COLOR][/SIZE][SIZE=2]attr[/SIZE][SIZE=2][COLOR=#006400]] += [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Scale[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]low [/SIZE][SIZE=2][COLOR=#006400]/ [/COLOR][/SIZE][SIZE=2]scale[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]high [/SIZE][SIZE=2][COLOR=#006400]/ [/COLOR][/SIZE][SIZE=2]scale [/SIZE][SIZE=2][COLOR=#006400]) * [/COLOR][/SIZE][SIZE=2]scale[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]else
[/B][/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400][[/COLOR][/SIZE][SIZE=2]attr[/SIZE][SIZE=2][COLOR=#006400]] = [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Scale[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]low [/SIZE][SIZE=2][COLOR=#006400]/ [/COLOR][/SIZE][SIZE=2]scale[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]high [/SIZE][SIZE=2][COLOR=#006400]/ [/COLOR][/SIZE][SIZE=2]scale [/SIZE][SIZE=2][COLOR=#006400]) * [/COLOR][/SIZE][SIZE=2]scale[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]attr [/SIZE][SIZE=2][COLOR=#006400]== [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]SpellChanneling [/SIZE][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400][[/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]CastSpeed[/SIZE][SIZE=2][COLOR=#006400]] -= [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]private [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]AosArmorAttributes attrs[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosArmorAttribute attr[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]low[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]high [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400][[/COLOR][/SIZE][SIZE=2]attr[/SIZE][SIZE=2][COLOR=#006400]] = [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Scale[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]low[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]high [/SIZE][SIZE=2][COLOR=#006400]);
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]private [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]AosArmorAttributes attrs[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosArmorAttribute attr[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]low[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]high[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]scale [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400][[/COLOR][/SIZE][SIZE=2]attr[/SIZE][SIZE=2][COLOR=#006400]] = [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Scale[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]low [/SIZE][SIZE=2][COLOR=#006400]/ [/COLOR][/SIZE][SIZE=2]scale[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]high [/SIZE][SIZE=2][COLOR=#006400]/ [/COLOR][/SIZE][SIZE=2]scale [/SIZE][SIZE=2][COLOR=#006400]) * [/COLOR][/SIZE][SIZE=2]scale[/SIZE][SIZE=2][COLOR=#006400];
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]private [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]AosWeaponAttributes attrs[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute attr[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]low[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]high [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400][[/COLOR][/SIZE][SIZE=2]attr[/SIZE][SIZE=2][COLOR=#006400]] = [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Scale[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]low[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]high [/SIZE][SIZE=2][COLOR=#006400]);
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]private [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]AosWeaponAttributes attrs[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute attr[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]low[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]high[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]scale [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400][[/COLOR][/SIZE][SIZE=2]attr[/SIZE][SIZE=2][COLOR=#006400]] = [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Scale[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]low [/SIZE][SIZE=2][COLOR=#006400]/ [/COLOR][/SIZE][SIZE=2]scale[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]high [/SIZE][SIZE=2][COLOR=#006400]/ [/COLOR][/SIZE][SIZE=2]scale [/SIZE][SIZE=2][COLOR=#006400]) * [/COLOR][/SIZE][SIZE=2]scale[/SIZE][SIZE=2][COLOR=#006400];
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]private [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]AosElementAttributes attrs[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosElementAttribute attr[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]low[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]high [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400][[/COLOR][/SIZE][SIZE=2]attr[/SIZE][SIZE=2][COLOR=#006400]] = [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Scale[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]low[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]high [/SIZE][SIZE=2][COLOR=#006400]);
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]private [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]AosElementAttributes attrs[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosElementAttribute attr[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]low[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]high[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]scale [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400][[/COLOR][/SIZE][SIZE=2]attr[/SIZE][SIZE=2][COLOR=#006400]] = [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Scale[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]low [/SIZE][SIZE=2][COLOR=#006400]/ [/COLOR][/SIZE][SIZE=2]scale[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]high [/SIZE][SIZE=2][COLOR=#006400]/ [/COLOR][/SIZE][SIZE=2]scale [/SIZE][SIZE=2][COLOR=#006400]) * [/COLOR][/SIZE][SIZE=2]scale[/SIZE][SIZE=2][COLOR=#006400];
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]private [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400][] [/COLOR][/SIZE][SIZE=2]m_PossibleBonusSkills [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b]new [/B][/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400][]
{
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Swords[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Fencing[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Macing[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Archery[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Wrestling[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Parry[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Tactics[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Anatomy[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Healing[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Magery[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Meditation[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]EvalInt[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]MagicResist[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]AnimalTaming[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]AnimalLore[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Veterinary[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Musicianship[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Provocation[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Discordance[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Peacemaking[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Chivalry[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Focus[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Necromancy[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Stealing[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Stealth[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]SpiritSpeak[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Bushido[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Ninjitsu
[/SIZE][SIZE=2][COLOR=#006400]};
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]private [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400][] [/COLOR][/SIZE][SIZE=2]m_PossibleSpellbookSkills [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b]new [/B][/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400][]
{
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Magery[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Meditation[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]EvalInt[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]MagicResist
[/SIZE][SIZE=2][COLOR=#006400]};
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]private [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplySkillBonus[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]AosSkillBonuses attrs[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]index[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]low[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]high [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][SIZE=2]SkillName[/SIZE][SIZE=2][COLOR=#006400][] [/COLOR][/SIZE][SIZE=2]possibleSkills [/SIZE][SIZE=2][COLOR=#006400]= ( [/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Owner [/SIZE][B][SIZE=2][COLOR=#008b8b]is [/B][/COLOR][/SIZE][SIZE=2]Spellbook [/SIZE][SIZE=2][COLOR=#006400]? [/COLOR][/SIZE][SIZE=2]m_PossibleSpellbookSkills : m_PossibleBonusSkills [/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]count [/SIZE][SIZE=2][COLOR=#006400]= ( [/COLOR][/SIZE][SIZE=2]Core[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]SE [/SIZE][SIZE=2][COLOR=#006400]? [/COLOR][/SIZE][SIZE=2]possibleSkills[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Length : possibleSkills[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Length [/SIZE][SIZE=2][COLOR=#006400]- [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][SIZE=2]SkillName sk[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]check[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]double [/B][/COLOR][/SIZE][SIZE=2]bonus[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]bool [/B][/COLOR][/SIZE][SIZE=2]found[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]do
[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]{
[/COLOR][/SIZE][SIZE=2]found [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b]false[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]sk [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]possibleSkills[/SIZE][SIZE=2][COLOR=#006400][[/COLOR][/SIZE][SIZE=2]Utility[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Random[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]count [/SIZE][SIZE=2][COLOR=#006400])];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]for [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2][COLOR=#006400]; ![/COLOR][/SIZE][SIZE=2]found [/SIZE][SIZE=2][COLOR=#006400]&& [/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400]< [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]5[/COLOR][/SIZE][SIZE=2][COLOR=#006400]; ++[/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][SIZE=2]found [/SIZE][SIZE=2][COLOR=#006400]= ( [/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]GetValues[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]i[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff1493]out [/B][/COLOR][/SIZE][SIZE=2]check[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff1493]out [/B][/COLOR][/SIZE][SIZE=2]bonus [/SIZE][SIZE=2][COLOR=#006400]) && [/COLOR][/SIZE][SIZE=2]check [/SIZE][SIZE=2][COLOR=#006400]== [/COLOR][/SIZE][SIZE=2]sk [/SIZE][SIZE=2][COLOR=#006400]);
} [/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]while [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]found [/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]SetValues[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]index[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]sk[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Scale[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]low[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]high [/SIZE][SIZE=2][COLOR=#006400]) );
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]private [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyResistance[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]BaseArmor ar[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]ResistanceType res[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]low[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]high [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]switch [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]res [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2]ResistanceType[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Physical: ar[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]PhysicalBonus [/SIZE][SIZE=2][COLOR=#006400]+= [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Scale[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]low[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]high [/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2]ResistanceType[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Fire: ar[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]FireBonus [/SIZE][SIZE=2][COLOR=#006400]+= [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Scale[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]low[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]high [/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2]ResistanceType[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Cold: ar[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]ColdBonus [/SIZE][SIZE=2][COLOR=#006400]+= [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Scale[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]low[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]high [/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2]ResistanceType[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Poison: ar[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]PoisonBonus [/SIZE][SIZE=2][COLOR=#006400]+= [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Scale[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]low[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]high [/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2]ResistanceType[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Energy: ar[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]EnergyBonus [/SIZE][SIZE=2][COLOR=#006400]+= [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Scale[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]low[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]high [/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
}
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]private [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]const [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]MaxProperties [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]32[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]private [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2]BitArray m_Props [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b]new [/COLOR][/SIZE][SIZE=2][COLOR=#191970]BitArray[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]MaxProperties [/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]private [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400][] [/COLOR][/SIZE][SIZE=2]m_Possible [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b]new [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]int[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400][[/COLOR][/SIZE][SIZE=2]MaxProperties[/SIZE][SIZE=2][COLOR=#006400]];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]public [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/COLOR][/SIZE][SIZE=2][COLOR=#191970]GetUniqueRandom[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]count [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]avail [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]for [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2][COLOR=#006400]; [/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400]< [/COLOR][/SIZE][SIZE=2]count[/SIZE][SIZE=2][COLOR=#006400]; ++[/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( ![/COLOR][/SIZE][SIZE=2]m_Props[/SIZE][SIZE=2][COLOR=#006400][[/COLOR][/SIZE][SIZE=2]i[/SIZE][SIZE=2][COLOR=#006400]] )
[/COLOR][/SIZE][SIZE=2]m_Possible[/SIZE][SIZE=2][COLOR=#006400][[/COLOR][/SIZE][SIZE=2]avail[/SIZE][SIZE=2][COLOR=#006400]++] = [/COLOR][/SIZE][SIZE=2]i[/SIZE][SIZE=2][COLOR=#006400];
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]avail [/SIZE][SIZE=2][COLOR=#006400]== [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0 [/COLOR][/SIZE][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][SIZE=2][COLOR=#000080]return [/COLOR][/SIZE][SIZE=2][COLOR=#006400]-[/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]v [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]m_Possible[/SIZE][SIZE=2][COLOR=#006400][[/COLOR][/SIZE][SIZE=2]Utility[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Random[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]avail [/SIZE][SIZE=2][COLOR=#006400])];
[/COLOR][/SIZE][SIZE=2]m_Props[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Set[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]v[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b]true [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][SIZE=2][COLOR=#000080]return [/COLOR][/SIZE][SIZE=2]v[/SIZE][SIZE=2][COLOR=#006400];
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]public [/B][/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttributesTo[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]BaseWeapon weapon [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][SIZE=2]CraftResourceInfo resInfo [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]CraftResources[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]GetInfo[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]m_Resource [/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]resInfo [/SIZE][SIZE=2][COLOR=#006400]== [/COLOR][/SIZE][B][SIZE=2]null [/B][/SIZE][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][SIZE=2][COLOR=#000080]return[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]CraftAttributeInfo attrs [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]resInfo[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]AttributeInfo[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]attrs [/SIZE][SIZE=2][COLOR=#006400]== [/COLOR][/SIZE][B][SIZE=2]null [/B][/SIZE][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][SIZE=2][COLOR=#000080]return[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]attributeCount [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]Utility[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]RandomMinMax[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]RunicMinAttributes[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]RunicMaxAttributes [/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]min [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]RunicMinIntensity[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]max [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]RunicMaxIntensity[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttributesTo[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]weapon[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b]true[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]attributeCount[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max [/SIZE][SIZE=2][COLOR=#006400]);
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]public [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttributesTo[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]BaseWeapon weapon[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]attributeCount[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]max [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttributesTo[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]weapon[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b]false[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]attributeCount[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max [/SIZE][SIZE=2][COLOR=#006400]);
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]public [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttributesTo[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]BaseWeapon weapon[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]bool [/B][/COLOR][/SIZE][SIZE=2]isRunicTool[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]luckChance[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]attributeCount[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]max [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][SIZE=2]m_IsRunicTool [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]isRunicTool[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]m_LuckChance [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]luckChance[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]AosAttributes primary [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]weapon[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Attributes[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]AosWeaponAttributes secondary [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]weapon[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]WeaponAttributes[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]m_Props[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]SetAll[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b]false [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]weapon [/SIZE][B][SIZE=2][COLOR=#008b8b]is [/B][/COLOR][/SIZE][SIZE=2]CBaseRanged [/SIZE][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][SIZE=2]m_Props[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Set[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b]true [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#008000]// ranged weapons cannot be ubws or mageweapon
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]for [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2][COLOR=#006400]; [/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400]< [/COLOR][/SIZE][SIZE=2]attributeCount[/SIZE][SIZE=2][COLOR=#006400]; ++[/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]random [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]GetUniqueRandom[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]25 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]random [/SIZE][SIZE=2][COLOR=#006400]== -[/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1 [/COLOR][/SIZE][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]switch [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]random [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2]:
[/SIZE][SIZE=2][COLOR=#006400]{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]switch [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]Utility[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Random[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]5 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]) )
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]HitPhysicalArea[/SIZE][SIZE=2][COLOR=#006400],[/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]50[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]HitFireArea[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]50[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]HitColdArea[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]50[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]3[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]HitPoisonArea[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]50[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]4[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]HitEnergyArea[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]50[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
}
[/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2]:
[/SIZE][SIZE=2][COLOR=#006400]{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]switch [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]Utility[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Random[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]4 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]) )
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]HitMagicArrow[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]50[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]HitHarm[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]50[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]HitFireball[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]50[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]3[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]HitLightning[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]50[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
}
[/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2]:
[/SIZE][SIZE=2][COLOR=#006400]{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]switch [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]Utility[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Random[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]) )
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]UseBestSkill[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]MageWeapon[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
}
[/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]3[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]WeaponDamage[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]50 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]4[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]DefendChance[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]5[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]CastSpeed[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]6[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]AttackChance[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]7[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Luck[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]100 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]8[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]WeaponSpeed[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]5[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]30[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]5 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]9[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]SpellChanneling[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]HitDispel[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]50[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]11[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]HitLeechHits[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]50[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]12[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]HitLowerAttack[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]50[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]13[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]HitLowerDefend[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]50[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]14[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]HitLeechMana[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]50[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]HitLeechStam[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]50[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]16[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]LowerStatReq[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]100[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]17[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]ResistPhysicalBonus[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]18[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]ResistFireBonus[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]19[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]ResistColdBonus[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]20[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]ResistPoisonBonus[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]21[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]ResistEnergyBonus[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]22[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosWeaponAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]DurabilityBonus[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]100[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]23[/COLOR][/SIZE][SIZE=2]: weapon[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Slayer [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]GetRandomSlayer[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400](); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]24[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]GetElementalDamages[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]weapon [/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
}
}
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]public [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]GetElementalDamages[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]BaseWeapon weapon [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]GetElementalDamages[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]weapon[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b]true [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]);
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]public [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]GetElementalDamages[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]BaseWeapon weapon[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]bool [/B][/COLOR][/SIZE][SIZE=2]randomizeOrder [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]fire[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]phys[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]cold[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]nrgy[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]pois[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]weapon[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]GetDamageTypes[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][B][SIZE=2]null[/B][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff1493]out [/B][/COLOR][/SIZE][SIZE=2]phys[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff1493]out [/B][/COLOR][/SIZE][SIZE=2]fire[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff1493]out [/B][/COLOR][/SIZE][SIZE=2]cold[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff1493]out [/B][/COLOR][/SIZE][SIZE=2]pois[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff1493]out [/B][/COLOR][/SIZE][SIZE=2]nrgy [/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]totalDamage [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]phys[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]AosElementAttribute[/SIZE][SIZE=2][COLOR=#006400][] [/COLOR][/SIZE][SIZE=2]attrs [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b]new [/B][/COLOR][/SIZE][SIZE=2]AosElementAttribute[/SIZE][SIZE=2][COLOR=#006400][]
{
[/COLOR][/SIZE][SIZE=2]AosElementAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Cold[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]AosElementAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Energy[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]AosElementAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Fire[/SIZE][SIZE=2][COLOR=#006400],
[/COLOR][/SIZE][SIZE=2]AosElementAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Poison
[/SIZE][SIZE=2][COLOR=#006400]};
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]randomizeOrder [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]for[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2][COLOR=#006400]; [/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400]< [/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Length[/SIZE][SIZE=2][COLOR=#006400]; [/COLOR][/SIZE][SIZE=2]i[/SIZE][SIZE=2][COLOR=#006400]++ )
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]rand [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]Utility[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Random[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Length [/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][SIZE=2]AosElementAttribute temp [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400][[/COLOR][/SIZE][SIZE=2]i[/SIZE][SIZE=2][COLOR=#006400]];
[/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400][[/COLOR][/SIZE][SIZE=2]i[/SIZE][SIZE=2][COLOR=#006400]] = [/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400][[/COLOR][/SIZE][SIZE=2]rand[/SIZE][SIZE=2][COLOR=#006400]];
[/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400][[/COLOR][/SIZE][SIZE=2]rand[/SIZE][SIZE=2][COLOR=#006400]] = [/COLOR][/SIZE][SIZE=2]temp[/SIZE][SIZE=2][COLOR=#006400];
}
}
 
[/COLOR][/SIZE][SIZE=2][COLOR=#008000]/*
totalDamage = AssignElementalDamage( weapon, AosElementAttribute.Cold, totalDamage );
totalDamage = AssignElementalDamage( weapon, AosElementAttribute.Energy, totalDamage );
totalDamage = AssignElementalDamage( weapon, AosElementAttribute.Fire, totalDamage );
totalDamage = AssignElementalDamage( weapon, AosElementAttribute.Poison, totalDamage );
weapon.AosElementDamages[AosElementAttribute.Physical] = 100 - totalDamage;
* */
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]for[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2][COLOR=#006400]; [/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400]< [/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Length[/SIZE][SIZE=2][COLOR=#006400]; [/COLOR][/SIZE][SIZE=2]i[/SIZE][SIZE=2][COLOR=#006400]++ )
[/COLOR][/SIZE][SIZE=2]totalDamage [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]AssignElementalDamage[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]weapon[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400][[/COLOR][/SIZE][SIZE=2]i[/SIZE][SIZE=2][COLOR=#006400]], [/COLOR][/SIZE][SIZE=2]totalDamage [/SIZE][SIZE=2][COLOR=#006400]);
 
[/COLOR][/SIZE][SIZE=2][COLOR=#008000]//Order is Cold, Energy, Fire, Poison -> Physical left
//Cannot be looped, AoselementAttribute is 'out of order'
[/COLOR][/SIZE][SIZE=2]weapon[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Hue [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]weapon[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]GetElementalDamageHue[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]();
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]private [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/COLOR][/SIZE][SIZE=2][COLOR=#191970]AssignElementalDamage[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]BaseWeapon weapon[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosElementAttribute attr[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]totalDamage [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]totalDamage [/SIZE][SIZE=2][COLOR=#006400]<= [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0 [/COLOR][/SIZE][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][SIZE=2][COLOR=#000080]return [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]random [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]Utility[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Random[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( ([/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400])([/COLOR][/SIZE][SIZE=2]totalDamage[/SIZE][SIZE=2][COLOR=#006400]/[/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10[/COLOR][/SIZE][SIZE=2][COLOR=#006400]) + [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]) * [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]weapon[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]AosElementDamages[/SIZE][SIZE=2][COLOR=#006400][[/COLOR][/SIZE][SIZE=2]attr[/SIZE][SIZE=2][COLOR=#006400]] = [/COLOR][/SIZE][SIZE=2]random[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2][COLOR=#000080]return [/COLOR][/SIZE][SIZE=2][COLOR=#006400]([/COLOR][/SIZE][SIZE=2]totalDamage [/SIZE][SIZE=2][COLOR=#006400]- [/COLOR][/SIZE][SIZE=2]random[/SIZE][SIZE=2][COLOR=#006400]);
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]public [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2]SlayerName [/SIZE][B][SIZE=2][COLOR=#191970]GetRandomSlayer[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]()
{
[/COLOR][/SIZE][SIZE=2][COLOR=#008000]// [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]TODO[/B][/COLOR][/SIZE][SIZE=2][COLOR=#008000]: Check random algorithm on OSI
[/COLOR][/SIZE][SIZE=2]SlayerGroup[/SIZE][SIZE=2][COLOR=#006400][] [/COLOR][/SIZE][SIZE=2]groups [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]SlayerGroup[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Groups[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]groups[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Length [/SIZE][SIZE=2][COLOR=#006400]== [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0 [/COLOR][/SIZE][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][SIZE=2][COLOR=#000080]return [/COLOR][/SIZE][SIZE=2]SlayerName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]None[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]SlayerGroup group [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]groups[/SIZE][SIZE=2][COLOR=#006400][[/COLOR][/SIZE][SIZE=2]Utility[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Random[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]groups[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Length [/SIZE][SIZE=2][COLOR=#006400]-[/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1 [/COLOR][/SIZE][SIZE=2][COLOR=#006400])]; [/COLOR][/SIZE][SIZE=2][COLOR=#008000]//-1 To Exclude the Fey Slayer which appears ONLY on a certain artifact.
[/COLOR][/SIZE][SIZE=2]SlayerEntry entry[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]> [/COLOR][/SIZE][SIZE=2]Utility[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Random[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]100 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]) ) [/COLOR][/SIZE][SIZE=2][COLOR=#008000]// 10% chance to do super slayer
[/COLOR][/SIZE][SIZE=2][COLOR=#006400]{
[/COLOR][/SIZE][SIZE=2]entry [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]group[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Super[/SIZE][SIZE=2][COLOR=#006400];
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]else
[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]{
[/COLOR][/SIZE][SIZE=2]SlayerEntry[/SIZE][SIZE=2][COLOR=#006400][] [/COLOR][/SIZE][SIZE=2]entries [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]group[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Entries[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]entries[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Length [/SIZE][SIZE=2][COLOR=#006400]== [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0 [/COLOR][/SIZE][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][SIZE=2][COLOR=#000080]return [/COLOR][/SIZE][SIZE=2]SlayerName[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]None[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]entry [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]entries[/SIZE][SIZE=2][COLOR=#006400][[/COLOR][/SIZE][SIZE=2]Utility[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Random[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]entries[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Length [/SIZE][SIZE=2][COLOR=#006400])];
}
[/COLOR][/SIZE][SIZE=2][COLOR=#000080]return [/COLOR][/SIZE][SIZE=2]entry[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Name[/SIZE][SIZE=2][COLOR=#006400];
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]public [/B][/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttributesTo[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]BaseArmor armor [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][SIZE=2]CraftResourceInfo resInfo [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]CraftResources[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]GetInfo[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]m_Resource [/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]resInfo [/SIZE][SIZE=2][COLOR=#006400]== [/COLOR][/SIZE][B][SIZE=2]null [/B][/SIZE][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][SIZE=2][COLOR=#000080]return[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]CraftAttributeInfo attrs [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]resInfo[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]AttributeInfo[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]attrs [/SIZE][SIZE=2][COLOR=#006400]== [/COLOR][/SIZE][B][SIZE=2]null [/B][/SIZE][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][SIZE=2][COLOR=#000080]return[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]attributeCount [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]Utility[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]RandomMinMax[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]RunicMinAttributes[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]RunicMaxAttributes [/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]min [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]RunicMinIntensity[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]max [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]attrs[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]RunicMaxIntensity[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttributesTo[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]armor[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b]true[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]attributeCount[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max [/SIZE][SIZE=2][COLOR=#006400]);
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]public [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttributesTo[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]BaseArmor armor[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]attributeCount[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]max [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttributesTo[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]armor[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b]false[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]attributeCount[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max [/SIZE][SIZE=2][COLOR=#006400]);
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]public [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttributesTo[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]BaseArmor armor[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]bool [/B][/COLOR][/SIZE][SIZE=2]isRunicTool[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]luckChance[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]attributeCount[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]max [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][SIZE=2]m_IsRunicTool [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]isRunicTool[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]m_LuckChance [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]luckChance[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]AosAttributes primary [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]armor[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Attributes[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]AosArmorAttributes secondary [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]armor[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]ArmorAttributes[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]m_Props[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]SetAll[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b]false [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]bool [/B][/COLOR][/SIZE][SIZE=2]isShield [/SIZE][SIZE=2][COLOR=#006400]= ( [/COLOR][/SIZE][SIZE=2]armor [/SIZE][B][SIZE=2][COLOR=#008b8b]is [/B][/COLOR][/SIZE][SIZE=2]BaseShield [/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]baseCount [/SIZE][SIZE=2][COLOR=#006400]= ( [/COLOR][/SIZE][SIZE=2]isShield [/SIZE][SIZE=2][COLOR=#006400]? [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]7 [/COLOR][/SIZE][SIZE=2]: [/SIZE][SIZE=2][COLOR=#00008b]20 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]baseOffset [/SIZE][SIZE=2][COLOR=#006400]= ( [/COLOR][/SIZE][SIZE=2]isShield [/SIZE][SIZE=2][COLOR=#006400]? [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0 [/COLOR][/SIZE][SIZE=2]: [/SIZE][SIZE=2][COLOR=#00008b]4 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( ![/COLOR][/SIZE][SIZE=2]isShield [/SIZE][SIZE=2][COLOR=#006400]&& [/COLOR][/SIZE][SIZE=2]armor[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]MeditationAllowance [/SIZE][SIZE=2][COLOR=#006400]== [/COLOR][/SIZE][SIZE=2]ArmorMeditationAllowance[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]All [/SIZE][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][SIZE=2]m_Props[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Set[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]3[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b]true [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#008000]// remove mage armor from possible properties
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]for [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2][COLOR=#006400]; [/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400]< [/COLOR][/SIZE][SIZE=2]attributeCount[/SIZE][SIZE=2][COLOR=#006400]; ++[/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]random [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]GetUniqueRandom[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]baseCount [/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]random [/SIZE][SIZE=2][COLOR=#006400]== -[/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1 [/COLOR][/SIZE][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]random [/SIZE][SIZE=2][COLOR=#006400]+= [/COLOR][/SIZE][SIZE=2]baseOffset[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]switch [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]random [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][SIZE=2][COLOR=#008000]/* Begin Sheilds */
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]SpellChanneling[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]DefendChance[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]AttackChance[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]3[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]CastSpeed[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2][COLOR=#008000]/* Begin Armor */
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]4[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosArmorAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]LowerStatReq[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]100[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]5[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosArmorAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]SelfRepair[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]5 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]6[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosArmorAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]DurabilityBonus[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]100[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2][COLOR=#008000]/* End Shields */
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]7[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosArmorAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]MageArmor[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]8[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]RegenHits[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]9[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]RegenStam[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]3 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]RegenMana[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]11[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]NightSight[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]12[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]BonusHits[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]5 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]13[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]BonusStam[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]8 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]14[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]BonusMana[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]8 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]LowerManaCost[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]8 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]16[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]LowerRegCost[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]20 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]17[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Luck[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]100 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]18[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]ReflectPhysical[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]19[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyResistance[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]armor[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]ResistanceType[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Physical[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]20[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyResistance[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]armor[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]ResistanceType[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Fire[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]21[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyResistance[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]armor[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]ResistanceType[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Cold[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]22[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyResistance[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]armor[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]ResistanceType[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Poison[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]23[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyResistance[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]armor[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]ResistanceType[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Energy[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2][COLOR=#008000]/* End Armor */
[/COLOR][/SIZE][SIZE=2][COLOR=#006400]}
}
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]public [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttributesTo[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]BaseHat hat[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]attributeCount[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]max [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttributesTo[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]hat[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b]false[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]attributeCount[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max [/SIZE][SIZE=2][COLOR=#006400]);
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]public [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttributesTo[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]BaseHat hat[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]bool [/B][/COLOR][/SIZE][SIZE=2]isRunicTool[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]luckChance[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]attributeCount[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]max [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][SIZE=2]m_IsRunicTool [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]isRunicTool[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]m_LuckChance [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]luckChance[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]AosAttributes primary [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]hat[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Attributes[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]AosArmorAttributes secondary [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]hat[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]ClothingAttributes[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]AosElementAttributes resists [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]hat[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Resistances[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]m_Props[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]SetAll[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b]false [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]for [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2][COLOR=#006400]; [/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400]< [/COLOR][/SIZE][SIZE=2]attributeCount[/SIZE][SIZE=2][COLOR=#006400]; ++[/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]random [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]GetUniqueRandom[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]19 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]random [/SIZE][SIZE=2][COLOR=#006400]== -[/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1 [/COLOR][/SIZE][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]switch [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]random [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]ReflectPhysical[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]RegenHits[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]RegenStam[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]3 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]3[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]RegenMana[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]4[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]NightSight[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]5[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]BonusHits[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]5 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]6[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]BonusStam[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]8 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]7[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]BonusMana[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]8 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]8[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]LowerManaCost[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]8 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]9[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]LowerRegCost[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]20 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Luck[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]100 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]11[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosArmorAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]LowerStatReq[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]100[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]12[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosArmorAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]SelfRepair[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]5 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]13[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]secondary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosArmorAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]DurabilityBonus[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]100[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]14[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]resists[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosElementAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Physical[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]resists[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosElementAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Fire[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]16[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]resists[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosElementAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Cold[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]17[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]resists[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosElementAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Poison[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]18[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]resists[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosElementAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Energy[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
}
}
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]public [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttributesTo[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]BaseJewel jewelry[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]attributeCount[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]max [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttributesTo[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]jewelry[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b]false[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]attributeCount[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max [/SIZE][SIZE=2][COLOR=#006400]);
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]public [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttributesTo[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]BaseJewel jewelry[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]bool [/B][/COLOR][/SIZE][SIZE=2]isRunicTool[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]luckChance[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]attributeCount[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]max [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][SIZE=2]m_IsRunicTool [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]isRunicTool[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]m_LuckChance [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]luckChance[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]AosAttributes primary [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]jewelry[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Attributes[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]AosElementAttributes resists [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]jewelry[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Resistances[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]AosSkillBonuses skills [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]jewelry[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]SkillBonuses[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]m_Props[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]SetAll[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b]false [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]for [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2][COLOR=#006400]; [/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400]< [/COLOR][/SIZE][SIZE=2]attributeCount[/SIZE][SIZE=2][COLOR=#006400]; ++[/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]random [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]GetUniqueRandom[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]24 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]random [/SIZE][SIZE=2][COLOR=#006400]== -[/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1 [/COLOR][/SIZE][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]switch [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]random [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]resists[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosElementAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Physical[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]resists[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosElementAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Fire[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]resists[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosElementAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Cold[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]3[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]resists[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosElementAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Poison[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]4[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]resists[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosElementAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Energy[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]5[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]WeaponDamage[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]25 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]6[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]DefendChance[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]7[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]AttackChance[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]8[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]BonusStr[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]8 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]9[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]BonusDex[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]8 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]BonusInt[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]8 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]11[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]EnhancePotions[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]5[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]25[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]5 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]12[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]CastSpeed[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]13[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]CastRecovery[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]3 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]14[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]LowerManaCost[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]8 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]LowerRegCost[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]20 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]16[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Luck[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]100 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]17[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]SpellDamage[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]12 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]18[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]NightSight[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]19[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplySkillBonus[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]skills[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]20[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplySkillBonus[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]skills[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]21[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplySkillBonus[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]skills[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]22[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplySkillBonus[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]skills[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]3[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]23[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplySkillBonus[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]skills[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]4[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
}
}
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]public [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttributesTo[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]Spellbook spellbook[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]attributeCount[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]max [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttributesTo[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]spellbook[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b]false[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]attributeCount[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max [/SIZE][SIZE=2][COLOR=#006400]);
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]public [/B][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a]static [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttributesTo[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]Spellbook spellbook[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]bool [/B][/COLOR][/SIZE][SIZE=2]isRunicTool[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]luckChance[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]attributeCount[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]max [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][SIZE=2]m_IsRunicTool [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]isRunicTool[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]m_LuckChance [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]luckChance[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]AosAttributes primary [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]spellbook[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Attributes[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]AosSkillBonuses skills [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2]spellbook[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]SkillBonuses[/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][SIZE=2]m_Props[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]SetAll[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b]false [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]for [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2][COLOR=#006400]; [/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400]< [/COLOR][/SIZE][SIZE=2]attributeCount[/SIZE][SIZE=2][COLOR=#006400]; ++[/COLOR][/SIZE][SIZE=2]i [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]random [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]GetUniqueRandom[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]16 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]random [/SIZE][SIZE=2][COLOR=#006400]== -[/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1 [/COLOR][/SIZE][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]switch [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]random [/SIZE][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2]:
[/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2]:
[/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2]:
[/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]3[/COLOR][/SIZE][SIZE=2]:
[/SIZE][SIZE=2][COLOR=#006400]{
[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]BonusInt[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]8 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]for [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][B][SIZE=2][COLOR=#ff0000]int [/B][/COLOR][/SIZE][SIZE=2]j [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2][COLOR=#006400]; [/COLOR][/SIZE][SIZE=2]j [/SIZE][SIZE=2][COLOR=#006400]< [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]4[/COLOR][/SIZE][SIZE=2][COLOR=#006400]; ++[/COLOR][/SIZE][SIZE=2]j [/SIZE][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][SIZE=2]m_Props[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]Set[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]j[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b]true [/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
}
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]4[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]BonusMana[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]8 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]5[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]CastSpeed[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]6[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]CastRecovery[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]3 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]7[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]SpellDamage[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]12 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]8[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplySkillBonus[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]skills[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]0[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]9[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplySkillBonus[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]skills[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]10[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplySkillBonus[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]skills[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]11[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplySkillBonus[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]skills[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]3[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]12[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]LowerRegCost[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]20 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]13[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]LowerManaCost[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]8 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]14[/COLOR][/SIZE][SIZE=2]: [/SIZE][B][SIZE=2][COLOR=#191970]ApplyAttribute[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][SIZE=2]primary[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]min[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]max[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2]AosAttribute[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]RegenMana[/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]1[/COLOR][/SIZE][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][SIZE=2][COLOR=#00008b]2 [/COLOR][/SIZE][SIZE=2][COLOR=#006400]); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
[/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff]case [/B][/COLOR][/SIZE][SIZE=2][COLOR=#00008b]15[/COLOR][/SIZE][SIZE=2]: spellbook[/SIZE][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][SIZE=2]Slayer [/SIZE][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][B][SIZE=2][COLOR=#191970]GetRandomSlayer[/B][/COLOR][/SIZE][SIZE=2][COLOR=#006400](); [/COLOR][/SIZE][SIZE=2][COLOR=#000080]break[/COLOR][/SIZE][SIZE=2][COLOR=#006400];
}
}
}
}
}
[/COLOR][/SIZE]
The problem lies somewhere else.
 

psycomantis

Wanderer
hmm yea the text you quoted from me really diddnt solve anything... still it was dragonladys baserunictool.cs that made it work for me.. compare the one in the 2.0 package to yours -> has like 6k difference in size (wich i honestly do not know where they come from and was too lazy to look yet)

... anyways i am going to change your scripts to actually also hue the fired arrows (atleast gonna try) maybe wanna work on this togehter ?
 
Top