diff --git a/CHANGELOG.md b/CHANGELOG.md index 25f3783..c763514 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,18 +5,21 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [1.1.0] - 2024-10-? +## [1.1.0] - 2024-10-7 ### Added - 支持地皮合并 - 新增 `PlotRoad`、`PlotCross`、`Polygon` 类 +- 新增 液体流动、苔藓快蔓延、幽匿 事件处理 ### Changed - 重构 `EconomySystem` 类 - 重构 `PlotShopGUI` 逻辑 - 重构表单 `_addSharePlayer` +- 重构事件处理 +- LegacyMoney 更改为可选依赖 (感谢 @zimuya4153 提供的解决方案) ## [1.0.2] - 2024-8-28 @@ -61,7 +64,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.6.0] - 2024-07-23 -### Added: +### Added - 配置文件 `plotWorld` 新增 `eventListener` 配置 - 配置文件 `eventListener` 新增 `onSculkSpreadListener` 事件开关 diff --git a/README.md b/README.md index 1c99f4b..e53cf1b 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ - 按模板生成地皮 - [x] 模板记录器 - 制作地皮模板 +- [x] 地皮合并 ## 安装 @@ -119,22 +120,17 @@ package("xxx") "templateFile": "TestTemplate.json" // 模板文件名,模板文件必须放置在 config 目录下 }, "economy": { - "enable": false, // 是否启用经济系统 - "type": "LegacyMoney", // 经济系统类型 LegacyMoney / ScoreBoard - "scoreName": "", // 计分板名称 - "economicName": "金币" // 经济名称 + "enabled": false, // 是否启用经济系统 + "kit": "LegacyMoney", // 经济系统类型 LegacyMoney / ScoreBoard (如果设置 LegacyMoney 则需要安装 LegacyMoney) + "scoreboard": "", // 计分板名称 + "currency": "金币" // 经济名称 }, "plotWorld": { "maxBuyPlotCount": 25, // 玩家最大持有地皮数量 "buyPlotPrice": 1000, // 购买地皮价格 "inPlotCanFly": true, // 是否启用地皮飞行 "playerSellPlotTax": 0.1, // 玩家出售地皮税率 - "spawnMob": false, // 地皮世界是否生成实体 - - "eventListener": { - "onSculkSpreadListener": true, // 禁止幽匿块蔓延(地皮维度) - "onSculkBlockGrowthListener": true // 禁止幽匿尖啸体生成(地皮维度) - } + "spawnMob": false // 地皮世界是否生成实体 }, "switchDim": { // 地皮维度和主世界切换传送坐标,此项可在游戏中设置 diff --git a/include/plotcraft/Config.h b/include/plotcraft/Config.h index facca46..9056843 100644 --- a/include/plotcraft/Config.h +++ b/include/plotcraft/Config.h @@ -7,7 +7,6 @@ #include - namespace plot { enum class PlotGeneratorType : int { Default, Template }; @@ -42,11 +41,6 @@ struct Config { int maxMergePlotCount = 4; // 最大合并地皮数量 int baseMergePlotPrice = 1000; // 基础合并地皮价格 double mergePriceMultiplier = 1.1; // 合并价格倍率,默认为1.0(保持基础价格不变) - - struct { - bool onSculkSpreadListener{true}; - bool onSculkBlockGrowthListener{true}; - } eventListener; } plotWorld; struct { diff --git a/include/plotcraft/Global.h b/include/plotcraft/Global.h index 4f1cfe5..c09f36b 100644 --- a/include/plotcraft/Global.h +++ b/include/plotcraft/Global.h @@ -14,7 +14,7 @@ // Config -#define CONFIG_VERSION 9 +#define CONFIG_VERSION 10 // PlotMetadata #define METADATA_VERSION 7 diff --git a/tooth.json b/tooth.json index 2b26bc0..ff30984 100644 --- a/tooth.json +++ b/tooth.json @@ -1,7 +1,7 @@ { "format_version": 2, "tooth": "github.com/engsr6982/PlotCraft", - "version": "1.0.2", + "version": "1.1.0", "info": { "name": "PlotCraft - 地皮插件", "description": "地皮世界|地皮购买|地皮出售|地皮共享|地皮评论", @@ -14,7 +14,7 @@ "plotcraft" ] }, - "asset_url": "https://github.com/engsr6982/PlotCraft/releases/download/v1.0.1/PlotCraft-windows-x64.zip", + "asset_url": "https://github.com/engsr6982/PlotCraft/releases/download/v1.1.0/PlotCraft-windows-x64.zip", "prerequisites": { "github.com/LiteLDev/LeviLamina": ">=0.13.4 <0.14.0", "github.com/LiteLDev/MoreDimensions": "0.4.1"