Add new damage type: desiccation
This commit is contained in:
parent
d295e16049
commit
887f06f70e
2
l18n
2
l18n
|
@ -1 +1 @@
|
||||||
Subproject commit 8ea0cd2c7e9fb9158c191e456726b419ef8b24bd
|
Subproject commit eea900820d19567f28d87bae7afda04e8cfde7b8
|
|
@ -13,6 +13,7 @@ enum MDObjectDamageType implements MDValueEnumInterface, JsonSerializable {
|
||||||
|
|
||||||
case water_damage;
|
case water_damage;
|
||||||
case breakage;
|
case breakage;
|
||||||
|
case desiccation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a value of this type based on a string.
|
* Returns a value of this type based on a string.
|
||||||
|
@ -26,6 +27,7 @@ enum MDObjectDamageType implements MDValueEnumInterface, JsonSerializable {
|
||||||
return match($input) {
|
return match($input) {
|
||||||
'water_damage' => self::water_damage,
|
'water_damage' => self::water_damage,
|
||||||
'breakage' => self::breakage,
|
'breakage' => self::breakage,
|
||||||
|
'desiccation' => self::desiccation,
|
||||||
default => throw new MDpageParameterNotFromListException("Unknown damage type"),
|
default => throw new MDpageParameterNotFromListException("Unknown damage type"),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user