parent
096d39609e
commit
8e9221bb5a
400 changed files with 3688 additions and 5969 deletions
|
|
@ -85,9 +85,7 @@ namespace Server.SkillHandlers
|
|||
if (src.CheckTargetSkill(SkillName.DetectHidden, trap, 80.0, 100.0))
|
||||
{
|
||||
src.SendLocalizedMessage(1042712, true,
|
||||
" " + (trap.Faction == null
|
||||
? ""
|
||||
: trap.Faction.Definition.FriendlyName)); // You reveal a trap placed by a faction:
|
||||
$" {(trap.Faction == null ? "" : trap.Faction.Definition.FriendlyName)}"); // You reveal a trap placed by a faction:
|
||||
|
||||
trap.Visible = true;
|
||||
trap.BeginConceal();
|
||||
|
|
|
|||
|
|
@ -57,9 +57,7 @@ namespace Server.SkillHandlers
|
|||
{
|
||||
if (!CombatOverride)
|
||||
if (m.GetMobilesInRange(range).Any(check => check.InLOS(m) && check.Combatant == m))
|
||||
{
|
||||
badCombat = true;
|
||||
}
|
||||
|
||||
ok = !badCombat && m.CheckSkill(SkillName.Hiding, 0.0 - bonus, 100.0 - bonus);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ namespace Server.SkillHandlers
|
|||
Faction faction = Faction.Find(from);
|
||||
FactionTrapRemovalKit kit = from.Backpack?.FindItemByType<FactionTrapRemovalKit>();
|
||||
|
||||
bool isOwner = trap.Placer == from || trap.Faction != null && trap.Faction.IsCommander(from);
|
||||
bool isOwner = trap.Placer == from || trap.Faction?.IsCommander(from) == true;
|
||||
|
||||
if (faction == null)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -282,9 +282,7 @@ namespace Server.SkillHandlers
|
|||
|
||||
if (m_Thief.CheckTargetSkill(SkillName.Stealing, toSteal, pileWeight - 22.5,
|
||||
pileWeight + 27.5))
|
||||
{
|
||||
stolen = Mobile.LiftItemDupe(toSteal, toSteal.Amount - amount) ?? toSteal;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -36,8 +36,6 @@ namespace Server.SkillHandlers
|
|||
|
||||
public static double GetStalkingBonus(Mobile tracker, Mobile target)
|
||||
{
|
||||
;
|
||||
|
||||
if (!m_Table.TryGetValue(tracker, out TrackingInfo info) || info.m_Target != target || info.m_Map != target.Map)
|
||||
return 0.0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue