summaryrefslogtreecommitdiff
path: root/npc/items/launcher_ammo.txt
blob: 4c84e9502dbd044ec9c84121bfc4969dffb17ba4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function	script	CheckLauncher	{
    if (getequipid(equip_arrow) == -1)
        @LauncherType = 0;
    return;
}

function	script	CheckAmmo	{
    if ((@LauncherType == @AmmoType) || (!@LauncherType))
        goto L_Return;

    callfunc "UnequipLater";
    goto L_Return;

L_Return:
    @LauncherType = 0;
    @AmmoType = 0;
    return;
}