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:
parent
bd32bd66b3
commit
fb9711186b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user