Fix Kasen beast guide rune refresh

This commit is contained in:
daixiawu 2026-06-26 19:52:42 +08:00
parent eefc0c0a61
commit 7cbf291a5e
9 changed files with 19 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 268 KiB

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 260 KiB

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 255 KiB

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 268 KiB

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 260 KiB

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 255 KiB

After

Width:  |  Height:  |  Size: 148 KiB

View File

@ -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;

View File

@ -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)

View File

@ -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)
{