Removes implicit types
This commit is contained in:
parent
33f5e77a24
commit
04b4cfe75b
261 changed files with 1329 additions and 1329 deletions
|
|
@ -62,9 +62,9 @@ namespace Server.Engines.Harvest
|
|||
fish.ConsumedPerFeluccaHarvest = 1;
|
||||
|
||||
// The fishing
|
||||
fish.EffectActions = new int[]{ 12 };
|
||||
fish.EffectActions = new[]{ 12 };
|
||||
fish.EffectSounds = new int[0];
|
||||
fish.EffectCounts = new int[]{ 1 };
|
||||
fish.EffectCounts = new[]{ 1 };
|
||||
fish.EffectDelay = TimeSpan.Zero;
|
||||
fish.EffectSoundDelay = TimeSpan.FromSeconds( 8.0 );
|
||||
|
||||
|
|
@ -75,12 +75,12 @@ namespace Server.Engines.Harvest
|
|||
fish.PackFullMessage = 503176; // You do not have room in your backpack for a fish.
|
||||
fish.ToolBrokeMessage = 503174; // You broke your fishing pole.
|
||||
|
||||
res = new HarvestResource[]
|
||||
res = new[]
|
||||
{
|
||||
new HarvestResource( 00.0, 00.0, 100.0, 1043297, typeof( Fish ) )
|
||||
};
|
||||
|
||||
veins = new HarvestVein[]
|
||||
veins = new[]
|
||||
{
|
||||
new HarvestVein( 100.0, 0.0, res[0], null )
|
||||
};
|
||||
|
|
@ -90,7 +90,7 @@ namespace Server.Engines.Harvest
|
|||
|
||||
if ( Core.ML )
|
||||
{
|
||||
fish.BonusResources = new BonusHarvestResource[]
|
||||
fish.BonusResources = new[]
|
||||
{
|
||||
new BonusHarvestResource( 0, 99.4, null, null ), //set to same chance as mining ml gems
|
||||
new BonusHarvestResource( 80.0, .6, 1072597, typeof( WhitePearl ) )
|
||||
|
|
@ -123,7 +123,7 @@ namespace Server.Engines.Harvest
|
|||
}
|
||||
}
|
||||
|
||||
private static MutateEntry[] m_MutateTable = new MutateEntry[]
|
||||
private static MutateEntry[] m_MutateTable = new[]
|
||||
{
|
||||
new MutateEntry( 80.0, 80.0, 4080.0, true, typeof( SpecialFishingNet ) ),
|
||||
new MutateEntry( 80.0, 80.0, 4080.0, true, typeof( BigFish ) ),
|
||||
|
|
@ -254,7 +254,7 @@ namespace Server.Engines.Harvest
|
|||
{
|
||||
case 0: // Body parts
|
||||
{
|
||||
int[] list = new int[]
|
||||
int[] list = new[]
|
||||
{
|
||||
0x1CDD, 0x1CE5, // arm
|
||||
0x1CE0, 0x1CE8, // torso
|
||||
|
|
@ -267,7 +267,7 @@ namespace Server.Engines.Harvest
|
|||
}
|
||||
case 1: // Bone parts
|
||||
{
|
||||
int[] list = new int[]
|
||||
int[] list = new[]
|
||||
{
|
||||
0x1AE0, 0x1AE1, 0x1AE2, 0x1AE3, 0x1AE4, // skulls
|
||||
0x1B09, 0x1B0A, 0x1B0B, 0x1B0C, 0x1B0D, 0x1B0E, 0x1B0F, 0x1B10, // bone piles
|
||||
|
|
@ -303,7 +303,7 @@ namespace Server.Engines.Harvest
|
|||
}
|
||||
case 6: // Misc
|
||||
{
|
||||
int[] list = new int[]
|
||||
int[] list = new[]
|
||||
{
|
||||
0x1EB5, // unfinished barrel
|
||||
0xA2A, // stool
|
||||
|
|
@ -550,7 +550,7 @@ namespace Server.Engines.Harvest
|
|||
return true;
|
||||
}
|
||||
|
||||
private static int[] m_WaterTiles = new int[]
|
||||
private static int[] m_WaterTiles = new[]
|
||||
{
|
||||
0x00A8, 0x00AB,
|
||||
0x0136, 0x0137,
|
||||
|
|
|
|||
|
|
@ -57,9 +57,9 @@ namespace Server.Engines.Harvest
|
|||
lumber.ConsumedPerFeluccaHarvest = 20;
|
||||
|
||||
// The chopping effect
|
||||
lumber.EffectActions = new int[]{ 13 };
|
||||
lumber.EffectSounds = new int[]{ 0x13E };
|
||||
lumber.EffectCounts = (Core.AOS ? new int[]{ 1 } : new int[]{ 1, 2, 2, 2, 3 });
|
||||
lumber.EffectActions = new[]{ 13 };
|
||||
lumber.EffectSounds = new[]{ 0x13E };
|
||||
lumber.EffectCounts = (Core.AOS ? new[]{ 1 } : new[]{ 1, 2, 2, 2, 3 });
|
||||
lumber.EffectDelay = TimeSpan.FromSeconds( 1.6 );
|
||||
lumber.EffectSoundDelay = TimeSpan.FromSeconds( 0.9 );
|
||||
|
||||
|
|
@ -71,7 +71,7 @@ namespace Server.Engines.Harvest
|
|||
|
||||
if ( Core.ML )
|
||||
{
|
||||
res = new HarvestResource[]
|
||||
res = new[]
|
||||
{
|
||||
new HarvestResource( 00.0, 00.0, 100.0, 1072540, typeof( Log ) ),
|
||||
new HarvestResource( 65.0, 25.0, 105.0, 1072541, typeof( OakLog ) ),
|
||||
|
|
@ -83,7 +83,7 @@ namespace Server.Engines.Harvest
|
|||
};
|
||||
|
||||
|
||||
veins = new HarvestVein[]
|
||||
veins = new[]
|
||||
{
|
||||
new HarvestVein( 49.0, 0.0, res[0], null ), // Ordinary Logs
|
||||
new HarvestVein( 30.0, 0.5, res[1], res[0] ), // Oak
|
||||
|
|
@ -94,7 +94,7 @@ namespace Server.Engines.Harvest
|
|||
new HarvestVein( 01.0, 0.5, res[6], res[0] ), // Frostwood
|
||||
};
|
||||
|
||||
lumber.BonusResources = new BonusHarvestResource[]
|
||||
lumber.BonusResources = new[]
|
||||
{
|
||||
new BonusHarvestResource( 0, 83.9, null, null ), //Nothing
|
||||
new BonusHarvestResource( 100, 10.0, 1072548, typeof( BarkFragment ) ),
|
||||
|
|
@ -106,12 +106,12 @@ namespace Server.Engines.Harvest
|
|||
}
|
||||
else
|
||||
{
|
||||
res = new HarvestResource[]
|
||||
res = new[]
|
||||
{
|
||||
new HarvestResource( 00.0, 00.0, 100.0, 500498, typeof( Log ) )
|
||||
};
|
||||
|
||||
veins = new HarvestVein[]
|
||||
veins = new[]
|
||||
{
|
||||
new HarvestVein( 100.0, 0.0, res[0], null )
|
||||
};
|
||||
|
|
@ -182,7 +182,7 @@ namespace Server.Engines.Harvest
|
|||
}
|
||||
|
||||
#region Tile lists
|
||||
private static int[] m_TreeTiles = new int[]
|
||||
private static int[] m_TreeTiles = new[]
|
||||
{
|
||||
0x4CCA, 0x4CCB, 0x4CCC, 0x4CCD, 0x4CD0, 0x4CD3, 0x4CD6, 0x4CD8,
|
||||
0x4CDA, 0x4CDD, 0x4CE0, 0x4CE3, 0x4CE6, 0x4CF8, 0x4CFB, 0x4CFE,
|
||||
|
|
|
|||
|
|
@ -60,9 +60,9 @@ namespace Server.Engines.Harvest
|
|||
oreAndStone.ConsumedPerFeluccaHarvest = 2;
|
||||
|
||||
// The digging effect
|
||||
oreAndStone.EffectActions = new int[]{ 11 };
|
||||
oreAndStone.EffectSounds = new int[]{ 0x125, 0x126 };
|
||||
oreAndStone.EffectCounts = new int[]{ 1 };
|
||||
oreAndStone.EffectActions = new[]{ 11 };
|
||||
oreAndStone.EffectSounds = new[]{ 0x125, 0x126 };
|
||||
oreAndStone.EffectCounts = new[]{ 1 };
|
||||
oreAndStone.EffectDelay = TimeSpan.FromSeconds( 1.6 );
|
||||
oreAndStone.EffectSoundDelay = TimeSpan.FromSeconds( 0.9 );
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ namespace Server.Engines.Harvest
|
|||
oreAndStone.PackFullMessage = 1010481; // Your backpack is full, so the ore you mined is lost.
|
||||
oreAndStone.ToolBrokeMessage = 1044038; // You have worn out your tool!
|
||||
|
||||
res = new HarvestResource[]
|
||||
res = new[]
|
||||
{
|
||||
new HarvestResource( 00.0, 00.0, 100.0, 1007072, typeof( IronOre ), typeof( Granite ) ),
|
||||
new HarvestResource( 65.0, 25.0, 105.0, 1007073, typeof( DullCopperOre ), typeof( DullCopperGranite ), typeof( DullCopperElemental ) ),
|
||||
|
|
@ -87,7 +87,7 @@ namespace Server.Engines.Harvest
|
|||
new HarvestResource( 99.0, 59.0, 139.0, 1007080, typeof( ValoriteOre ), typeof( ValoriteGranite ), typeof( ValoriteElemental ) )
|
||||
};
|
||||
|
||||
veins = new HarvestVein[]
|
||||
veins = new[]
|
||||
{
|
||||
new HarvestVein( 49.6, 0.0, res[0], null ), // Iron
|
||||
new HarvestVein( 11.2, 0.5, res[1], res[0] ), // Dull Copper
|
||||
|
|
@ -105,7 +105,7 @@ namespace Server.Engines.Harvest
|
|||
|
||||
if ( Core.ML )
|
||||
{
|
||||
oreAndStone.BonusResources = new BonusHarvestResource[]
|
||||
oreAndStone.BonusResources = new[]
|
||||
{
|
||||
new BonusHarvestResource( 0, 99.4, null, null ), //Nothing
|
||||
new BonusHarvestResource( 100, .1, 1072562, typeof( BlueDiamond ) ),
|
||||
|
|
@ -152,9 +152,9 @@ namespace Server.Engines.Harvest
|
|||
sand.ConsumedPerFeluccaHarvest = 1;
|
||||
|
||||
// The digging effect
|
||||
sand.EffectActions = new int[]{ 11 };
|
||||
sand.EffectSounds = new int[]{ 0x125, 0x126 };
|
||||
sand.EffectCounts = new int[]{ 6 };
|
||||
sand.EffectActions = new[]{ 11 };
|
||||
sand.EffectSounds = new[]{ 0x125, 0x126 };
|
||||
sand.EffectCounts = new[]{ 6 };
|
||||
sand.EffectDelay = TimeSpan.FromSeconds( 1.6 );
|
||||
sand.EffectSoundDelay = TimeSpan.FromSeconds( 0.9 );
|
||||
|
||||
|
|
@ -166,12 +166,12 @@ namespace Server.Engines.Harvest
|
|||
sand.PackFullMessage = 1044632; // Your backpack can't hold the sand, and it is lost!
|
||||
sand.ToolBrokeMessage = 1044038; // You have worn out your tool!
|
||||
|
||||
res = new HarvestResource[]
|
||||
res = new[]
|
||||
{
|
||||
new HarvestResource( 100.0, 70.0, 400.0, 1044631, typeof( Sand ) )
|
||||
};
|
||||
|
||||
veins = new HarvestVein[]
|
||||
veins = new[]
|
||||
{
|
||||
new HarvestVein( 100.0, 0.0, res[0], null )
|
||||
};
|
||||
|
|
@ -260,7 +260,7 @@ namespace Server.Engines.Harvest
|
|||
return base.MutateVein( from, tool, def, bank, toHarvest, vein );
|
||||
}
|
||||
|
||||
private static int[] m_Offsets = new int[]
|
||||
private static int[] m_Offsets = new[]
|
||||
{
|
||||
-1, -1,
|
||||
-1, 0,
|
||||
|
|
@ -353,7 +353,7 @@ namespace Server.Engines.Harvest
|
|||
}
|
||||
|
||||
#region Tile lists
|
||||
private static int[] m_MountainAndCaveTiles = new int[]
|
||||
private static int[] m_MountainAndCaveTiles = new[]
|
||||
{
|
||||
220, 221, 222, 223, 224, 225, 226, 227, 228, 229,
|
||||
230, 231, 236, 237, 238, 239, 240, 241, 242, 243,
|
||||
|
|
@ -392,7 +392,7 @@ namespace Server.Engines.Harvest
|
|||
0x4549, 0x454A, 0x454B, 0x454C, 0x454D, 0x454E, 0x454F
|
||||
};
|
||||
|
||||
private static int[] m_SandTiles = new int[]
|
||||
private static int[] m_SandTiles = new[]
|
||||
{
|
||||
22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
|
||||
32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue