diff options
author | Kurt Kuschinski <kurt.kuschinski@gmail.com> | 2021-01-09 22:18:14 +0000 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-01-09 22:18:14 +0000 |
commit | 2283d32a1cf2961253a6dc63979f5c80e8175f8a (patch) | |
tree | 67d1ead1ca74456f9ba1ed6f815e066148e9f403 /npc/functions/main.txt | |
parent | b12c37346ced0014d3900b2b86c1319cd7d1db80 (diff) | |
download | serverdata-2283d32a1cf2961253a6dc63979f5c80e8175f8a.tar.gz serverdata-2283d32a1cf2961253a6dc63979f5c80e8175f8a.tar.bz2 serverdata-2283d32a1cf2961253a6dc63979f5c80e8175f8a.tar.xz serverdata-2283d32a1cf2961253a6dc63979f5c80e8175f8a.zip |
Prepare serverdata for evol-hercules!31
Deprecate g() and lg()
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r-- | npc/functions/main.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt index 28b61c7c..8029f3eb 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -54,8 +54,8 @@ function script mesq { } function script g { - // TODO: remove gendered lines from NPCs, or use any(getarg(0), getarg(1)) to make it random - return BodyType == 0 ? getarg(0) : getarg(1); + consolemes(CONSOLEMES_ERROR, "Deprecated function \"g\" used, results are not reliable."); + return rand(1000) % 2 ? getarg(0) : getarg(1); } function script b { |