mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
更新 +支持ISave 接口
This commit is contained in:
parent
48f1bc88f0
commit
da3213bb77
@ -154,7 +154,7 @@ namespace VPet_Simulator.Core
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 变化 心情
|
/// 变化 心情
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public double ChangeFeeling = 0;
|
public double ChangeFeeling { get; set; } = 0;
|
||||||
public void FeelingChange(double value)
|
public void FeelingChange(double value)
|
||||||
{
|
{
|
||||||
ChangeFeeling += value;
|
ChangeFeeling += value;
|
||||||
@ -174,7 +174,7 @@ namespace VPet_Simulator.Core
|
|||||||
{
|
{
|
||||||
get => likability; set
|
get => likability; set
|
||||||
{
|
{
|
||||||
int max = 90 + Level * 10;
|
var max = LikabilityMax;
|
||||||
value = Math.Max(0, value);
|
value = Math.Max(0, value);
|
||||||
if (value > max)
|
if (value > max)
|
||||||
{
|
{
|
||||||
@ -260,6 +260,9 @@ namespace VPet_Simulator.Core
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[Line(name: "mode")]
|
[Line(name: "mode")]
|
||||||
public ModeType Mode { get; set; } = ModeType.Nomal;
|
public ModeType Mode { get; set; } = ModeType.Nomal;
|
||||||
|
|
||||||
|
public double LikabilityMax => 90 + Level * 10;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 计算宠物当前状态
|
/// 计算宠物当前状态
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -86,7 +86,10 @@ namespace VPet_Simulator.Core
|
|||||||
/// 修改心情
|
/// 修改心情
|
||||||
/// </summary>
|
/// </summary>
|
||||||
void FeelingChange(double value);
|
void FeelingChange(double value);
|
||||||
|
/// <summary>
|
||||||
|
/// 变化 心情
|
||||||
|
/// </summary>
|
||||||
|
double ChangeFeeling { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 心情
|
/// 心情
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -26,7 +26,7 @@ namespace VPet_Simulator.Windows.Interface
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public GameSave_v2(string petname)
|
public GameSave_v2(string petname)
|
||||||
{
|
{
|
||||||
GameSave = new IGameSave(petname);
|
GameSave = new GameSave(petname);
|
||||||
Statistics = new Statistics();
|
Statistics = new Statistics();
|
||||||
}
|
}
|
||||||
protected void load(ILPS lps, Statistics oldStatistics = null, IGameSave oldGameSave = null, ILPS olddata = null)
|
protected void load(ILPS lps, Statistics oldStatistics = null, IGameSave oldGameSave = null, ILPS olddata = null)
|
||||||
@ -44,7 +44,7 @@ namespace VPet_Simulator.Windows.Interface
|
|||||||
long hash;
|
long hash;
|
||||||
if (vpet != null)
|
if (vpet != null)
|
||||||
{
|
{
|
||||||
GameSave = IGameSave.Load(vpet);
|
GameSave = Core.GameSave.Load(vpet);
|
||||||
hash = vpet.GetInt64("hash");
|
hash = vpet.GetInt64("hash");
|
||||||
if (vpet.Remove("hash"))
|
if (vpet.Remove("hash"))
|
||||||
{
|
{
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
%1 mshta vbscript:createobject("shell.application").shellexecute("%~s0","::","","runas",1)(window.close)&exit
|
%1 mshta vbscript:createobject("shell.application").shellexecute("%~s0","::","","runas",1)(window.close)&exit
|
||||||
cd /d %~dp0
|
cd /d %~dp0
|
||||||
|
|
||||||
mklink /d "%~dp0\bin\x64\Debug\net462\mod" "%~dp0\mod"
|
mklink /d "%~dp0\bin\x64\Debug\net8.0-windows\mod" "%~dp0\mod"
|
||||||
|
mklink /d "%~dp0\bin\x64\Debug\net8.0-windows\mod" "%~dp0\mod"
|
||||||
|
|
||||||
echo The following is the automatic link generation for other related MODs. If an error is prompted, it is a normal phenomenon and can be ignored
|
echo The following is the automatic link generation for other related MODs. If an error is prompted, it is a normal phenomenon and can be ignored
|
||||||
|
|
||||||
mklink /d "%~dp0\bin\x86\Debug\net462\mod" "%~dp0\mod"
|
mklink /d "%~dp0\bin\x86\Debug\net8.0-windows\mod" "%~dp0\mod"
|
||||||
mklink /d "%~dp0\bin\x64\Release\net462\mod" "%~dp0\mod"
|
mklink /d "%~dp0\bin\x64\Release\net8.0-windows\mod" "%~dp0\mod"
|
||||||
mklink /d "%~dp0\..\VPet.Solution\bin\Debug\mod" "%~dp0\mod"
|
mklink /d "%~dp0\..\VPet.Solution\bin\Debug\net8.0-windows\mod" "%~dp0\mod"
|
||||||
|
|
||||||
mklink /d "%~dp0\mod\0001_ModMaker" "%~dp0\..\..\VPet.ModMaker\0001_ModMaker"
|
mklink /d "%~dp0\mod\0001_ModMaker" "%~dp0\..\..\VPet.ModMaker\0001_ModMaker"
|
||||||
mklink /d "%~dp0\mod\1100_DemoClock" "%~dp0\..\..\VPet.Plugin.Demo\VPet.Plugin.DemoClock\1100_DemoClock"
|
mklink /d "%~dp0\mod\1100_DemoClock" "%~dp0\..\..\VPet.Plugin.Demo\VPet.Plugin.DemoClock\1100_DemoClock"
|
||||||
|
Loading…
Reference in New Issue
Block a user