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

Hero experinece set property

This commit is contained in:
nordsoft 2022-12-04 16:58:30 +04:00
parent bd32bd66b3
commit fb9711186b

View File

@ -555,6 +555,9 @@ void Inspector::setProperty(CGHeroInstance * o, const QString & key, const QVari
if(key == "Name")
o->name = value.toString().toStdString();
if(key == "Experience")
o->exp = value.toInt();
if(key == "Hero type")
{
for(auto t : VLC->heroh->objects)