43 lines
1.3 KiB
C#
43 lines
1.3 KiB
C#
using asap.core;
|
|
using GameCore;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace cfg
|
|
{
|
|
public sealed partial class CollectingTargetReward
|
|
{
|
|
public int TokenRequiredB
|
|
{
|
|
get
|
|
{
|
|
PlayerItemData playerItemData = GContext.container.Resolve<PlayerItemData>();
|
|
FishingEventData fishingEventData = GContext.container.Resolve<FishingEventData>();
|
|
if (playerItemData == null || fishingEventData == null)
|
|
{
|
|
return TokenRequired;
|
|
}
|
|
return playerItemData.IntInflation(TokenRequired, fishingEventData.CollectingTargetInflation);
|
|
}
|
|
}
|
|
}
|
|
public sealed partial class RankTargets
|
|
{
|
|
public int TokenRequiredB
|
|
{
|
|
get
|
|
{
|
|
PlayerItemData playerItemData = GContext.container.Resolve<PlayerItemData>();
|
|
FishingEventData fishingEventData = GContext.container.Resolve<FishingEventData>();
|
|
if (playerItemData == null || fishingEventData == null)
|
|
{
|
|
return TokenRequired;
|
|
}
|
|
return playerItemData.IntInflation(TokenRequired, fishingEventData.RankTargetInflation);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|