forked from PerpetuumOnline/PerpetuumServer
-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Dolzhukov, Viktor <[email protected]>
- Loading branch information
1 parent
42d03b1
commit 220e239
Showing
15 changed files
with
177 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 4 additions & 21 deletions
25
src/Perpetuum/Zones/NpcSystem/AI/HarvestingIndustrialTurretAI.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,10 @@ | ||
using System; | ||
|
||
namespace Perpetuum.Zones.NpcSystem.AI | ||
namespace Perpetuum.Zones.NpcSystem.AI | ||
{ | ||
public class HarvestingIndustrialTurretAI : StationaryIndustrialAI | ||
public class HarvestingIndustrialTurretAI : IndustrialAI | ||
{ | ||
public HarvestingIndustrialTurretAI(SmartCreature smartCreature) : base(smartCreature) { } | ||
|
||
public override void Update(TimeSpan time) | ||
public HarvestingIndustrialTurretAI(SmartCreature smartCreature) : base(smartCreature) | ||
{ | ||
FindIndustrialTargets(time); | ||
|
||
base.Update(time); | ||
} | ||
|
||
public void FindIndustrialTargets(TimeSpan time) | ||
{ | ||
UpdateFrequency.Update(time); | ||
|
||
if (UpdateFrequency.Passed) | ||
{ | ||
UpdateFrequency.Reset(); | ||
smartCreature.LookingForHarvestingTargets(); | ||
} | ||
smartCreature.LookingForHarvestingTargets(); | ||
} | ||
} | ||
} |
16 changes: 0 additions & 16 deletions
16
src/Perpetuum/Zones/NpcSystem/AI/HarvestingTurretIndustrialAI.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.