mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
如果提起y为0, 则不加载这一系列参数
This commit is contained in:
parent
a45ff1c2dd
commit
a987618cd2
@ -289,12 +289,12 @@ namespace VPet_Simulator.Core
|
||||
/// </summary>
|
||||
public void Set(LpsDocument lps)
|
||||
{
|
||||
if (lps.FindLine("touchhead") != null)
|
||||
if (lps.FindLine("touchhead") != null && lps["touchhead"][(gdbe)"py"] != 0)
|
||||
{
|
||||
TouchHeadLocate = new Point(lps["touchhead"][(gdbe)"px"], lps["touchhead"][(gdbe)"py"]);
|
||||
TouchHeadSize = new Size(lps["touchhead"][(gdbe)"sw"], lps["touchhead"][(gdbe)"wh"]);
|
||||
}
|
||||
if (lps.FindLine("touchbody") != null)
|
||||
if (lps.FindLine("touchbody") != null && lps["touchbody"][(gdbe)"py"] != 0)
|
||||
{
|
||||
TouchBodyLocate = new Point(lps["touchbody"][(gdbe)"px"], lps["touchbody"][(gdbe)"py"]);
|
||||
TouchBodySize = new Size(lps["touchbody"][(gdbe)"sw"], lps["touchbody"][(gdbe)"sh"]);
|
||||
@ -302,13 +302,14 @@ namespace VPet_Simulator.Core
|
||||
|
||||
if (lps.FindLine("touchraised") != null)
|
||||
{
|
||||
if (lps["touchraised"][(gdbe)"happy_py"] != 0)
|
||||
TouchRaisedLocate = new Point[] {
|
||||
new Point(lps["touchraised"].GetDouble("happy_px", TouchRaisedLocate[0].X), lps["touchraised"].GetDouble("happy_py", TouchRaisedLocate[0].Y)),
|
||||
new Point(lps["touchraised"].GetDouble("nomal_px", TouchRaisedLocate[1].X), lps["touchraised"].GetDouble("nomal_py", TouchRaisedLocate[1].Y)),
|
||||
new Point(lps["touchraised"].GetDouble("poorcondition_px", TouchRaisedLocate[2].X), lps["touchraised"].GetDouble("poorcondition_py", TouchRaisedLocate[2].Y)),
|
||||
new Point(lps["touchraised"].GetDouble("ill_px", TouchRaisedLocate[3].X), lps["touchraised"].GetDouble("ill_py", TouchRaisedLocate[3].Y))
|
||||
};
|
||||
|
||||
if (lps["touchraised"][(gdbe)"happy_sh"] != 0)
|
||||
TouchRaisedSize = new Size[] {
|
||||
new Size(lps["touchraised"].GetDouble("happy_sw", TouchRaisedSize[0].Width), lps["touchraised"].GetDouble("happy_sh", TouchRaisedSize[0].Height)),
|
||||
new Size(lps["touchraised"].GetDouble("nomal_sw", TouchRaisedSize[1].Width), lps["touchraised"].GetDouble("nomal_sh", TouchRaisedSize[1].Height)),
|
||||
@ -316,7 +317,7 @@ namespace VPet_Simulator.Core
|
||||
new Size(lps["touchraised"].GetDouble("ill_sw", TouchRaisedSize[3].Width), lps["touchraised"].GetDouble("ill_sh", TouchRaisedSize[3].Height))
|
||||
};
|
||||
}
|
||||
if (lps.FindLine("raisepoint") != null)
|
||||
if (lps.FindLine("raisepoint") != null && lps["raisepoint"][(gdbe)"happy_y"] != 0)
|
||||
{
|
||||
RaisePoint = new Point[] {
|
||||
new Point(lps["raisepoint"].GetDouble("happy_x",RaisePoint[0].X), lps["raisepoint"].GetDouble("happy_y",RaisePoint[0].Y)),
|
||||
|
@ -67,7 +67,7 @@ namespace VPet_Simulator.Windows.Interface
|
||||
lvlimit *= 10;
|
||||
if (Math.Abs(work.MoneyBase) > lvlimit) //等级获取速率限制
|
||||
return true;
|
||||
return rel > 1.3; // 推荐rel为1左右 超过1.3就是超模
|
||||
return rel > 1.4; // 推荐rel为1左右 超过1.3就是超模
|
||||
}
|
||||
/// <summary>
|
||||
/// 数值梯度下降法 修复超模工作
|
||||
|
@ -166,8 +166,16 @@ namespace VPet_Simulator.Windows.Interface
|
||||
Grid PetGrid { get; }
|
||||
/// <summary>
|
||||
/// 当创建/加入新的多人联机窗口(访客表)时触发
|
||||
/// 如果你想写联机功能,请监听这个事件
|
||||
/// </summary>
|
||||
event Action<IMPWindows> MutiPlayerHandle;
|
||||
/// <summary>
|
||||
/// 当创建/加入新的多人联机窗口(访客表)时触发
|
||||
/// 用于给MOD定义自己的联机窗口时准备的, 一般联机功能不需要调用这个
|
||||
/// </summary>
|
||||
/// <param name="mp"></param>
|
||||
void MutiPlayerStart(IMPWindows mp);
|
||||
|
||||
/// <summary>
|
||||
/// 显示吃东西(夹层)动画
|
||||
/// </summary>
|
||||
@ -179,6 +187,8 @@ namespace VPet_Simulator.Windows.Interface
|
||||
/// </summary>
|
||||
/// <param name="item">物品</param>
|
||||
void TakeItem(Food item);
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -2062,7 +2062,7 @@ namespace VPet_Simulator.Windows
|
||||
TextBlock tlvplus;
|
||||
|
||||
public event Action<IMPWindows> MutiPlayerHandle;
|
||||
internal void MutiPlayerStart(IMPWindows mp)
|
||||
public void MutiPlayerStart(IMPWindows mp)
|
||||
{
|
||||
MutiPlayerHandle?.Invoke(mp);
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ public partial class MainWindow
|
||||
/// <summary>
|
||||
/// 版本号
|
||||
/// </summary>
|
||||
public int version { get; } = 11003;
|
||||
public int version { get; } = 11004;
|
||||
/// <summary>
|
||||
/// 版本号
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user