From 6662b6f305976881c3e675241c41be7731b65aa5 Mon Sep 17 00:00:00 2001 From: gumi Date: Wed, 11 Oct 2017 19:02:11 -0400 Subject: what's up with this crazy syntax? I blame Reid --- npc/functions/mouboofunc.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'npc/functions/mouboofunc.txt') diff --git a/npc/functions/mouboofunc.txt b/npc/functions/mouboofunc.txt index c0f7d96b..6129c083 100644 --- a/npc/functions/mouboofunc.txt +++ b/npc/functions/mouboofunc.txt @@ -5,7 +5,7 @@ // Various scripts used in walking mouboo NPCs. function script moubootalk { - switch (rand (4)) + switch (rand(4)) { case 0: npctalkonce(l("Moooooo!")); @@ -31,13 +31,13 @@ function script mouboocheckxy { "Taree"; for (.@size = 0; .@size < getarraysize(.nearnpc$); .@size++) { - if (strcmp (.name$, .nearnpc$[.@size]) == 0) + if (strcmp(.name$, .nearnpc$[.@size]) == 0) { continue; } - .@npc_x = getvariableofnpc (.x, .nearnpc$[.@size]); - .@npc_y = getvariableofnpc (.y, .nearnpc$[.@size]); + .@npc_x = getvariableofnpc(.x, .nearnpc$[.@size]); + .@npc_y = getvariableofnpc(.y, .nearnpc$[.@size]); if (.@npc_x == .x && .@npc_y == .y) { @@ -49,13 +49,13 @@ function script mouboocheckxy { } function script moubootimer { - if (mouboocheckxy () && !isunitwalking ()) + if (mouboocheckxy() && !isunitwalking()) { movetonextpoint; } - else if (rand (0,6) == 5) + else if (rand(0,6) == 5) { - if (!isunitwalking ()) + if (!isunitwalking()) { movetonextpoint; } -- cgit v1.2.3-70-g09d2