diff options
Diffstat (limited to 'world/map/npc/items/launcher_ammo.txt')
-rw-r--r-- | world/map/npc/items/launcher_ammo.txt | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/world/map/npc/items/launcher_ammo.txt b/world/map/npc/items/launcher_ammo.txt deleted file mode 100644 index 1582f8a4..00000000 --- a/world/map/npc/items/launcher_ammo.txt +++ /dev/null @@ -1,33 +0,0 @@ -// ------------------------------------------------------------ -// Ammo Needs to know Launcher and vice versa. -// -// Behavior: -// - If only one is equipped, do nothing -// - If incompatible launcher and ammo are equipped, unequip the ammo -// -// Variables passed to these scripts: -// -// @LauncherType, @AmmoType -// -// ------------------------------------------------------------ - -function|script|CheckLauncher -{ - if (getequipid(equip_arrow) == -1) - set @LauncherType, 0; - return; -} - -function|script|CheckAmmo -{ - if ((@LauncherType == @AmmoType) || (!@LauncherType)) - goto L_Return; - - callfunc "UnequipLater"; - goto L_Return; - -L_Return: - set @LauncherType, 0; - set @AmmoType, 0; - return; -} |