Add new damage type: desiccation

This commit is contained in:
jrenslin committed 2023-10-12 22:54:01 +02:00
1 parent d295e16049
commit 887f06f70e
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -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 @@ public static function fromString(string $input):MDObjectDamageType {
return match($input) {
'water_damage' => self::water_damage,
'breakage' => self::breakage,
'desiccation' => self::desiccation,
default => throw new MDpageParameterNotFromListException("Unknown damage type"),
};