|
@@ -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.'
|