mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Discharging conditions
This commit is contained in:
@@ -81,9 +81,9 @@ struct MoveArtifactInfo
|
||||
|
||||
enum class DischargeArtifactCondition
|
||||
{
|
||||
SPELLCAST,
|
||||
BATTLE,
|
||||
BUILDING
|
||||
SPELLCAST,
|
||||
BATTLE,
|
||||
BUILDING // not implemented
|
||||
};
|
||||
|
||||
VCMI_LIB_NAMESPACE_END
|
||||
|
||||
@@ -1027,6 +1027,7 @@ struct DLL_LINKAGE DischargeArtifact : CArtifactOperationPack
|
||||
{
|
||||
ArtifactInstanceID id;
|
||||
uint16_t charges;
|
||||
std::optional<ArtifactLocation> artLoc;
|
||||
|
||||
DischargeArtifact() = default;
|
||||
DischargeArtifact(const ArtifactInstanceID & id, const uint16_t charges)
|
||||
@@ -1041,6 +1042,7 @@ struct DLL_LINKAGE DischargeArtifact : CArtifactOperationPack
|
||||
{
|
||||
h & id;
|
||||
h & charges;
|
||||
h & artLoc;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user