refac: 유산 포인트 파트를 별도의 Manager로 분리, enum 적용

This commit is contained in:
2022-05-08 04:40:36 +09:00
parent 54a5a61bee
commit c32179347c
35 changed files with 463 additions and 345 deletions
+3 -1
View File
@@ -2,6 +2,8 @@
namespace sammo;
use sammo\Enums\InheritanceKey;
include "lib.php";
include "func.php";
//로그인 검사
@@ -58,7 +60,7 @@ foreach (GameConst::$allItems as $subItems) {
$items = [];
foreach (array_keys(General::INHERITANCE_KEY) as $key) {
foreach (InheritanceKey::cases() as $key) {
$items[$key] = $me->getInheritancePoint($key) ?? 0;
}