-
Notifications
You must be signed in to change notification settings - Fork 0
/
actorlib.c
36 lines (29 loc) · 925 Bytes
/
actorlib.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include <ACS_Zandronum.h>
#include "actorlib.h"
__addrdef __mod_arr actorlib_sta;
const ActorT actorlib_sta self;
[[call("StkCall")]]
int ActorLib_CheckActorInventory (int tid, __str name)
{
return (tid) ? ACS_CheckActorInventory(tid, name) : ACS_CheckInventory(name);
}
[[call("StkCall")]]
void ActorLib_GiveActorInventory (int tid, __str name, int amount)
{
(tid) ? ACS_GiveActorInventory(tid, name, amount) : ACS_GiveInventory(name, amount);
}
[[call("StkCall")]]
void ActorLib_TakeActorInventory (int tid, __str name, int amount)
{
(tid) ? ACS_TakeActorInventory(tid, name, amount) : ACS_TakeInventory(name, amount);
}
[[call("StkCall")]]
void ActorLib_UseActorInventory (int tid, __str name)
{
(tid) ? ACS_UseActorInventory(tid, name) : ACS_UseInventory(name);
}
[[call("StkCall")]]
void ActorLib_ClearActorInventory (int tid)
{
(tid) ? ACS_ClearActorInventory(tid) : ACS_ClearInventory();
}