fanvalen 发表于 2025-1-10 20:51

谷神星还在刷小人的抗寒皮肤,直接把衣服穿厚点呗

ClothingWearer






把下面
public static readonly ClothingInfo BASIC_CLOTHING = new ClothingInfo(EQUIPMENT.PREFABS.COOL_VEST.GENERICNAME, -5, 0.0025f, -1.25f);


                public static readonly ClothingInfo WARM_CLOTHING = new ClothingInfo(EQUIPMENT.PREFABS.WARM_VEST.NAME, 0, 0.008f, -1.25f);


                public static readonly ClothingInfo COOL_CLOTHING = new ClothingInfo(EQUIPMENT.PREFABS.COOL_VEST.NAME, -10, 0.0005f, 0f);


                public static readonly ClothingInfo FANCY_CLOTHING = new ClothingInfo(EQUIPMENT.PREFABS.FUNKY_VEST.NAME, 30, 0.0025f, -1.25f);


                public static readonly ClothingInfo CUSTOM_CLOTHING = new ClothingInfo(EQUIPMENT.PREFABS.CUSTOMCLOTHING.NAME, 40, 0.0025f, -1.25f);


                public static readonly ClothingInfo SLEEP_CLINIC_PAJAMAS = new ClothingInfo(EQUIPMENT.PREFABS.CUSTOMCLOTHING.NAME, 40, 0.0025f, -1.25f);

改成


**** Hidden Message *****

勇气11 发表于 2025-1-11 16:56

ClothingInfo

138532 发表于 2025-2-7 11:26

感谢分享

topazhu 发表于 2025-2-17 02:19

感谢分享

legars 发表于 2025-2-20 17:34

ddddddddddddddddddddddddddddddddd

Ron智 发表于 2025-3-1 23:10

顶!!!!!!!!!!!!

yintime 发表于 2025-3-3 18:55

感谢分享

shishenshisha 发表于 2025-3-5 22:12

楼主,电池自动恢复能教一下吗?求

fanvalen 发表于 2025-3-6 21:58

shishenshisha 发表于 2025-3-5 22:12
楼主,电池自动恢复能教一下吗?求

BatteryConfig.DoPostConfigureComplete
找到下面这句

battery.joulesLostPerSecond = 1.6666666f;

改成
battery.joulesLostPerSecond = -1.6666666f;//数字可以自行更改,前面的负号保留


同理中型电池和智能电池也是一样
BatteryMediumConfig
BatterySmartConfig

shishenshisha 发表于 2025-3-6 22:03

fanvalen 发表于 2025-3-6 21:58
BatteryConfig.DoPostConfigureComplete
找到下面这句



他会突破上限,能不能满了就不回复了

fanvalen 发表于 2025-3-6 23:09

shishenshisha 发表于 2025-3-6 22:03
他会突破上限,能不能满了就不回复了

那就做一个限制

Battery.ConsumeEnergy
找到下面这句

this.joulesAvailable = Mathf.Max(0f, this.JoulesAvailable - joules);

改成
this.joulesAvailable = Math.Clamp(Mathf.Max(0f, this.JoulesAvailable - joules),0f,this.capacity);
页: [1]
查看完整版本: 谷神星还在刷小人的抗寒皮肤,直接把衣服穿厚点呗