summaryrefslogblamecommitdiff
path: root/npc/items/launcher_ammo.txt
blob: 4c84e9502dbd044ec9c84121bfc4969dffb17ba4 (plain) (tree)


















                                                         
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;
}