This commit is contained in:
Tourswen
2025-11-30 14:39:22 +08:00
parent 14a2cf542c
commit 6a5c5bd9aa
60 changed files with 3121 additions and 670 deletions

View File

@@ -3,16 +3,16 @@ using Verse;
namespace WulaFallenEmpire
{
public class CompProperties_ValueConverter : CompProperties
public class CompProperties_ValueConverter : CompProperties_Launchable_TransportPod
{
public float conversionRate = 1.0f; // 价值转换倍率
public ThingDef outputThingDef = null; // 输出物品定义,默认为白银
public bool destroyAfterConversion = true; // 转换后是否销毁建筑
public float conversionRatio = 0.5f; // 默认50%的转换比例
public ThingDef targetCurrency = ThingDefOf.Silver; // 目标货币,默认为白银
// 新增:垃圾屏蔽配置 - 专门为价值转换器配置
public bool garbageShieldEnabled = true; // 默认启用垃圾屏蔽
public string garbageShieldUIEventDefName = "Wula_UI_Legion_Reply_1"; // 默认UI事件
public bool checkNonTradableItems = true; // 专门为价值转换器启用不可交易物品检查
// 垃圾屏蔽配置
public bool garbageShieldEnabled = false;
public string garbageShieldUIEventDefName = "Wula_UI_Legion_Reply_1";
public CompProperties_ValueConverter()
{
this.compClass = typeof(CompValueConverter);