瀏覽代碼

[changed] Easier to learn spells if Sveta has mastered spellcasting from NOX

Kevin_Smarts 2 年之前
父節點
當前提交
2c6618c27c
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      locations/spellList.qsrc

+ 6 - 1
locations/spellList.qsrc

@@ -632,7 +632,12 @@ if $ARGS[0] = 'act learn':
 	if pcs_mana >= 1000:
 		pcs_mana -= 1000
 		minut += 60
-		spellLearn[$ThisSpellName] += rand(1, 100/spellDifficulty)
+		!Added "* (pcs_splcstng/spellDifficulty)" - if Sveta already mastered Spellcasting skill, learning new spells should be easier, and the opposite
+		if (pcs_splcstng/spellDifficulty) > 0:
+			spellLearn[$ThisSpellName] += rand(1, 100/spellDifficulty) * (pcs_splcstng/spellDifficulty)
+		else
+			spellLearn[$ThisSpellName] += rand(1, 100/spellDifficulty)
+		end
 
 		if spellLearn[$ThisSpellName] < 100:
 			'You diligently study the spell for an hour, but cannot grasp it.'