commit
3bd3949baa
5 changed files with 17 additions and 9 deletions
2
.travis.yml
Normal file
2
.travis.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
language: csharp
|
||||
solution: RunUO.sln
|
||||
|
|
@ -1,6 +1,10 @@
|
|||
runuo
|
||||
=====
|
||||
|
||||
[](https://ci.appveyor.com/project/ms/runuo) [](https://travis-ci.org/runuo/runuo)
|
||||
|
||||
[](https://gitter.im/runuo/runuo?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
|
||||
RunUO Git Repository
|
||||
|
||||
Typical Windows Build
|
||||
|
|
|
|||
|
|
@ -193,8 +193,8 @@ namespace Server.Commands
|
|||
DestroyTeleporter( 5595, 1840, -14, map );
|
||||
DestroyTeleporter( 5595, 1840, -14, map );
|
||||
|
||||
CreateTeleporter( 5594, 1840, -9, 5467, 1804, 7, map, false );
|
||||
CreateTeleporter( 5594, 1841, -9, 5467, 1805, 7, map, false );
|
||||
CreateTeleporter( 5594, 1840, -8, 5467, 1804, 7, map, false );
|
||||
CreateTeleporter( 5594, 1841, -8, 5467, 1805, 7, map, false );
|
||||
|
||||
// Wrong
|
||||
CreateTeleporter( 5824, 631, 5, 2041, 215, 14, map, true );
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
|
|
@ -180,8 +181,8 @@ namespace Server.Items
|
|||
|
||||
private static void ApplySkillBonus( AosSkillBonuses attrs, int min, int max, int index, int low, int high )
|
||||
{
|
||||
SkillName[] possibleSkills = ( attrs.Owner is Spellbook ? m_PossibleSpellbookSkills : m_PossibleBonusSkills );
|
||||
int count = ( Core.SE ? possibleSkills.Length : possibleSkills.Length - 2 );
|
||||
List<SkillName> possibleSkills = new List<SkillName>( attrs.Owner is Spellbook ? m_PossibleSpellbookSkills : m_PossibleBonusSkills );
|
||||
int count = ( Core.SE ? possibleSkills.Count : possibleSkills.Count - 2 );
|
||||
|
||||
SkillName sk, check;
|
||||
double bonus;
|
||||
|
|
@ -190,11 +191,12 @@ namespace Server.Items
|
|||
do
|
||||
{
|
||||
found = false;
|
||||
sk = possibleSkills[Utility.Random( count )];
|
||||
sk = possibleSkills[Utility.Random( count-- )];
|
||||
possibleSkills.Remove(sk);
|
||||
|
||||
for ( int i = 0; !found && i < 5; ++i )
|
||||
found = ( attrs.GetValues( i, out check, out bonus ) && check == sk );
|
||||
} while ( found );
|
||||
} while ( found && count > 0 );
|
||||
|
||||
attrs.SetValues( index, sk, Scale( min, max, low, high ) );
|
||||
}
|
||||
|
|
@ -685,4 +687,4 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ namespace Server.Spells.Fifth
|
|||
if ( lowestStat > 150 )
|
||||
lowestStat = 150;
|
||||
|
||||
double damage = GetDamageScalar(m)*(highestStat - lowestStat) / 4;//less damage
|
||||
double damage = GetDamageScalar(m)*(highestStat - lowestStat) / 2; // Many users prefer 3 or 4
|
||||
|
||||
if ( damage > 45 )
|
||||
damage = 45;
|
||||
|
|
@ -152,4 +152,4 @@ namespace Server.Spells.Fifth
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue