mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-22 00:27:58 +02:00
* possibly fixed bug with the mage guild when no spells available
* events won't be shown and won't block movement * casualties among hero army and neutral creatures are saved * it's possible to build lighthouse * increased thread-safety (may prevent some crashes) * minor fixes
This commit is contained in:
@@ -33,6 +33,12 @@ void CScriptCallback::removeObject(int objid)
|
||||
gh->sendAndApply(&ro);
|
||||
}
|
||||
|
||||
void CScriptCallback::setAmount(int objid, ui32 val)
|
||||
{
|
||||
SetObjectProperty sop(objid,3,val);
|
||||
gh->sendAndApply(&sop);
|
||||
}
|
||||
|
||||
void CScriptCallback::setOwner(int objid, ui8 owner)
|
||||
{
|
||||
SetObjectProperty sop(objid,1,owner);
|
||||
|
||||
Reference in New Issue
Block a user