渔民小镇 1 tahun lalu
induk
melakukan
a6535fcb2d

+ 0 - 38
logic/a-logic-common/src/main/java/com/iohao/mmo/LogicApplication.java

@@ -1,38 +0,0 @@
-/*
- * ioGame
- * Copyright (C) 2021 - 2023  渔民小镇 (262610965@qq.com、luoyizhu@gmail.com) . All Rights Reserved.
- * # iohao.com . 渔民小镇
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- */
-package com.iohao.mmo;
-
-import lombok.extern.slf4j.Slf4j;
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-
-/**
- * @author 渔民小镇
- * @date 2023-07-26
- */
-@Slf4j
-@SpringBootApplication
-public class LogicApplication {
-    public static void main(String[] args) {
-        //
-        SpringApplication.run(LogicApplication.class, args);
-
-        log.info("LogicApplication : {}", args);
-    }
-}

+ 9 - 14
one-client/src/main/java/com/iohao/mmo/client/input/EquipInputCommandRegion.java

@@ -30,6 +30,7 @@ import com.iohao.mmo.common.provide.kit.JsonKit;
 import com.iohao.mmo.equip.cmd.EquipCmd;
 import com.iohao.mmo.equip.proto.*;
 import lombok.extern.slf4j.Slf4j;
+
 import java.util.Arrays;
 import java.util.List;
 
@@ -85,14 +86,14 @@ public class EquipInputCommandRegion extends AbstractInputCommandRegion {
             ScannerKit.log(() -> log.info("请输入体质、魔力、力量、耐力、敏捷,格式[体质-魔力-力量-耐力-敏捷]"));
             String inputValue = ScannerKit.nextLine("1-1-1-1-1");
             SplitParam param = new SplitParam(inputValue);
-            int constitution = param.getInt(0,0);
-            int magicPower = param.getInt(1,0);
-            int power = param.getInt(2,0);
-            int endurance = param.getInt(3,0);
-            int agile = param.getInt(4,0);
+            int constitution = param.getInt(0, 0);
+            int magicPower = param.getInt(1, 0);
+            int power = param.getInt(2, 0);
+            int endurance = param.getInt(3, 0);
+            int agile = param.getInt(4, 0);
 
             ElseEquipPropertyMessage elseEquipPropertyMessage =
-                    new ElseEquipPropertyMessage(constitution,magicPower,power,endurance,agile);
+                    new ElseEquipPropertyMessage(constitution, magicPower, power, endurance, agile);
             EquipMessage equipMessage = new EquipMessage();
             equipMessage.elseEquipProperty = elseEquipPropertyMessage;
             equipMessage.id = id;
@@ -132,7 +133,7 @@ public class EquipInputCommandRegion extends AbstractInputCommandRegion {
             List<String> idList = Arrays.asList(ids.split("-"));
 
             // 请求参数
-            StringValueList listValue =  WrapperKit.ofListStringValue(idList);
+            StringValueList listValue = WrapperKit.ofListStringValue(idList);
             return listValue;
         };
 
@@ -141,12 +142,6 @@ public class EquipInputCommandRegion extends AbstractInputCommandRegion {
             log.info("装备属性信息 : {}", value);
         }).setDescription("批量删除装备").setInputRequestData(inputRequestData);
 
-        // 10-10 初始化装备库
-        ofCommand(EquipCmd.initEquipTemplate).callback(EquipTemplateMessage.class, result -> {
-            EquipTemplateMessage value = result.getValue();
-            log.info("装备库信息 : {}", value);
-        }).setDescription("初始化装备库");
-
         // 10-13 根据装备库列表批量随机新的装备
         inputRequestData = () -> {
             ScannerKit.log(() -> log.info(
@@ -156,7 +151,7 @@ public class EquipInputCommandRegion extends AbstractInputCommandRegion {
             List<String> itemTypeIdList = Arrays.asList(itemTypeIds.split("-"));
 
             // 请求参数
-            StringValueList listValue =  WrapperKit.ofListStringValue(itemTypeIdList);
+            StringValueList listValue = WrapperKit.ofListStringValue(itemTypeIdList);
 
             return listValue;
         };