1
- using Aki . Reflection . Patching ;
1
+ using SPT . Reflection . Patching ;
2
2
using DrakiaXYZ . BigBrain . Internal ;
3
3
using HarmonyLib ;
4
4
using System ;
@@ -24,7 +24,7 @@ protected override MethodBase GetTargetMethod()
24
24
{
25
25
Type botAgentType = typeof ( AICoreLogicAgentClass ) ;
26
26
27
- _strategyField = Utils . GetFieldByType ( botAgentType , typeof ( AICoreStrategyClass < > ) ) ;
27
+ _strategyField = Utils . GetFieldByType ( botAgentType , typeof ( AICoreStrategyAbstractClass < > ) ) ;
28
28
_lastResultField = Utils . GetFieldByType ( botAgentType , typeof ( AILogicActionResultStruct ) ) ;
29
29
_logicInstanceDictField = Utils . GetFieldByType ( botAgentType , typeof ( IDictionary ) ) ;
30
30
_lazyGetterField = Utils . GetFieldByType ( botAgentType , typeof ( Delegate ) ) ;
@@ -53,11 +53,11 @@ public static bool PatchPrefix(object __instance)
53
53
{
54
54
// If an instance of our action doesn't exist in our dict, add it
55
55
int action = ( int ) result . Value . Action ;
56
- BaseNodeClass nodeInstance = aiCoreNodeDict [ ( BotLogicDecision ) action ] as BaseNodeClass ;
56
+ BaseNodeAbstractClass nodeInstance = aiCoreNodeDict [ ( BotLogicDecision ) action ] as BaseNodeAbstractClass ;
57
57
if ( nodeInstance == null )
58
58
{
59
59
Delegate lazyGetter = _lazyGetterField . GetValue ( __instance ) as Delegate ;
60
- nodeInstance = lazyGetter . DynamicInvoke ( new object [ ] { ( BotLogicDecision ) action } ) as BaseNodeClass ;
60
+ nodeInstance = lazyGetter . DynamicInvoke ( new object [ ] { ( BotLogicDecision ) action } ) as BaseNodeAbstractClass ;
61
61
62
62
if ( nodeInstance != null )
63
63
{
0 commit comments