From b0cc95e7bb46da07cb7b688a503f5d1695f9fa79 Mon Sep 17 00:00:00 2001 From: engsr6982 Date: Wed, 19 Feb 2025 22:21:30 +0800 Subject: [PATCH] fix: update config for land economy calculation formula and mob spawn event listener --- assets/lang/zh_CN.json | 2 +- include/pland/Config.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/lang/zh_CN.json b/assets/lang/zh_CN.json index ebbc9d1..dd93ad6 100644 --- a/assets/lang/zh_CN.json +++ b/assets/lang/zh_CN.json @@ -11,7 +11,7 @@ "allowPlace": "允许放置(方块、头颅、旗帜、等)", "allowAttackPlayer": "允许攻击玩家", "allowAttackAnimal": "允许攻击动物", - "allowAttackMob": "允许攻击实体(非动物)", + "allowAttackMonster": "允许攻击怪物", "allowOpenChest": "允许打开箱子", "allowPickupItem": "允许拾取物品", "allowThrowSnowball": "允许投掷雪球", diff --git a/include/pland/Config.h b/include/pland/Config.h index 4d9579f..b8e7776 100644 --- a/include/pland/Config.h +++ b/include/pland/Config.h @@ -9,7 +9,7 @@ namespace land { enum class EconomyKit : int { LegacyMoney, ScoreBoard }; struct Config { - int version{5}; + int version{6}; ll::io::LogLevel logLevel{ll::io::LogLevel::Info}; struct { @@ -39,12 +39,12 @@ struct Config { struct { struct { bool enabled{true}; - string calculate{"square * 25"}; // 计算公式 + string calculate{"square * 8 + height * 20"}; // 计算公式 } threeDimensionl; struct { bool enabled{true}; - string calculate{"square * 8 + height * 20"}; // 计算公式 + string calculate{"square * 25"}; // 计算公式 } twoDimensionl; struct { @@ -91,7 +91,7 @@ struct Config { bool SculkBlockGrowthBeforeEvent{true}; // 诡秘方块生长事件 bool SculkSpreadBeforeEvent{true}; // 诡秘蔓延事件 bool PlayerEditSignBeforeEvent{true}; // 玩家编辑告示牌事件 - bool SpawnedMobEvent{false}; // 生物生成事件(怪物和动物) + bool SpawnedMobEvent{true}; // 生物生成事件(怪物和动物) bool SculkCatalystAbsorbExperienceBeforeEvent{false}; // 幽匿催化体吸收经验事件 } listeners;