Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pokojowe nastawienie straznika zanim otrzyma profil z regionu. #191

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading