mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复拖动倍率导致数据变化的错误
This commit is contained in:
parent
8b8a1ba9c2
commit
d4223e6f5c
@ -165,6 +165,7 @@ namespace VPet_Simulator.Windows.Interface
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static Work Double(this Work work, int value)
|
public static Work Double(this Work work, int value)
|
||||||
{
|
{
|
||||||
|
if (value == 1) return work;
|
||||||
Work w = (Work)work.Clone();
|
Work w = (Work)work.Clone();
|
||||||
w.MoneyBase *= value;
|
w.MoneyBase *= value;
|
||||||
w.StrengthFood *= 0.48 + 0.6 * value;
|
w.StrengthFood *= 0.48 + 0.6 * value;
|
||||||
|
Loading…
Reference in New Issue
Block a user