Skip to content

Commit

Permalink
Pokojowe nastawienie straznika zanim otrzyma profil z regionu. (#191)
Browse files Browse the repository at this point in the history
Co-authored-by: GajuszZOrod <[email protected]>
  • Loading branch information
GajuszZOrod and GajuszZOrod authored Jul 29, 2024
1 parent 62247b8 commit c4622bc
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions Scripts/Nelderim/Mobiles/Guards/BaseNelderimGuard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ public enum WarFlag
public enum GuardMode
{
Default,
Spider
Spider,
Harmless
}

public class BaseNelderimGuard : BaseCreature
{
private GuardType _Type;
private GuardMode _GuardMode = GuardMode.Default;
private string _RegionName;
private GuardMode _GuardMode = GuardMode.Harmless; // take no action prior to receiving behaviour from region profile
private string _RegionName;
private WarFlag _Flag = WarFlag.None;
private WarFlag _Enemy = WarFlag.None;

Expand Down Expand Up @@ -74,6 +75,7 @@ public override bool IsEnemy(Mobile m)
return _GuardMode switch
{
GuardMode.Spider => IsEnemyOfSpider(m),
GuardMode.Harmless => false,
_ => DefaultIsEnemy(m)
};
}
Expand Down Expand Up @@ -122,7 +124,17 @@ public BaseNelderimGuard(GuardType type, AIType aiType = AIType.AI_Melee, int ra
Fame = 5000;
Karma = 5000;

new RaceTimer(this).Start();
// Make it somewhat resistant, so it doesn't die by accident before receiving properties and behaviour from region profile:
SetHits(500);
SetDamage(1);
SetSkill(SkillName.Wrestling, 90);
SetResistance(ResistanceType.Physical, 45);
SetResistance(ResistanceType.Fire, 45);
SetResistance(ResistanceType.Cold, 45);
SetResistance(ResistanceType.Poison, 45);
SetResistance(ResistanceType.Energy, 45);

new RaceTimer(this).Start();
}

public BaseNelderimGuard(Serial serial) : base(serial)
Expand Down

0 comments on commit c4622bc

Please sign in to comment.