新增ScarletKoakuma技能
This commit is contained in:
parent
5e1fb06feb
commit
40e82bcd91
@ -16,14 +16,11 @@ using TH1_Logic.Core;
|
||||
using TH1_Logic.HeroTask;
|
||||
using TH1_Renderer;
|
||||
using TH1Renderer;
|
||||
using Unity.VisualScripting;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace RuntimeData
|
||||
{
|
||||
|
||||
|
||||
// 地图上所有的小兵数据
|
||||
[MemoryPackable]
|
||||
public partial class UnitMapData
|
||||
|
||||
@ -210,6 +210,7 @@ public enum SkillType
|
||||
KOAKUMADEVOTION,
|
||||
KOAKUMAHERO,
|
||||
ScarletMistRealTimeVampireDebuff,
|
||||
ScarletKoakuma,
|
||||
Max,
|
||||
}
|
||||
|
||||
|
||||
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* @Author: 白哉
|
||||
* @Description:
|
||||
* @Date: 2025年09月12日 星期四 17:09:18
|
||||
* @Modify:
|
||||
*/
|
||||
|
||||
using RuntimeData;
|
||||
using TH1_Logic.Core;
|
||||
|
||||
|
||||
namespace Logic.Skill
|
||||
{
|
||||
public partial class ScarletKoakumaSkill : SkillBase
|
||||
{
|
||||
public ScarletKoakumaSkill()
|
||||
{
|
||||
IsPermanent = true;
|
||||
TurnsLimit = 0;
|
||||
Score = 4;
|
||||
}
|
||||
|
||||
public override SkillType GetSkillType()
|
||||
{
|
||||
return SkillType.MOKOUFRENCHEGG;
|
||||
}
|
||||
|
||||
public override void OnDamaged(MapData mapData, SettlementInfo info)
|
||||
{
|
||||
if (info == null || !info.IsKill || info.DamageTargetGrid == null || info.DamageTargetCity == null) return;
|
||||
//如果要复活的位置上有地方单位,先将对方passiveMove开
|
||||
if (mapData.GetUnitDataByGid(info.DamageTargetGrid.Id, out var unit))
|
||||
Main.UnitLogic.PassiveMoveAway(mapData,unit);
|
||||
var fullType = new UnitFullType(UnitType.RemiliaEgyptianKoakumaLion, GiantType.None, 0);
|
||||
mapData.AddUnitData(info.DamageTargetGrid.Id, info.DamageTargetCity.Id, fullType, out _);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c283575742b242e0a615b732f2d007d9
|
||||
timeCreated: 1762848104
|
||||
@ -0,0 +1,13 @@
|
||||
// Auto-generated ScarletKoakumaSkill partial class with MemoryPackable attribute
|
||||
// 此文件由 MemoryPackUnionGenerator 自动生成,请勿手动修改
|
||||
|
||||
using MemoryPack;
|
||||
using Logic.Skill;
|
||||
|
||||
namespace Logic.Skill
|
||||
{
|
||||
[MemoryPackable]
|
||||
public partial class ScarletKoakumaSkill
|
||||
{
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f635c1e01655fa64d9318f7cfd82e470
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -108,34 +108,35 @@ namespace Logic.Skill
|
||||
[MemoryPackUnion(100, typeof(SakuyaGuardSkill))]
|
||||
[MemoryPackUnion(101, typeof(SakuyaKillSkill))]
|
||||
[MemoryPackUnion(102, typeof(SatsujinkiSkill))]
|
||||
[MemoryPackUnion(103, typeof(ScarletMistRealTimeVampireDebuffSkill))]
|
||||
[MemoryPackUnion(104, typeof(ScarletMistRealTimeVampireSkill))]
|
||||
[MemoryPackUnion(105, typeof(ScoutSkill))]
|
||||
[MemoryPackUnion(106, typeof(SneakSkill))]
|
||||
[MemoryPackUnion(107, typeof(SpeedUpSkill))]
|
||||
[MemoryPackUnion(108, typeof(SplashSkill))]
|
||||
[MemoryPackUnion(109, typeof(StaticSkill))]
|
||||
[MemoryPackUnion(110, typeof(StiffSkill))]
|
||||
[MemoryPackUnion(111, typeof(StompSkill))]
|
||||
[MemoryPackUnion(112, typeof(SuperDashSkill))]
|
||||
[MemoryPackUnion(113, typeof(SuperHideSkill))]
|
||||
[MemoryPackUnion(114, typeof(SurpriseSkill))]
|
||||
[MemoryPackUnion(115, typeof(SwapSkill))]
|
||||
[MemoryPackUnion(116, typeof(TaiChiSkill))]
|
||||
[MemoryPackUnion(117, typeof(TewiFrenchAttackSkill))]
|
||||
[MemoryPackUnion(118, typeof(TewiFrenchBuffSkill))]
|
||||
[MemoryPackUnion(119, typeof(TewiFrenchDieSkill))]
|
||||
[MemoryPackUnion(120, typeof(TewiFrenchKillSkill))]
|
||||
[MemoryPackUnion(121, typeof(TewiFrenchSightSkill))]
|
||||
[MemoryPackUnion(122, typeof(ThirdEyeSkill))]
|
||||
[MemoryPackUnion(123, typeof(TrioSkill))]
|
||||
[MemoryPackUnion(124, typeof(UniqueSkill))]
|
||||
[MemoryPackUnion(125, typeof(VampireProSkill))]
|
||||
[MemoryPackUnion(126, typeof(VampireSkill))]
|
||||
[MemoryPackUnion(127, typeof(WaterDefenseSkill))]
|
||||
[MemoryPackUnion(128, typeof(WaterMoveSkill))]
|
||||
[MemoryPackUnion(129, typeof(WindGodSkill))]
|
||||
[MemoryPackUnion(130, typeof(WindPriestessSkill))]
|
||||
[MemoryPackUnion(103, typeof(ScarletKoakumaSkill))]
|
||||
[MemoryPackUnion(104, typeof(ScarletMistRealTimeVampireDebuffSkill))]
|
||||
[MemoryPackUnion(105, typeof(ScarletMistRealTimeVampireSkill))]
|
||||
[MemoryPackUnion(106, typeof(ScoutSkill))]
|
||||
[MemoryPackUnion(107, typeof(SneakSkill))]
|
||||
[MemoryPackUnion(108, typeof(SpeedUpSkill))]
|
||||
[MemoryPackUnion(109, typeof(SplashSkill))]
|
||||
[MemoryPackUnion(110, typeof(StaticSkill))]
|
||||
[MemoryPackUnion(111, typeof(StiffSkill))]
|
||||
[MemoryPackUnion(112, typeof(StompSkill))]
|
||||
[MemoryPackUnion(113, typeof(SuperDashSkill))]
|
||||
[MemoryPackUnion(114, typeof(SuperHideSkill))]
|
||||
[MemoryPackUnion(115, typeof(SurpriseSkill))]
|
||||
[MemoryPackUnion(116, typeof(SwapSkill))]
|
||||
[MemoryPackUnion(117, typeof(TaiChiSkill))]
|
||||
[MemoryPackUnion(118, typeof(TewiFrenchAttackSkill))]
|
||||
[MemoryPackUnion(119, typeof(TewiFrenchBuffSkill))]
|
||||
[MemoryPackUnion(120, typeof(TewiFrenchDieSkill))]
|
||||
[MemoryPackUnion(121, typeof(TewiFrenchKillSkill))]
|
||||
[MemoryPackUnion(122, typeof(TewiFrenchSightSkill))]
|
||||
[MemoryPackUnion(123, typeof(ThirdEyeSkill))]
|
||||
[MemoryPackUnion(124, typeof(TrioSkill))]
|
||||
[MemoryPackUnion(125, typeof(UniqueSkill))]
|
||||
[MemoryPackUnion(126, typeof(VampireProSkill))]
|
||||
[MemoryPackUnion(127, typeof(VampireSkill))]
|
||||
[MemoryPackUnion(128, typeof(WaterDefenseSkill))]
|
||||
[MemoryPackUnion(129, typeof(WaterMoveSkill))]
|
||||
[MemoryPackUnion(130, typeof(WindGodSkill))]
|
||||
[MemoryPackUnion(131, typeof(WindPriestessSkill))]
|
||||
public abstract partial class SkillBase
|
||||
{
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user