Skip to content

Commit c8f0995

Browse files
committed
changes
1 parent 67ac086 commit c8f0995

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

PawMapLoader/Res/Components/PawScriptDamageable.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,5 @@ void Awake()
3030
dmgble.enabled = true;
3131
dmgble.OnDamage = new DamageEvent(ptr);
3232
}
33-
34-
void RunRegisteredOnEvent()
35-
{
36-
37-
}
3833
}
3934
}

PawMapLoader/Res/Components/SceneRoot.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,10 @@ namespace PawMapLoader.Res.Components
77
public class SceneRoot : MonoBehaviour
88
{
99
public static SceneRoot Instance;
10+
11+
private void Awake()
12+
{
13+
Instance = this;
14+
}
1015
}
1116
}

PawMapLoader/Res/PawScript/Claws/Player.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace PawMapLoader.Res.PawScript.Claws
66
{
7+
// Probably going to leave this mod as singleplayer only. Sorry!
8+
// I'm just not sure how I'll go about multiple players.
79
public class Player
810
{
911
private static PlayerManager _pm => PlayerManager.Instance;
@@ -14,5 +16,12 @@ public static void GetMainPlayer(PawScriptInstruction instruction, ref int instr
1416
int memAddr = !string.IsNullOrEmpty(instruction.Arguments[0]) ? PointerResolver.ResolvePointerAddress(instruction.Arguments[0], interpreter) :-1;
1517
interpreter.WriteMemory(PlayerManager.MainPlayer, memAddr);
1618
}
19+
20+
public static void AddScale(PawScriptInstruction instruction, ref int instructionSetter,
21+
Interpreter interpreter)
22+
{
23+
var player = (Il2CppCharacter.Player)PointerResolver.ResolvePointer(instruction.Arguments[0], interpreter);
24+
player.Character.AddGrow(FloatResolver.ResolveFloat(instruction.Arguments[1]));
25+
}
1726
}
1827
}

0 commit comments

Comments
 (0)