mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-18 03:21:27 +02:00
Fix monster amount property
This commit is contained in:
parent
b9e685e857
commit
d7de9710cc
@ -42,6 +42,7 @@ void Initializer::initialize(CGCreature * o)
|
||||
if(!o) return;
|
||||
|
||||
o->character = CGCreature::Character::HOSTILE;
|
||||
o->putStack(SlotID(0), new CStackInstance(CreatureID(o->subID), 0, false));
|
||||
}
|
||||
|
||||
void Initializer::initialize(CGDwelling * o)
|
||||
@ -240,7 +241,7 @@ void Inspector::updateProperties(CGCreature * o)
|
||||
addProperty("Never flees", o->neverFlees, InspectorDelegate::boolDelegate(), false);
|
||||
addProperty("Not growing", o->notGrowingTeam, InspectorDelegate::boolDelegate(), false);
|
||||
addProperty("Artifact reward", o->gainedArtifact); //TODO: implement in setProperty
|
||||
//addProperty("Amount", o->stacks[SlotID(0)]->count, false);
|
||||
addProperty("Amount", o->stacks[SlotID(0)]->count, false);
|
||||
//addProperty("Resources reward", o->resources); //TODO: implement in setProperty
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user