GangPung
°¡ÀÔÀÏ: 2003³â 12¿ù 22ÀÏ
°Ô½Ã¹°: 322
ÁÖ ¼Ò: ´ëÇѹα¹
|
±Û ÀÛ¼º½Ã°£ : 2004-01-03 Åä 3:40 pm Á¦¸ñ: ¸÷ µå¶ø ¾ÆÀÌÅÛ¿¡ ´ëÇØ¼... |
|
|
¾ÆÀÌÅÛÀ» Ưº°ÇÑ ¸÷(Çϳª¶Ç´Â µÑÁ¤µµÀÇ ¸÷)¿¡ Ãß°¡ÇϽǶ§´Â ½±°Ô ¾ÆÀÌÅÛÀ» Ãß°¡ÇϽǼö ÀÖ½À´Ï´Ù.
¿¹¸¦ µé¾î ¼³¸íÀ» µå¸®°íÀÚÇÕ´Ï´Ù.
Scripts\Mobiles\Monsters\Humanoid\Magic\Balron.cs
ÄÚµå :
switch ( Utility.Random( 8 ))
{
case 0: PackItem( new SpidersSilk( 3 ) ); break;
case 1: PackItem( new BlackPearl( 3 ) ); break;
case 2: PackItem( new Bloodmoss( 3 ) ); break;
case 3: PackItem( new Garlic( 3 ) ); break;
case 4: PackItem( new MandrakeRoot( 3 ) ); break;
case 5: PackItem( new Nightshade( 3 ) ); break;
case 6: PackItem( new SulfurousAsh( 3 ) ); break;
case 7: PackItem( new Ginseng( 3 ) ); break;
}
PackItem( new Longsword() );
PackGold( 600, 800 );
PackScroll( 2, 8 );
PackArmor( 2, 5 );
PackWeapon( 3, 5 );
PackWeapon( 5, 5 );
PackSlayer();
¹ß·Ð¿¡ ´ëÇÑ µå¶ø¾ÆÀÌÅÜ Á¾·ùÀÔ´Ï´Ù.
ÄÚµå :
switch ( Utility.Random( 8 ))
À̺κÐÀº ½ºÀ§Ä¡¸¦ ÀÌ¿ëÇØ¼ ¾Æ·¡ÀÇ 8°¡Áö Á¾·ù¿¡ ´ëÇØ¼ ÇѰ¡Áö¸¸À» ·£´ýÀ¸·Î ¼±ÅÃÇϴ°ÍÀÔ´Ï´Ù.
·£´ý ¾ÆÀÌÅÛÀ» Ãß°¡Çϰí½ÍÀ¸½Ã¸é ¾Æ·¡¿Í °°ÀÌ ÇØÁÖ¼¼¿ä.
ÄÚµå :
switch ( Utility.Random( 9 )) //9Á¾·ùÀ̹ǷΠ·£´ý 9·Î ¼öÁ¤
...
...
case 8: PackItem( new ¾ÆÀÌÅÛÀ̸§( ¼ö·® ) ); break; //Ãß°¡
¶Ç´Â PackItem( new Longsword() ); ¿Í °°ÀÌ
PackItem( new ¾ÆÀÌÅÛ¸í() ); À¸·Î Ãß°¡ÇϽøéµË´Ï´Ù.
ÇÏÁö¸¸ ¿©·¯Á¾·ù¿¡ ´ëÇØ¼ ±×·ìÀ¸·Î ¾ÆÀÌÅÛÀ» Ãß°¡ÇϽðíÀÚÇÑ´Ù¸é...
Á¶±Ý º¹ÀâÇØÁý´Ï´Ù. õõÈ÷ ¾Æ·¡¸¦ ºÁÁÖ¼¼¿ä.
ÄÚµå :
PackItem( new Longsword() );
PackGold( 600, 800 );
PackScroll( 2, 8 );
PackArmor( 2, 5 );
PackWeapon( 3, 5 );
PackWeapon( 5, 5 );
PackSlayer();
À§ ÄÚµå´Â PackScrollÀº ½ºÅ©·Ñ Á¾·ù, PackArmorÀº ¾Æ¸ÓÁ¾·ùµé·Î ¹¿©Áø °ÍÀ» ÀǹÌÇÕ´Ï´Ù.
µÚ¿¡ ¼ýÀÚµéÀÌ ¹«¾ùÀ» ÀǹÌÇÏ´ÂÁö¿¡ ´ëÇØ¼ º¸½Ç·Á¸é ¸ÕÀú...
¿¹¸¦ µé¾î PackArmor( 2, 5 ); ¿¡ ´ëÇØ¼ ¼³¸íÇϰڽÀ´Ï´Ù.
PackArmor( 2, 5 ); ¾Æ¸Ó·ù±×·ì ¾ÆÀÌÅÛ Áß¿¡¼ 2´Â ¾ÆÀÌÅÛÀÇ ÃÖ¼Ò·¹º§, 5´Â ÃÖ°í·¹º§ÀÔ´Ï´Ù.
¾ÆÀÌÅÛÀÇ ÃÖ¼Ò, ÃÖ°í·¹º§ÀÌ ¹«¾ùÀΰ¡¸¦ ¸»¾¸µå¸®±âÀü¿¡
Scripts\Engines\AI\Creature\BaseCreature.cs ¸¦ ¿¾îº¸¼¼¿ä
¶óÀÎ 2827
ÄÚµå :
public bool PackArmor( int minLevel, int maxLevel )
{
return PackArmor( minLevel, maxLevel, 1.0 );
}
public bool PackArmor( int minLevel, int maxLevel, double chance )
{
if ( chance <= Utility.RandomDouble() )
return false;
Cap( ref minLevel, 0, 5 );
Cap( ref maxLevel, 0, 5 );
if ( Core.AOS )
{
Item item = Loot.RandomArmorOrShieldOrJewelry();
if ( item == null )
return false;
int attributeCount, min, max;
GetRandomAOSStats( minLevel, maxLevel, out attributeCount, out min, out max );
if ( item is BaseArmor )
BaseRunicTool.ApplyAttributesTo( (BaseArmor)item, attributeCount, min, max );
else if ( item is BaseJewel )
BaseRunicTool.ApplyAttributesTo( (BaseJewel)item, attributeCount, min, max );
PackItem( item );
}
else
{
BaseArmor armor = Loot.RandomArmorOrShield();
if ( armor == null )
return false;
armor.ProtectionLevel = (ArmorProtectionLevel)RandomMinMaxScaled( minLevel, maxLevel );
armor.Durability = (ArmorDurabilityLevel)RandomMinMaxScaled( minLevel, maxLevel );
PackItem( armor );
}
return true;
}
Loot.RandomArmorOrShieldOrJewelry() ¶Ç´Â Loot.RandomArmorOrShield() ¶ó´Â ºÎºÐÀ» º¸½Ç¼ö ÀÖ½À´Ï´Ù.
¸ÕÀú À§ ¼Ò½º¿¡¼ ¾ÆÀÌÅÛ ¹À½À» »ìÇǰíÀÚÇÕ´Ï´Ù.
ÀÌ ºÎºÐÀº ´Ù½Ã
Scripts\Misc\Loot.cs ¶ó´Â ÆÄÀÏÀ» ¿¾îº¸½Ã¸é ¾Æ·¡ÀÇ ¶óÀο¡¼ º¸½Ã´Â ¹Ù¿Í°°ÀÌ
m_ArmorTypes, m_ShieldTypes, m_JewelryTypes ÀÌ ¼¼°¡Áö ŸÀÔÀ¸·Î ´Ù½Ã ¹¾îÁ®Àִ°ÍÀ»
È®ÀÎÇÒ¼ö ÀÖ½À´Ï´Ù.
¶óÀÎ 183
ÄÚµå :
public static Item RandomArmorOrShieldOrJewelry()
{
return Construct( m_ArmorTypes, m_ShieldTypes, m_JewelryTypes );
}
´Ù½Ã m_ArmorTypes ¹À½ÀÌ ¾î¶»°Ô ±¸¼ºµÇ¾îÀÖ³ª¸¦ È®ÀÎÇϼžßÇÕ´Ï´Ù.
¶óÀÎ 39
ÄÚµå :
private static Type[] m_ArmorTypes = new Type[]
{
typeof( BoneArms ), typeof( BoneChest ), typeof( BoneGloves ),
typeof( BoneLegs ), typeof( BoneHelm ), typeof( ChainChest ),
typeof( ChainLegs ), typeof( ChainCoif ), typeof( Bascinet ),
typeof( CloseHelm ), typeof( Helmet ), typeof( NorseHelm ),
typeof( OrcHelm ), typeof( FemaleLeatherChest ), typeof( LeatherArms ),
typeof( LeatherBustierArms ), typeof( LeatherChest ), typeof( LeatherGloves ),
typeof( LeatherGorget ), typeof( LeatherLegs ), typeof( LeatherShorts ),
typeof( LeatherSkirt ), typeof( LeatherCap ), typeof( FemalePlateChest ),
typeof( PlateArms ), typeof( PlateChest ), typeof( PlateGloves ),
typeof( PlateGorget ), typeof( PlateHelm ), typeof( PlateLegs ),
typeof( RingmailArms ), typeof( RingmailChest ), typeof( RingmailGloves ),
typeof( RingmailLegs ), typeof( FemaleStuddedChest ), typeof( StuddedArms ),
typeof( StuddedBustierArms ), typeof( StuddedChest ), typeof( StuddedGloves ),
typeof( StuddedGorget ), typeof( StuddedLegs )
};
Áï m_ArmorTypes Àº À§¿¡¼ º¸½Ã´Â ¹Ù¿Í °°ÀÌ ¿ï¿Â»óÀÇ °©¿Ê·ùµé·Î ¹¾îÁ®Àִ°ÍÀ» È®ÀÎÇϽǼö ÀÖ½À´Ï´Ù.
ÀÌÁ¨ PackArmor( 2, 5 ); ¿¡¼ 2,5¿¡ ÇØ´çµÇ´Â ¾ÆÀÌÅÛÀÇ ·¹º§Àº
Scripts\Items\Armor\ArmorEnums.cs À» ¿¾îº¸½Ã¸é
ÄÚµå :
public enum ArmorDurabilityLevel
{
Regular,
Durable,
Substantial,
Massive,
Fortified,
Indestructible
}
public enum ArmorProtectionLevel
{
Regular,
Defense,
Guarding,
Hardening,
Fortification,
Invulnerability,
}
ArmorDurabilityLevel, ArmorProtectionLevel ¿¡ ´ëÇÑ ·¹º§°ªÀ» ¸»ÇÏ´Â °ÍÀÔ´Ï´Ù.
PackArmor( 2, 5 ); Àº ArmorDurabilityLevel ¿Í ArmorProtectionLevel ·¹º§ÀÌ 2¿¡¼ 5¿¡ ·£´ýÀ¸·Î »ý¼ºµË´Ï´Ù.
¿©±â±îÁö ¸÷¿¡¼ µå¶øµÇ´Â ¾ÆÀÌÅÛ¿¡ ´ëÇØ¼ ¾Ë¾Æº¸¾Ò½À´Ï´Ù.
ÀڽŸ¸ÀÇ ¾ÆÀÌÅÛ ±×·ìÀ» »ý¼ºÇϽǶ§´Â ¿©·¯°¡Áö º¯¼ö¿¡ ´ëÇØ¼ ¸¹ÀÌ »ý°¢À» ÇϼžßÇÕ´Ï´Ù.
»õ·Î¿î ±×·ì»ý¼º¿¡ ´ëÇØ¼´Â Â÷ÈÄ¿¡ ¼³¸íÀ» µå¸®°Ú½À´Ï´Ù. |
|