Skip to content

Commit

Permalink
first draft of mob state machine implementation (#92)
Browse files Browse the repository at this point in the history
* npg debugging command & ingest parser output

* implemented first draft of ai state machine

refactored ai data mapper to use ochi's schema
made ai debug info command less annoying to type
added Field.TickCount (use this, not Environment.TickCount)
added IActor.CastSkill (not full functionality, just a placeholder for now)
added ai state machine to traverse the ai scripts (missing a lot of functionality)
added debug print message chat bubbles to FieldNpc
added NpcNotice packet

* nuget version

* feedback changes

* feedback changes

* AppendDebugMessage bug fix

expanded it to allow debug messages outside the specific npc's update if necessary

* feedback changes
  • Loading branch information
mettaursp authored May 10, 2024
1 parent 7197980 commit 51d9ce5
Show file tree
Hide file tree
Showing 15 changed files with 1,160 additions and 596 deletions.
2 changes: 1 addition & 1 deletion Maple2.File.Ingest/Maple2.File.Ingest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<ItemGroup>
<PackageReference Include="Crc32.NET" Version="1.2.0" />
<PackageReference Include="DotNetZip" Version="1.16.0" />
<PackageReference Include="Maple2.File.Parser.Tadeucci" Version="2.1.5" />
<PackageReference Include="Maple2.File.Parser.Tadeucci" Version="2.1.6" />
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="7.0.0" />
</ItemGroup>

Expand Down
769 changes: 356 additions & 413 deletions Maple2.File.Ingest/Mapper/AiMapper.cs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Maple2.Model/Enum/NpcAi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public enum NodeTargetType {
HasAdditional,
RandAssociated,
GrabbedUser,
Random,
Random = Rand,
}

public enum NodeJumpType {
Expand All @@ -55,8 +55,8 @@ public enum NodeRideType {
}

public enum NodeBuffType {
Remove,
Add,
Remove,
}

public enum NodePopupType {
Expand Down
Loading

0 comments on commit 51d9ce5

Please sign in to comment.