summaryrefslogtreecommitdiff
path: root/npc/functions
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
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')
-rw-r--r--npc/functions/barber.txt2
-rw-r--r--npc/functions/legiontalk.txt4
-rw-r--r--npc/functions/main.txt4
-rw-r--r--npc/functions/resetstatus.txt6
4 files changed, 8 insertions, 8 deletions
diff --git a/npc/functions/barber.txt b/npc/functions/barber.txt
index 54402750..d5a330f2 100644
--- a/npc/functions/barber.txt
+++ b/npc/functions/barber.txt
@@ -171,7 +171,7 @@ function script BarberChangeRace {
function script Barber {
if (getarg(0, true)) {
mesn;
- mesq lg("Hello, young lady.", "Hello, young man.");
+ mesq l("Hello.");
next;
}
mesq l("What would you like me to do?");
diff --git a/npc/functions/legiontalk.txt b/npc/functions/legiontalk.txt
index fbc35e1f..25004c07 100644
--- a/npc/functions/legiontalk.txt
+++ b/npc/functions/legiontalk.txt
@@ -46,10 +46,10 @@ function script legiontalk {
npctalkonce(l("I can't stay here and talk all day. I have a job to do."));
break;
case 10:
- npctalkonce(lg("Keep moving girl.", "Keep moving boy."));
+ npctalkonce(l("Keep moving!"));
break;
case 11:
- npctalkonce(lg("So you think you're tough? A warrior must also be loyal and patient."));
+ npctalkonce(l("So you think you're tough? A warrior must also be loyal and patient."));
break;
case 12:
emotion E_LOOKAWAY;
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 {
diff --git a/npc/functions/resetstatus.txt b/npc/functions/resetstatus.txt
index bb4b22b4..d5d4fdda 100644
--- a/npc/functions/resetstatus.txt
+++ b/npc/functions/resetstatus.txt
@@ -64,9 +64,9 @@ function script ConfirmStatusReset {
//mesc l("WARNING: Permanent boosts will return to their fruit form."), 1;
mesc l("WARNING: Status resets cannot be reverted!"), 1;
- switch (select(lg("Yes, I am sure. Please reset my status!"),
- lg("I need to think about it..."),
- lg("I won't need it, thank you.")))
+ switch (select(l("Yes, I am sure. Please reset my status!"),
+ l("I need to think about it..."),
+ l("I won't need it, thank you.")))
{
case 1:
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,