From 7eb238fac9043bc9e850b5e881caa59d99f8c97a Mon Sep 17 00:00:00 2001 From: Fate Date: Sat, 29 Nov 2008 13:56:08 -0700 Subject: SLang: Added `sqrt' function, permit looping over NPCs --- doc/spell-language | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/spell-language b/doc/spell-language index 5ce5520..c19b1d7 100644 --- a/doc/spell-language +++ b/doc/spell-language @@ -533,6 +533,9 @@ The following functions are available: offset `offset'. The substring is automatically clipped, i.e., the function will never fail. + + sqrt : int -> int + Computes the square root of the specified number + Operations: ----------- This section documents the operations API. @@ -814,7 +817,8 @@ SPELLCONF ::= (GLOBAL | ANCHOR | SPELL | PROCEDURE | ';')* (* The ';' are only | 'MOB' | 'ENTITY' (* MOB or PC *) | 'TARGET' (* like ENTITY, but includes PCs only on PvP maps *) -(* | 'SPELL' *) + | 'SPELL' + | 'NPC' * procedures -- cgit v1.2.3-70-g09d2