Skip to content

Commit 6a82df1

Browse files
committed
Remove "scripted" NPCs explicit stats assignation
* `LoadTemplate` is already supposed to do it if `ReplaceMobValues` is true. * Only strength, dexterity, etc. for now.
1 parent 825c46a commit 6a82df1

File tree

198 files changed

+10
-1735
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

198 files changed

+10
-1735
lines changed

GameServer/scripts/mobs/AlbionMobs/AmminusPilus.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ public override bool AddToWorld()
1313
{
1414
INpcTemplate npcTemplate = NpcTemplateMgr.GetTemplate(12888);
1515
LoadTemplate(npcTemplate);
16-
Strength = npcTemplate.Strength;
17-
Dexterity = npcTemplate.Dexterity;
18-
Constitution = npcTemplate.Constitution;
19-
Quickness = npcTemplate.Quickness;
20-
Piety = npcTemplate.Piety;
21-
Intelligence = npcTemplate.Intelligence;
22-
Empathy = npcTemplate.Empathy;
2316
SpawnPilusFury();
2417

2518
AmminusPilusBrain sbrain = new AmminusPilusBrain();

GameServer/scripts/mobs/AlbionMobs/Anilius.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ public override bool AddToWorld()
1111
{
1212
INpcTemplate npcTemplate = NpcTemplateMgr.GetTemplate(12254);
1313
LoadTemplate(npcTemplate);
14-
Strength = npcTemplate.Strength;
15-
Dexterity = npcTemplate.Dexterity;
16-
Constitution = npcTemplate.Constitution;
17-
Quickness = npcTemplate.Quickness;
18-
Piety = npcTemplate.Piety;
19-
Intelligence = npcTemplate.Intelligence;
20-
Empathy = npcTemplate.Empathy;
2114

2215
AniliusBrain sbrain = new AniliusBrain();
2316
SetOwnBrain(sbrain);
@@ -111,13 +104,6 @@ public override bool AddToWorld()
111104
{
112105
INpcTemplate npcTemplate = NpcTemplateMgr.GetTemplate(12292);
113106
LoadTemplate(npcTemplate);
114-
Strength = npcTemplate.Strength;
115-
Dexterity = npcTemplate.Dexterity;
116-
Constitution = npcTemplate.Constitution;
117-
Quickness = npcTemplate.Quickness;
118-
Piety = npcTemplate.Piety;
119-
Intelligence = npcTemplate.Intelligence;
120-
Empathy = npcTemplate.Empathy;
121107

122108
AniliusAddBrain sbrain = new AniliusAddBrain();
123109
SetOwnBrain(sbrain);

GameServer/scripts/mobs/AlbionMobs/Cronker.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ public override bool AddToWorld()
1111
{
1212
INpcTemplate npcTemplate = NpcTemplateMgr.GetTemplate(12329);
1313
LoadTemplate(npcTemplate);
14-
Strength = npcTemplate.Strength;
15-
Dexterity = npcTemplate.Dexterity;
16-
Constitution = npcTemplate.Constitution;
17-
Quickness = npcTemplate.Quickness;
18-
Piety = npcTemplate.Piety;
19-
Intelligence = npcTemplate.Intelligence;
20-
Empathy = npcTemplate.Empathy;
2114
//RespawnInterval = Util.Random(3600000, 7200000);
2215

2316
CronkerBrain sbrain = new CronkerBrain();

GameServer/scripts/mobs/AlbionMobs/CrusadersAntithesis.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ public override bool AddToWorld()
1414
{
1515
INpcTemplate npcTemplate = NpcTemplateMgr.GetTemplate(50041);
1616
LoadTemplate(npcTemplate);
17-
Strength = npcTemplate.Strength;
18-
Dexterity = npcTemplate.Dexterity;
19-
Constitution = npcTemplate.Constitution;
20-
Quickness = npcTemplate.Quickness;
21-
Piety = npcTemplate.Piety;
22-
Intelligence = npcTemplate.Intelligence;
23-
Empathy = npcTemplate.Empathy;
2417

2518
CrusaderAntithesisBrain sbrain = new CrusaderAntithesisBrain();
2619
SetOwnBrain(sbrain);

GameServer/scripts/mobs/AlbionMobs/Dooben.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ public override bool AddToWorld()
1212
{
1313
INpcTemplate npcTemplate = NpcTemplateMgr.GetTemplate(12676);
1414
LoadTemplate(npcTemplate);
15-
Strength = npcTemplate.Strength;
16-
Dexterity = npcTemplate.Dexterity;
17-
Constitution = npcTemplate.Constitution;
18-
Quickness = npcTemplate.Quickness;
19-
Piety = npcTemplate.Piety;
20-
Intelligence = npcTemplate.Intelligence;
21-
Empathy = npcTemplate.Empathy;
2215
//RespawnInterval = Util.Random(3600000, 7200000);
2316

2417
DoobenBrain sbrain = new DoobenBrain();

GameServer/scripts/mobs/AlbionMobs/Eques.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ public override bool AddToWorld()
1414
{
1515
INpcTemplate npcTemplate = NpcTemplateMgr.GetTemplate(12907);
1616
LoadTemplate(npcTemplate);
17-
Strength = npcTemplate.Strength;
18-
Dexterity = npcTemplate.Dexterity;
19-
Constitution = npcTemplate.Constitution;
20-
Quickness = npcTemplate.Quickness;
21-
Piety = npcTemplate.Piety;
22-
Intelligence = npcTemplate.Intelligence;
23-
Empathy = npcTemplate.Empathy;
2417
TetherRange = 0;
2518

2619
EquesBrain.point1check = false;

GameServer/scripts/mobs/AlbionMobs/Erisus.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ public override bool AddToWorld()
1010
{
1111
INpcTemplate npcTemplate = NpcTemplateMgr.GetTemplate(12268);
1212
LoadTemplate(npcTemplate);
13-
Strength = npcTemplate.Strength;
14-
Dexterity = npcTemplate.Dexterity;
15-
Constitution = npcTemplate.Constitution;
16-
Quickness = npcTemplate.Quickness;
17-
Piety = npcTemplate.Piety;
18-
Intelligence = npcTemplate.Intelligence;
19-
Empathy = npcTemplate.Empathy;
2013

2114
ErisusBrain sbrain = new ErisusBrain();
2215
SetOwnBrain(sbrain);

GameServer/scripts/mobs/AlbionMobs/HighPriestAndania.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ public override bool AddToWorld()
1313
{
1414
INpcTemplate npcTemplate = NpcTemplateMgr.GetTemplate(12276);
1515
LoadTemplate(npcTemplate);
16-
Strength = npcTemplate.Strength;
17-
Dexterity = npcTemplate.Dexterity;
18-
Constitution = npcTemplate.Constitution;
19-
Quickness = npcTemplate.Quickness;
20-
Piety = npcTemplate.Piety;
21-
Intelligence = npcTemplate.Intelligence;
22-
Empathy = npcTemplate.Empathy;
2316

2417
HighPriestAndaniaBrain sbrain = new HighPriestAndaniaBrain();
2518
SetOwnBrain(sbrain);

GameServer/scripts/mobs/AlbionMobs/Jari.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ public override bool AddToWorld()
1111
{
1212
INpcTemplate npcTemplate = NpcTemplateMgr.GetTemplate(12188);
1313
LoadTemplate(npcTemplate);
14-
Strength = npcTemplate.Strength;
15-
Dexterity = npcTemplate.Dexterity;
16-
Constitution = npcTemplate.Constitution;
17-
Quickness = npcTemplate.Quickness;
18-
Piety = npcTemplate.Piety;
19-
Intelligence = npcTemplate.Intelligence;
20-
Empathy = npcTemplate.Empathy;
2114
//RespawnInterval = Util.Random(3600000, 7200000);
2215

2316
JariBrain sbrain = new JariBrain();

GameServer/scripts/mobs/AlbionMobs/PygmyGoblinTangler.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ public override bool AddToWorld()
1111
{
1212
INpcTemplate npcTemplate = NpcTemplateMgr.GetTemplate(12979);
1313
LoadTemplate(npcTemplate);
14-
Strength = npcTemplate.Strength;
15-
Dexterity = npcTemplate.Dexterity;
16-
Constitution = npcTemplate.Constitution;
17-
Quickness = npcTemplate.Quickness;
18-
Piety = npcTemplate.Piety;
19-
Intelligence = npcTemplate.Intelligence;
20-
Empathy = npcTemplate.Empathy;
2114
//RespawnInterval = Util.Random(3600000, 7200000);
2215

2316
PygmyGoblinTanglerBrain sbrain = new PygmyGoblinTanglerBrain();

0 commit comments

Comments
 (0)