summaryrefslogtreecommitdiff
path: root/npc/functions/util.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/util.txt')
-rw-r--r--npc/functions/util.txt22
1 files changed, 21 insertions, 1 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 8f595cd9a..9228e8f25 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -92,7 +92,7 @@ function script marine_maxre {
// Returns reputation with the La Marine for discounts
// Takes one argument (PC_DEST$). Grep for "getarg".
// Before updating this, update marine_maxre too!
-function script marine_reputation {
+function script reputation {
.@nr=0; // Base reputation
// Tulimshar Quests (12 points)
@@ -152,6 +152,7 @@ function script marine_reputation {
.@nr=.@nr+1;
+
// Hurnscald Quests (5 points)
} else if (getarg(0) == "Hurns") {
@@ -177,6 +178,25 @@ function script marine_reputation {
}
+
+
+ // Land Of Fire Quests (3 points)
+ } else if (getarg(0) == "LoF") {
+
+ // The EPISODE (+1 rep)
+ if (getq(LoFQuest_EPISODE) >= 2)
+ .@nr=.@nr+1;
+
+ // George Quest (+1 rep)
+ if (getq(LoFQuest_George) >= 3)
+ .@nr=.@nr+1;
+
+ // Fairy Quest (+1 rep)
+ if (getq(LoFQuest_Fairy) >= 3)
+ .@nr=.@nr+1;
+
+ }
+
//debugmes "Reputation: "+str(.@nr);
return .@nr;