-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated for AI profile capabilities and new PawnAbility (from JecsTools) support. Improved cooldown tracking.
- Loading branch information
Showing
9 changed files
with
85 additions
and
27 deletions.
There are no files selected for viewing
Binary file not shown.
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
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using Verse; | ||
|
||
namespace ProjectJedi | ||
{ | ||
static class ForceUserUtility | ||
{ | ||
public static ForceAlignmentType GetForceAlignmentType(Pawn pawn) | ||
{ | ||
if (pawn.GetComp<CompForceUser>() is CompForceUser forceUser) | ||
{ | ||
return forceUser.ForceAlignmentType; | ||
} | ||
return ForceAlignmentType.None; | ||
} | ||
|
||
public static Need_ForcePool GetForcePool(Pawn pawn) | ||
{ | ||
if (pawn.GetComp<CompForceUser>() is CompForceUser forceUser) | ||
{ | ||
return forceUser.ForcePool; | ||
} | ||
return null; | ||
} | ||
|
||
public static CompForceUser GetForceUser(Pawn pawn) | ||
{ | ||
if (pawn.GetComp<CompForceUser>() is CompForceUser forceUser) | ||
{ | ||
return forceUser; | ||
} | ||
return null; | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
713d26f9b754e8053dca6bab05e353da8b4845bc | ||
73818957258032a2f06ef1db41d0b61652f9432e |
Binary file modified
BIN
+2.89 KB
(100%)
Source/obj/Debug/ProjectJedi.csprojResolveAssemblyReference.cache
Binary file not shown.
Binary file not shown.