psyduck197 发表于 2019-10-12 09:51

自用修改备忘

本帖最后由 psyduck197 于 2019-10-13 19:08 编辑

DORAEMON STORY OF SEASONS\DORaEMON STORY OF SEASONS_Data\Managed\Assembly-CSharp.dll
肥料效果
public static class Crop



      private static readonly Dictionary<int, float> UpgradeValueTable = new Dictionary<int, float>
      {
            {
                Item.ID_FERTILIZER,
                100f
            },
            {
                Item.ID_HIGH_QUALITY_FERTILIZER,
                200f
            }
      };



作物生长(红字要加)
public class CropModel : INullableModel


public void Grow()
    {
      if (!this.CanHarvest && !this.IsWithered)
      {
            this.mGrowth += 1;
      }
      if (this.mGrowth > this.Master.HarvestDays)
      {
            this.mGrowth = this.Master.HarvestDays;
      }
    }

18点贩卖
public class ShippingBoxModel : StorageModel


private int GetSales()
    {
      int num = 0;
      for (int i = 0; i < this.mSlots.Length; i++)
      {
            if (this.mSlots[i != null)
            {
                num += this.mSlots[i.SellingPrice * this.mSlots[i.Count * 1;
            }
            if (num >= Character.Player.MAX_MONEY)
            {
                return Character.Player.MAX_MONEY;
            }
      }
      return num;
    }






npc好感
public class NpcModel : CharacterModel


    public void AddLikabilityDegree(int value)
    {
      this.mLikabilityDegree = Mathf.Clamp(this.mLikabilityDegree + value * 1, Character.Npc.LikabilityDegree.MIN, Character.Npc.LikabilityDegree.MAX);
    }


体力消耗
public class StaminaModel : INullableModel



    public void Consume(int value)
    {
      int min = (!this.CanConsume) ? this.mNow : 0;
      this.mNow -= value;
      this.mNow = Mathf.Clamp(this.mNow, min, this.mMax);
    }


道具消耗
public class InventoryModel : ItemSlotModel


public bool TryReduceItemInHand(int count)
    {
      int index = Array.FindIndex<ItemModel>(this.mSlots, (ItemModel item) => item != null && this.mQuickSlots[this.mQuickSlotIndex != null && item.IsSame(this.mQuickSlots[this.mQuickSlotIndex]));
      if (index == -1)
      {
            return false;
      }
      if (this.mSlots[index == null || this.mSlots[index.Count < count)
      {
            return false;
      }
      ItemModel[] array = (from item in this.mQuickSlots
      where item != null && item.IsSame(this.mSlots[index])
      select item).ToArray<ItemModel>();
      this.mSlots[index.Count -= count;
      ItemModel[] array2 = array;
      for (int j = 0; j < array2.Length; j++)
      {
            array2[j.Count = this.mSlots[index.Count;
      }
      if (this.mSlots[index.Count == 0)
      {
            this.mSlots[index = null;
      }
      for (int i = 0; i < this.mQuickSlots.Length; i++)
      {
            if (this.mQuickSlots[i != null && this.mQuickSlots[i.Count == 0)
            {
                this.mQuickSlots[i = null;
            }
      }
      return true;
    }



人物跑速         
public static class Character
            public static readonly float RUN_SPEED = 7f;






Animal好感

public class AnimalModel : INullableModel

    public void AddAffection(int value)
    {
      this.mAffectionDegree = Mathf.Min(1000, Mathf.Max(0, this.mAffectionDegree + value* 1));
      this.CheckHarvestItem();
    }



储存箱 几页数(1页 24格)(好像要新开才有效)
    public static class Storage
    {
      
      public static int GetInitialTabCount(Storage.TypeEnum storage_type)
      {
            switch (storage_type)
            {
            case Storage.TypeEnum.Chest:
                return 3;
            case Storage.TypeEnum.Refrigerator:
                return 4;
            case Storage.TypeEnum.MaterialStoringSite:
                return 4;
            case Storage.TypeEnum.ShippingBox:
                return 5;
            default:
                return 0;
            }
      }
















3dm_13807398 发表于 2023-4-1 20:52

psyduck197 发表于 2019-10-13 22:56
我是没遇过BUG




昆虫和钓鱼满星如何修改,捕获时满星
页: [1]
查看完整版本: 自用修改备忘