TFC金属板与Create金属板修复和安山合金锌锭合成修复#23
Open
dalizi2333 wants to merge 7 commits into
Open
Conversation
…e cbc_melting.js and event_recipes.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
第一次维护工作简述
主要完成3项工作,分别是为已有自定义配方指定配方ID,隔离TFC金属板与Create金属板并重新建立关联,补充安山合金缺失的锌锭合成配方
1.为已有自定义配方指定配方ID
问题背景
cbc_melting.js中批量添加的熔炼配方采用自动生成的哈希 ID(如kubejs:shaped_abc123),难以定位和管理,于是决定开展手动指定配方ID的工作并非所有的配方都需要手动指定配方ID,如果在kjs脚本中一个物品在一个类型的配方中只有一种合成方式,那么KubeJS会自动生成
<命名空间>:<配方类型>/kjs/<产物名称>格式的配方ID所以仅针对
event_recipes.js与cbc_melting.js中的部分配方进行了调整解决方案
2.隔离TFC金属板与Create金属板并重新建立关联
问题背景
在当前客户端/服务端中,Create 模组的冲压板与 TFC 的锻造薄板存在成本不平衡问题:
create:copper_sheettfc:metal/sheet/coppertfc:metal/sheet/coppercreate:brass_sheettfc:metal/sheet/brasstfc:metal/sheet/brasscreate:iron_sheettfc:metal/sheet/wrought_ironcreate:golden_sheettfc:metal/sheet/goldcreatedeco:zinc_sheettfc:metal/sheet/zincTFC 金属温度参考
铁的特殊处理
重要:铁板加热应产出铸铁液(
tfc:metal/cast_iron),而非纯铁液。冲压铁板塑形应产出锻铁板(tfc:metal/sheet/wrought_iron)。问题影响
Create 的金属板只需要一个金属锭就能冲压得到,但却能熔化出两个金属锭量的熔融金属,这意味着可以通过反复熔炼并冲压的方式无限刷取金属锭,严重破坏游戏经济平衡。
配方溯源
当前 TFC 模组中的加热(
kubejs:tfc/heating)配方为了自动兼容科技模组的量产金属板手段,直接使用了如#c:sheets/<金属类型>的公共标签作为输入,这导致同样属于该标签的 Create 金属板被误判为 TFC 锻造板进行熔炼。解决方案
步骤一:隔离配方标签
TFC 相关模组(
['tfc','firmalife','tfcastikorcarts','tfc_items','tfcfertigation'])不再自动识别#c:sheets/<金属类型>标签,而是创建独立的kubejs:tfc_single_sheets/<金属类型>标签,确保 Create 金属板不会被当成 TFC 锻造板去熔炼。步骤二:建立关联配方
重新建立 Create 冲压板与 TFC 锻造板之间的合理转换途径:
配置数据组织结构优化
为方便后续维护和调试,将
stamped_sheets_fix.js中的配置数据(otherModPlateMap和tfcMods)从分散位置集中到脚本开头的"配置数据区域":优化效果:配置数据集中在脚本开头,便于快速定位和修改;无需处理文件加载、路径、全局对象等复杂问题。
3. 安山合金锌锭合成修复
问题背景
在当前客户端/服务端中,Create 模组的安山合金只能使用锻铁锭进行合成
但根据Create模组中已有的配方,锌应该能完全替代铁去参与合成
解决方案
总结
本次维护工作共完成 3 项核心任务:
event_recipes.js、cbc_melting.jsstamped_sheets_fix.jsevent_recipes.js技术亮点: