Add new damage type: desiccation

This commit is contained in:
Joshua Ramon Enslin 2023-10-12 22:54:01 +02:00
parent d295e16049
commit 887f06f70e
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE
2 changed files with 3 additions and 1 deletions

2
l18n

@ -1 +1 @@
Subproject commit 8ea0cd2c7e9fb9158c191e456726b419ef8b24bd Subproject commit eea900820d19567f28d87bae7afda04e8cfde7b8

View File

@ -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"),
}; };