1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Merge pull request #554 from dydzio0614/MagicSchoolFix

Fix magic school gold payment (bug #3043)
This commit is contained in:
Alexander Shishkin 2019-03-12 10:23:13 +03:00 committed by GitHub
commit 8b6316c8ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -988,7 +988,9 @@ void CGVisitableOPH::initObj(CRandomGenerator & rand)
info.resize(2);
info[0].reward.primary[PrimarySkill::SPELL_POWER] = 1;
info[1].reward.primary[PrimarySkill::KNOWLEDGE] = 1;
info[0].limiter.resources[Res::GOLD] = 1000;
info[0].reward.resources[Res::GOLD] = -1000;
info[1].limiter.resources[Res::GOLD] = 1000;
info[1].reward.resources[Res::GOLD] = -1000;
onSelect.addTxt(MetaString::ADVOB_TXT, 71);
onVisited.addTxt(MetaString::ADVOB_TXT, 72);