summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-01-09 22:18:14 +0000
committerJesusaves <cpntb1@ymail.com>2021-01-09 22:18:14 +0000
commit94d1b1895a4a746e791f5c0a7dbba9405b36a85d (patch)
tree67d1ead1ca74456f9ba1ed6f815e066148e9f403 /npc/functions/main.txt
parentb12c37346ced0014d3900b2b86c1319cd7d1db80 (diff)
parent2283d32a1cf2961253a6dc63979f5c80e8175f8a (diff)
downloadserverdata-94d1b1895a4a746e791f5c0a7dbba9405b36a85d.tar.gz
serverdata-94d1b1895a4a746e791f5c0a7dbba9405b36a85d.tar.bz2
serverdata-94d1b1895a4a746e791f5c0a7dbba9405b36a85d.tar.xz
serverdata-94d1b1895a4a746e791f5c0a7dbba9405b36a85d.zip
Merge branch 'hocus/deprecate_lg' into 'master'
Prepare serverdata for evol-hercules!31 See merge request evol/serverdata!284
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r--npc/functions/main.txt4
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 {