fix: penalty 오타

This commit is contained in:
2024-06-08 17:37:43 +00:00
parent 606c1664f2
commit 06f086bcf0
5 changed files with 28 additions and 8 deletions
+22 -2
View File
@@ -1,11 +1,13 @@
<?php
namespace sammo\Enums;
/**
* Penalty Key
* general의 penalty 항목
*/
enum PenaltyKey: string{
enum PenaltyKey: string
{
case SendPrivateMsgDelay = 'sendPrivateMsgDelay';
case NoSendPrivateMsg = 'noSendPrivateMsg';
case NoSendPublicMsg = 'noSendPublicMsg';
@@ -17,4 +19,22 @@ enum PenaltyKey: string{
case NoChiefChange = 'noChiefChange';
case NoFoundNation = 'noFoundNation';
case NoChosenAssignment = 'noChosenAssignment';
}
public function getHelptext(): string
{
return match ($this) {
PenaltyKey::SendPrivateMsgDelay => '개인 메세지 보내기 제한 시간',
PenaltyKey::NoSendPrivateMsg => '개인 메세지 보내기 금지',
PenaltyKey::NoSendPublicMsg => '공개 메세지 보내기 금지',
PenaltyKey::NoTopSecret => '최고기밀 메세지 보내기 금지',
PenaltyKey::NoChief => '수뇌 금지',
PenaltyKey::NoAmbassador => '외교권자 금지',
PenaltyKey::NoBanGeneral => '장수 추방 금지',
PenaltyKey::NoChiefTurnInput => '수뇌 턴 입력 금지',
PenaltyKey::NoChiefChange => '수뇌 임명/해임 금지',
PenaltyKey::NoFoundNation => '건국 금지',
PenaltyKey::NoChosenAssignment => '지정 임관 금지',
default => "페널티({$this->value})",
};
}
}