Browse Source

[fixed] Sveta wasn't learning teh teleport locations, fix from MOX

Kevin_Smarts 2 years ago
parent
commit
1d26c77882
1 changed files with 23 additions and 13 deletions
  1. 23 13
      locations/treeCircle.qsrc

+ 23 - 13
locations/treeCircle.qsrc

@@ -47,24 +47,34 @@ $EntryPoint = $ARGS[0]
 *nl
 
 ! Determine if this user can teleport at all.
+
 canTeleport = 0
 if spellKnown['teleport'] = 1:
-	'You take the fairy''s advice and get to know this circle.'
-	minut += 15
-	if pcs_mana > spellMana['teleport']:
-		canTeleport = 1
-	else
-		*nl
-		'You feel too tired to pull off a shift right now.'
-	end
+    if tpKnown[$EntryPoint] = 0:
+        'You take the fairy''s advice and get to know this circle.'
+        minut += 15
+        ! Learn the current entry point
+        tpKnown[$EntryPoint] = 1
+		if pcs_mana > spellMana['teleport']:
+			canTeleport = 1
+		else
+			*nl
+			'You feel too tired to pull off a shift right now.'
+		end
+    end
+    if pcs_mana > spellMana['teleport']:
+        canTeleport = 1
+    else
+        *nl
+        'You feel too tired to pull off a shift right now.'
+    end
 else
-	'You can feel something strange and powerful in this place, but you can''t quite put your finger on it.  It is intriguing though, so you take your time and look the place over to try to understand it.'
-	minut += 15
+    'You can feel something strange and powerful in this place, but you can''t quite put your finger on it.  It is intriguing though, so you take your time and look the place over to try to understand it.'
+    minut += 15
+    ! Learn the current entry point
+    tpKnown[$EntryPoint] = 1
 end
 
-! Learn the current entry point
-tpKnown[$EntryPoint] = 1
-
 gs 'treeCircActs', $EntryPoint
 
 ! Setup Actions for locations when applicable