3DMGAME 3DM首页 新闻中心 前瞻 | 评测 游戏库 热门 | 最新 攻略中心 攻略 | 秘籍 下载中心 游戏 | 汉化 购买正版 论坛

注册 登录

QQ登录

只需一步,快速开始

查看: 10951|回复: 47
打印 上一主题 下一主题

[原创] 自用修改备忘

  [复制链接]

14

主题

796

帖子

1343

积分

游戏狂人

Rank: 6Rank: 6

贡献度
105
金元
9033
积分
1343
精华
2
注册时间
2012-1-8
跳转到指定楼层
主题
发表于 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();
   
}



储存箱 几页数(124格)(好像要新开才有效)
    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;
            
}
        
}
















评分

3

查看全部评分

回复

使用道具 举报

0

主题

89

帖子

126

积分

中级玩家

Rank: 3Rank: 3

贡献度
0
金元
1261
积分
126
精华
0
注册时间
2019-1-14
舒服的沙发
发表于 2023-4-1 20:52 | 只看该作者

昆虫和钓鱼满星如何修改,捕获时满星
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|3DMGAME ( 京ICP备14006952号-1  沪公网安备 31011202006753号

GMT+8, 2026-3-29 07:20 , Processed in 0.583894 second(s), 17 queries , Memcached On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表