Fix Kasen beast guide rune refresh
|
Before Width: | Height: | Size: 268 KiB After Width: | Height: | Size: 156 KiB |
|
Before Width: | Height: | Size: 260 KiB After Width: | Height: | Size: 156 KiB |
|
Before Width: | Height: | Size: 255 KiB After Width: | Height: | Size: 148 KiB |
|
Before Width: | Height: | Size: 268 KiB After Width: | Height: | Size: 156 KiB |
|
Before Width: | Height: | Size: 260 KiB After Width: | Height: | Size: 156 KiB |
|
Before Width: | Height: | Size: 255 KiB After Width: | Height: | Size: 148 KiB |
@ -77,11 +77,11 @@ public enum ResourceSubType{Building,Resource}
|
||||
[CreateAssetMenu(fileName = "GridAndResourceDataAssets", menuName = "TH1 Game Data/GridAndResource Data Asset")]
|
||||
public class GridAndResourceDataAssets : ScriptableObject
|
||||
{
|
||||
private const string KasenBeastGuideLv1SpritePath = "ArtResources/TH1Grounds/TH1Ground_KasenTigerGuideRune";
|
||||
private const string KasenBeastGuideLv2SpritePath = "ArtResources/TH1Grounds/TH1Ground_KasenEagleGuideRune";
|
||||
private const string KasenBeastGuideLv1SpritePath = "ArtResources/TH1Grounds/TH1Ground_KasenEagleGuideRune";
|
||||
private const string KasenBeastGuideLv2SpritePath = "ArtResources/TH1Grounds/TH1Ground_KasenTigerGuideRune";
|
||||
private const string KasenBeastGuideLv3SpritePath = "ArtResources/TH1Grounds/TH1Ground_KasenDragonGuideRune";
|
||||
private const string KasenBeastGuideEyeComfortLv1SpritePath = "ArtResources/TH1Grounds/EyeComfort/TH1Ground_KasenTigerGuideRune";
|
||||
private const string KasenBeastGuideEyeComfortLv2SpritePath = "ArtResources/TH1Grounds/EyeComfort/TH1Ground_KasenEagleGuideRune";
|
||||
private const string KasenBeastGuideEyeComfortLv1SpritePath = "ArtResources/TH1Grounds/EyeComfort/TH1Ground_KasenEagleGuideRune";
|
||||
private const string KasenBeastGuideEyeComfortLv2SpritePath = "ArtResources/TH1Grounds/EyeComfort/TH1Ground_KasenTigerGuideRune";
|
||||
private const string KasenBeastGuideEyeComfortLv3SpritePath = "ArtResources/TH1Grounds/EyeComfort/TH1Ground_KasenDragonGuideRune";
|
||||
|
||||
public List<TerrainInfo> TerrainInfoList;
|
||||
|
||||
@ -1225,6 +1225,8 @@ namespace Logic.Action
|
||||
HakureiNorwayHeroSkillUtil.SyncSumirekoOccultOrbsAfterHeroUpgrade(actionParams.MapData, unit);
|
||||
if (giantType == GiantType.NorwaySuika)
|
||||
HakureiNorwayHeroSkillUtil.SyncMiniSuikaAfterHeroUpgrade(actionParams.MapData, unit);
|
||||
if (giantType == GiantType.NorwayKasen)
|
||||
HakureiNorwayHeroSkillUtil.SyncKasenBeastGuidesAfterHeroUpgrade(actionParams.MapData);
|
||||
|
||||
//step #3.6 升级后更新主英雄视野(升级可能增加视野范围)
|
||||
if (unit.Grid(actionParams.MapData) != null)
|
||||
|
||||
@ -776,6 +776,19 @@ namespace Logic.Skill
|
||||
}
|
||||
}
|
||||
|
||||
public static void SyncKasenBeastGuidesAfterHeroUpgrade(MapData map)
|
||||
{
|
||||
RefreshKasenBeastGuideStatBuffs(map);
|
||||
if (map != Main.MapData || map?.GridMap?.GridList == null) return;
|
||||
|
||||
foreach (var grid in map.GridMap.GridList)
|
||||
{
|
||||
if (!TryGetKasenBeastGuideSkill(grid, out var guideSkill)) continue;
|
||||
guideSkill.SyncOwnerState(map);
|
||||
grid.Renderer(map)?.InstantUpdateGrid(true);
|
||||
}
|
||||
}
|
||||
|
||||
public static void ApplyKasenBeastGuideTurnStartEffects(MapData map, GridData grid,
|
||||
KasenBeastGuideGridSkill guideSkill)
|
||||
{
|
||||
|
||||