Files
MinFt/Client/Assets/Scripts/Tables/EnergyDef.cs
Liubing\LB 3d8d4d18f3 first commit
先修复一下,错误的场景

删除不必要的钓场资产

修复into场景

update:更新meta文件,修复报错

update:修复资源

修复第一章节建造

修复建造第三章

update:删除多余内容

update:更新README.md

update:还原图标

update:更新README

update:更新配置
2026-04-28 02:17:22 +08:00

116 lines
4.2 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using Bright.Serialization;
using System.Collections.Generic;
using SimpleJSON;
namespace cfg
{
public sealed partial class EnergyDef : Bright.Config.BeanBase
{
public JSONNode json;
public EnergyDef(JSONNode _json)
{
{ if(!_json["Mag"].IsNumber) { throw new SerializationException(); } Mag = _json["Mag"]; }
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
{ if(!_json["ShopID"].IsNumber) { throw new SerializationException(); } ShopID = _json["ShopID"]; }
{ if(!_json["PackID"].IsNumber) { throw new SerializationException(); } PackID = _json["PackID"]; }
{ if(!_json["Energy"].IsNumber) { throw new SerializationException(); } Energy = _json["Energy"]; }
{ if(!_json["FishBuffEnergy"].IsNumber) { throw new SerializationException(); } FishBuffEnergy = _json["FishBuffEnergy"]; }
{ if(!_json["RetryCost"].IsNumber) { throw new SerializationException(); } RetryCost = _json["RetryCost"]; }
{ if(!_json["SupplyDrop"].IsNumber) { throw new SerializationException(); } SupplyDrop = _json["SupplyDrop"]; }
{ if(!_json["LuckMultipier"].IsNumber) { throw new SerializationException(); } LuckMultipier = _json["LuckMultipier"]; }
json = _json;
PostInit();
}
public EnergyDef(int Mag, string Icon, int ShopID, int PackID, int Energy, int FishBuffEnergy, int RetryCost, int SupplyDrop, float LuckMultipier )
{
this.Mag = Mag;
this.Icon = Icon;
this.ShopID = ShopID;
this.PackID = PackID;
this.Energy = Energy;
this.FishBuffEnergy = FishBuffEnergy;
this.RetryCost = RetryCost;
this.SupplyDrop = SupplyDrop;
this.LuckMultipier = LuckMultipier;
PostInit();
}
public static EnergyDef DeserializeEnergyDef(JSONNode _json)
{
return new EnergyDef(_json);
}
/// <summary>
/// 体力倍率
/// </summary>
public int Mag { get; private set; }
public string Icon { get; private set; }
/// <summary>
/// 体力不足时,兑换弹窗高级挡位显示哪个
/// </summary>
public int ShopID { get; private set; }
public int PackID { get; private set; }
/// <summary>
/// ≥该值时,出现该倍率<br/>如果是-1则只能通过FishBuff解锁默认锁定解锁后需要特殊处理
/// </summary>
public int Energy { get; private set; }
/// <summary>
/// 处于超级体力倍率加成下,体力≥该值时,出现该倍率<br/>如果Energy无法解锁当前倍率但FishBuffEnergy可以解锁则显示特殊外框
/// </summary>
public int FishBuffEnergy { get; private set; }
/// <summary>
/// 折扣率*100后向上取整<br/>如果折扣率 = 0则不显示折扣标签
/// </summary>
public int RetryCost { get; private set; }
/// <summary>
/// 对应SupplyDrop表主键
/// </summary>
public int SupplyDrop { get; private set; }
/// <summary>
/// 影响 大类幸运值 和 鱼种幸运值
/// </summary>
public float LuckMultipier { get; private set; }
public const int __ID__ = 1081379901;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary<string, object> _tables)
{
PostResolve();
}
public void TranslateText(System.Func<string, string, string> translator)
{
}
public override string ToString()
{
return "{ "
+ "Mag:" + Mag + ","
+ "Icon:" + Icon + ","
+ "ShopID:" + ShopID + ","
+ "PackID:" + PackID + ","
+ "Energy:" + Energy + ","
+ "FishBuffEnergy:" + FishBuffEnergy + ","
+ "RetryCost:" + RetryCost + ","
+ "SupplyDrop:" + SupplyDrop + ","
+ "LuckMultipier:" + LuckMultipier + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}