This commit is contained in:
parent
34d969712e
commit
d444b9ba5c
70 changed files with 569 additions and 495 deletions
|
|
@ -420,12 +420,12 @@ namespace Server.Engines.Craft
|
|||
int vx = from.X + x;
|
||||
int vy = from.Y + y;
|
||||
|
||||
Tile[] tiles = map.Tiles.GetStaticTiles( vx, vy, true );
|
||||
StaticTile[] tiles = map.Tiles.GetStaticTiles( vx, vy, true );
|
||||
|
||||
for ( int i = 0; i < tiles.Length; ++i )
|
||||
{
|
||||
int z = tiles[i].Z;
|
||||
int id = tiles[i].ID & 0x3FFF;
|
||||
int id = tiles[i].ID;
|
||||
|
||||
if ( (z + 16) > from.Z && (from.Z + 16) > z && Find( id, itemIDs ) )
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -92,11 +92,11 @@ namespace Server.Engines.Craft
|
|||
{
|
||||
for ( int y = -range; (!anvil || !forge) && y <= range; ++y )
|
||||
{
|
||||
Tile[] tiles = map.Tiles.GetStaticTiles( from.X+x, from.Y+y, true );
|
||||
StaticTile[] tiles = map.Tiles.GetStaticTiles( from.X+x, from.Y+y, true );
|
||||
|
||||
for ( int i = 0; (!anvil || !forge) && i < tiles.Length; ++i )
|
||||
{
|
||||
int id = tiles[i].ID & 0x3FFF;
|
||||
int id = tiles[i].ID;
|
||||
|
||||
bool isAnvil = ( id == 4015 || id == 4016 || id == 0x2DD5 || id == 0x2DD6 );
|
||||
bool isForge = ( id == 4017 || (id >= 6522 && id <= 6569) || id == 0x2DD8 );
|
||||
|
|
|
|||
|
|
@ -159,10 +159,14 @@ namespace Server.Engines.Craft
|
|||
|
||||
private void AddNecroSpell( int spell, int mana, double minSkill, Type type, params Type[] regs )
|
||||
{
|
||||
int index = AddCraft( type, 1061677, 1060509 + spell, minSkill, minSkill + 1.0, regs[0], 1020000 + CraftItem.ItemIDOf( regs[0] ), 1, 501627 ); //Yes, on OSI it's only 1.0 skill diff'. Don't blame me, blame OSI.
|
||||
int id = CraftItem.ItemIDOf( regs[0] );
|
||||
|
||||
for ( int i = 1; i < regs.Length; ++i )
|
||||
AddRes( index, regs[i], 1020000 + CraftItem.ItemIDOf( regs[i] ), 1, 501627 );
|
||||
int index = AddCraft( type, 1061677, 1060509 + spell, minSkill, minSkill + 1.0, regs[0], id < 0x4000 ? 1020000 + id : 1078872 + id, 501627 ); //Yes, on OSI it's only 1.0 skill diff'. Don't blame me, blame OSI.
|
||||
|
||||
for ( int i = 1; i < regs.Length; ++i ) {
|
||||
id = CraftItem.ItemIDOf( regs[i] );
|
||||
AddRes( index, regs[i], id < 0x4000 ? 1020000 + id : 1078872 + id, 1, 501627 );
|
||||
}
|
||||
|
||||
AddRes( index, typeof( BlankScroll ), 1044377, 1, 1044378 );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue