Changes properties to use automatic property initializers
This commit is contained in:
parent
f0a48ad431
commit
06fa31a7bf
623 changed files with 13072 additions and 19304 deletions
|
|
@ -6,13 +6,7 @@ namespace Server.SkillHandlers
|
|||
{
|
||||
public class Hiding
|
||||
{
|
||||
private static bool m_CombatOverride;
|
||||
|
||||
public static bool CombatOverride
|
||||
{
|
||||
get => m_CombatOverride;
|
||||
set => m_CombatOverride = value;
|
||||
}
|
||||
public static bool CombatOverride { get; set; }
|
||||
|
||||
public static void Initialize()
|
||||
{
|
||||
|
|
@ -61,12 +55,12 @@ namespace Server.SkillHandlers
|
|||
//int range = 18 - (int)(m.Skills[SkillName.Hiding].Value / 10);
|
||||
int range = Math.Min( (int)((100 - m.Skills[SkillName.Hiding].Value)/2) + 8, 18 ); //Cap of 18 not OSI-exact, intentional difference
|
||||
|
||||
bool badCombat = ( !m_CombatOverride && m.Combatant != null && m.InRange( m.Combatant.Location, range ) && m.Combatant.InLOS( m ) );
|
||||
bool badCombat = ( !CombatOverride && m.Combatant != null && m.InRange( m.Combatant.Location, range ) && m.Combatant.InLOS( m ) );
|
||||
bool ok = ( !badCombat /*&& m.CheckSkill( SkillName.Hiding, 0.0 - bonus, 100.0 - bonus )*/ );
|
||||
|
||||
if ( ok )
|
||||
{
|
||||
if ( !m_CombatOverride )
|
||||
if ( !CombatOverride )
|
||||
{
|
||||
foreach ( Mobile check in m.GetMobilesInRange( range ) )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue