本帖最后由 fanvalen 于 2023-11-8 21:25 编辑
先看效果图的
Database.Spices下添加
为了方便我把所有的材料都改成了米虱还不需要额外的其他材料
public Spices(ResourceSet parent) : base("Spices", parent)
{
this.PreservingSpice = new Spice(this, "PRESERVING_SPICE", new Spice.Ingredient[]
{
new Spice.Ingredient
{
IngredientSet = new Tag[]
{
"BasicSingleHarvestPlantSeed"
},
AmountKG = 0.1f
}
}, new Color(0.961f, 0.827f, 0.29f), Color.white, new AttributeModifier("RotDelta", 5f, "Spices", false, false, true), null, "spice_recipe1", null);
this.PilotingSpice = new Spice(this, "PILOTING_SPICE", new Spice.Ingredient[]
{
new Spice.Ingredient
{
IngredientSet = new Tag[]
{
"BasicSingleHarvestPlantSeed"
},
AmountKG = 0.1f
}
}, new Color(0.039f, 0.725f, 0.831f), Color.white, null, new AttributeModifier("SpaceNavigation", 100f, "Spices", false, false, true), "spice_recipe2", DlcManager.AVAILABLE_EXPANSION1_ONLY);
this.StrengthSpice = new Spice(this, "STRENGTH_SPICE", new Spice.Ingredient[]
{
new Spice.Ingredient
{
IngredientSet = new Tag[]
{
"BasicSingleHarvestPlantSeed"
},
AmountKG = 0.1f
}
}, new Color(0.588f, 0.278f, 0.788f), Color.white, null, new AttributeModifier("Strength", 100f, "Spices", false, false, true), "spice_recipe3", null);
this.MachinerySpice = new Spice(this, "MACHINERY_SPICE", new Spice.Ingredient[]
{
new Spice.Ingredient
{
IngredientSet = new Tag[]
{
"BasicSingleHarvestPlantSeed"
},
AmountKG = 0.1f
}
}, new Color(0.788f, 0.443f, 0.792f), Color.white, null, new AttributeModifier("Machinery", 100f, "Spices", false, false, true), "spice_recipe4", null);
this.MachinerySpice = new Spice(this, "dig", new Spice.Ingredient[]
{
new Spice.Ingredient
{
IngredientSet = new Tag[]
{
"BasicSingleHarvestPlantSeed"
},
AmountKG = 0.1f
}
}, new Color(0.788f, 0.443f, 0.792f), Color.white, null, new AttributeModifier("Digging", 100f, "Spices", false, false, true), "spice_recipe1", null);
this.MachinerySpice = new Spice(this, "Construction", new Spice.Ingredient[]
{
new Spice.Ingredient
{
IngredientSet = new Tag[]
{
"BasicSingleHarvestPlantSeed"
},
AmountKG = 0.1f
}
}, new Color(0.788f, 0.443f, 0.792f), Color.white, null, new AttributeModifier("Construction", 100f, "Spices", false, false, true), "spice_recipe2", null);
this.MachinerySpice = new Spice(this, "Athletics", new Spice.Ingredient[]
{
new Spice.Ingredient
{
IngredientSet = new Tag[]
{
"BasicSingleHarvestPlantSeed"
},
AmountKG = 0.1f
}
}, new Color(0.788f, 0.443f, 0.792f), Color.white, null, new AttributeModifier("Athletics", 100f, "Spices", false, false, true), "spice_recipe3", null);
this.MachinerySpice = new Spice(this, "Learning", new Spice.Ingredient[]
{
new Spice.Ingredient
{
IngredientSet = new Tag[]
{
"BasicSingleHarvestPlantSeed"
},
AmountKG = 0.1f
}
}, new Color(0.788f, 0.443f, 0.792f), Color.white, null, new AttributeModifier("Learning", 100f, "Spices", false, false, true), "spice_recipe4", null);
this.MachinerySpice = new Spice(this, "Cooking", new Spice.Ingredient[]
{
new Spice.Ingredient
{
IngredientSet = new Tag[]
{
"BasicSingleHarvestPlantSeed"
},
AmountKG = 0.1f
}
}, new Color(0.788f, 0.443f, 0.792f), Color.white, null, new AttributeModifier("Cooking", 100f, "Spices", false, false, true), "spice_recipe1", null);
this.MachinerySpice = new Spice(this, "Art", new Spice.Ingredient[]
{
new Spice.Ingredient
{
IngredientSet = new Tag[]
{
"BasicSingleHarvestPlantSeed"
},
AmountKG = 0.1f
}
}, new Color(0.788f, 0.443f, 0.792f), Color.white, null, new AttributeModifier("Art", 100f, "Spices", false, false, true), "spice_recipe2", null);
this.MachinerySpice = new Spice(this, "Botanist", new Spice.Ingredient[]
{
new Spice.Ingredient
{
IngredientSet = new Tag[]
{
"BasicSingleHarvestPlantSeed"
},
AmountKG = 0.1f
}
}, new Color(0.788f, 0.443f, 0.792f), Color.white, null, new AttributeModifier("Botanist", 100f, "Spices", false, false, true), "spice_recipe3", null);
this.MachinerySpice = new Spice(this, "Ranching", new Spice.Ingredient[]
{
new Spice.Ingredient
{
IngredientSet = new Tag[]
{
"BasicSingleHarvestPlantSeed"
},
AmountKG = 0.1f
}
}, new Color(0.788f, 0.443f, 0.792f), Color.white, null, new AttributeModifier("Ranching", 100f, "Spices", false, false, true), "spice_recipe4", null);
this.MachinerySpice = new Spice(this, "Caring", new Spice.Ingredient[]
{
new Spice.Ingredient
{
IngredientSet = new Tag[]
{
"BasicSingleHarvestPlantSeed"
},
AmountKG = 0.1f
}
}, new Color(0.788f, 0.443f, 0.792f), Color.white, null, new AttributeModifier("Caring", 100f, "Spices", false, false, true), "spice_recipe4", null);
}
汉化
STRINGS.ITEMS.SPICES
public class CONSTRUCTION
{
public static LocString NAME = UI.FormatAsLink("建造", "Construction");
public static LocString DESC = "临时增加建造属性.";
}
public class DIG
{
public static LocString NAME = UI.FormatAsLink("挖掘", "DIG");
public static LocString DESC = "临时增加挖掘属性.";
}
public class ATHLETICS
{
public static LocString NAME = UI.FormatAsLink("运动", "Athletics");
public static LocString DESC = "临时增加运动属性.";
}
public class LEARNING
{
public static LocString NAME = UI.FormatAsLink("科学", "Learning");
public static LocString DESC = "临时增加科学属性.";
}
public class COOKING
{
public static LocString NAME = UI.FormatAsLink("烹饪", "Cooking");
public static LocString DESC = "临时增加烹饪属性.";
}
public class CARING
{
public static LocString NAME = UI.FormatAsLink("医疗", "Caring");
public static LocString DESC = "临时增加医疗属性.";
}
public class ART
{
public static LocString NAME = UI.FormatAsLink("艺术", "Art");
public static LocString DESC = "临时增加艺术属性.";
}
public class BOTANIST
{
public static LocString NAME = UI.FormatAsLink("农业", "Botanist");
public static LocString DESC = "临时增加农业属性.";
}
public class RANCHING
{
public static LocString NAME = UI.FormatAsLink("照料", "Ranching");
public static LocString DESC = "临时增加畜牧属性.";
}
SpiceGrinderWorkable.OnStartWork改一下研磨时间
base.SetWorkTime(num * 5f);改成
base.SetWorkTime(1f);//只需1秒
|