EAT FRUIT_TYPE_ALL

EAT FRUIT_TYPE_ACC
This commit is contained in:
Ino 2025-03-22 06:37:48 +09:00
parent 7436633630
commit 6022ec41c4
5 changed files with 16 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -907,6 +907,13 @@ public partial class ServerData
if (Farm.Eat.ContainsKey(key)) return Farm.Eat[key];
return 0;
}
public int Get_EatFruitAllCount()
{
var eat = 0;
foreach (var item in Farm.Eat)
eat += item.Value;
return eat;
}
public void Add_EatFruitCount(int fruitid, int amount)
{
var key = Get_Key(fruitid);
@ -1104,6 +1111,12 @@ public partial class ServerData
case 4: return table_classconfig.Ins.Get_PureStat(eStat.LUK, this);
}
break;
case ePurpose.EAT_FRUIT_TYPE_ACC:
return Get_EatFruitCount(data.n_MissionConditionValue);
case ePurpose.EAT_FRUIT_TYPE_ALL:
return Get_EatFruitAllCount();
default:
var key1 = Get_Key(group);
if (Mission.ContainsKey(key1))

View File

@ -39,6 +39,7 @@ public class MissionCard : CardBase
case ePurpose.TAKE_GOODS_LIMIT:
case ePurpose.CONSUME_GOODS:
case ePurpose.CONSUME_GOODS_ACC:
case ePurpose.EAT_FRUIT_TYPE_ACC:
{
var item = table_itemlist.Ins.Get_Data(m_Data.n_MissionConditionValue);
texts[0].text = DSUtil.Format(m_Data.n_MissionDesc, m_Data.l_MissionConditionCount, item.Get_Name());