From 887f06f70e51cd022a1508fa464cf0b0399a5adf Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Thu, 12 Oct 2023 22:54:01 +0200 Subject: [PATCH] Add new damage type: desiccation --- l18n | 2 +- src/enums/MDObjectDamageType.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/l18n b/l18n index 8ea0cd2..eea9008 160000 --- a/l18n +++ b/l18n @@ -1 +1 @@ -Subproject commit 8ea0cd2c7e9fb9158c191e456726b419ef8b24bd +Subproject commit eea900820d19567f28d87bae7afda04e8cfde7b8 diff --git a/src/enums/MDObjectDamageType.php b/src/enums/MDObjectDamageType.php index 91a9466..075d0e2 100644 --- a/src/enums/MDObjectDamageType.php +++ b/src/enums/MDObjectDamageType.php @@ -13,6 +13,7 @@ enum MDObjectDamageType implements MDValueEnumInterface, JsonSerializable { case water_damage; case breakage; + case desiccation; /** * Returns a value of this type based on a string. @@ -26,6 +27,7 @@ enum MDObjectDamageType implements MDValueEnumInterface, JsonSerializable { return match($input) { 'water_damage' => self::water_damage, 'breakage' => self::breakage, + 'desiccation' => self::desiccation, default => throw new MDpageParameterNotFromListException("Unknown damage type"), };