Skip to content

Commit 985883d

Browse files
committed
Add skill: HerosMovement: Shove, Smite
1 parent 01692d4 commit 985883d

File tree

22 files changed

+472
-14
lines changed

22 files changed

+472
-14
lines changed
223 Bytes
Loading
219 Bytes
Loading

Contents/Texts/Source/texts/HerosMovement.txt

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,17 @@ Pivot:[NL]
1212
Unit moves to opposite side of target ally.[X]
1313

1414
## MSG_SKILL_Reposition
15-
Reposition: Allows unit to pull an[NL]
16-
adjacent ally to its opposite side.[X]
15+
Reposition:[NL]
16+
Target ally moves to opposite side of unit.[X]
1717

1818
## MSG_SKILL_Swap
19-
Swap: Allows unit to swap positions[NL]
20-
with an adjacent ally.[X]
19+
Swap:[NL]
20+
Unit and target ally swap spaces.[X]
21+
22+
## MSG_SKILL_Shove
23+
Shove:[NL]
24+
Pushes target ally 1 space away.[X]
25+
26+
## MSG_SKILL_Smite
27+
Smite:[NL]
28+
Pushes target ally 2 spaces away.[X]

Data/HerosMovement/HmuTable.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ const u8 gHerosMovementTypes[0x100] = {
3333
[CLASS_GENERAL] = HMU_SMITE,
3434
[CLASS_GENERAL_F] = HMU_SMITE,
3535

36+
#if 0
3637
[CLASS_PRIEST] = HMU_SWARP,
3738
[CLASS_CLERIC] = HMU_SWARP,
3839
[CLASS_BISHOP] = HMU_SWARP,
3940
[CLASS_BISHOP_F] = HMU_SWARP,
4041
[CLASS_SUMMONER] = HMU_SWARP,
4142
[CLASS_SUMMONER_F] = HMU_SWARP,
43+
#endif
4244
};

Data/SkillSys/Source/SkillInfo.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3941,4 +3941,18 @@ const struct SkillInfo gSkillInfos[MAX_SKILL_NUM + 1] = {
39413941
.icon = GFX_SkillIcon_Swap,
39423942
},
39433943
#endif
3944+
3945+
#if (defined(SID_Shove) && COMMON_SKILL_VALID(SID_Shove))
3946+
[SID_Shove] = {
3947+
.desc = MSG_SKILL_Shove,
3948+
.icon = GFX_SkillIcon_Shove,
3949+
},
3950+
#endif
3951+
3952+
#if (defined(SID_Smite) && COMMON_SKILL_VALID(SID_Smite))
3953+
[SID_Smite] = {
3954+
.desc = MSG_SKILL_Smite,
3955+
.icon = GFX_SkillIcon_Smite,
3956+
},
3957+
#endif
39443958
};

Debug/Event/Source/debug-event.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,8 @@ static void modify_unit_status(void)
466466
AddSkillDbgListByPid(CHARACTER_EIRIKA, SID_Enrage);
467467
#endif
468468

469-
#if defined(SID_Swap) && (COMMON_SKILL_VALID(SID_Swap))
470-
AddSkillDbgListByPid(CHARACTER_EPHRAIM, SID_Swap);
469+
#if defined(SID_Reposition) && (COMMON_SKILL_VALID(SID_Reposition))
470+
AddSkillDbgListByPid(CHARACTER_EPHRAIM, SID_Reposition);
471471
#endif
472472
}
473473

Kernel/Data/SkillSys/Data/SkillActionInfo.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,12 @@ const SkillActionFunc_t gSkillActionFuncTable[MAX_SKILL_NUM + 1] = {
8686
#if (defined(SID_Swap) && COMMON_SKILL_VALID(SID_Swap))
8787
[SID_Swap] = Action_Swap,
8888
#endif
89+
90+
#if (defined(SID_Shove) && COMMON_SKILL_VALID(SID_Shove))
91+
[SID_Shove] = Action_Shove,
92+
#endif
93+
94+
#if (defined(SID_Smite) && COMMON_SKILL_VALID(SID_Smite))
95+
[SID_Smite] = Action_Smite,
96+
#endif
8997
};

Kernel/Data/SkillSys/Data/SkillMenuInfo.c

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ struct MenuItemDef const *const gSkillMenuInfos[MAX_SKILL_NUM + 1] = {
321321

322322
#if (defined(SID_Pivot) && COMMON_SKILL_VALID(SID_Pivot))
323323
[SID_Pivot] = &(const struct MenuItemDef) {
324-
.name = " 回り込み",
324+
.name = " 迂迴",
325325
.color = TEXT_COLOR_SYSTEM_WHITE,
326326
.isAvailable = Pivot_Usability,
327327
.onDraw = NULL,
@@ -334,7 +334,7 @@ struct MenuItemDef const *const gSkillMenuInfos[MAX_SKILL_NUM + 1] = {
334334

335335
#if (defined(SID_Reposition) && COMMON_SKILL_VALID(SID_Reposition))
336336
[SID_Reposition] = &(const struct MenuItemDef) {
337-
.name = " 引き戻し",
337+
.name = " 帶回",
338338
.color = TEXT_COLOR_SYSTEM_WHITE,
339339
.isAvailable = Reposition_Usability,
340340
.onDraw = NULL,
@@ -347,7 +347,7 @@ struct MenuItemDef const *const gSkillMenuInfos[MAX_SKILL_NUM + 1] = {
347347

348348
#if (defined(SID_Swap) && COMMON_SKILL_VALID(SID_Swap))
349349
[SID_Swap] = &(const struct MenuItemDef) {
350-
.name = " 入れ替え",
350+
.name = " 替換",
351351
.color = TEXT_COLOR_SYSTEM_WHITE,
352352
.isAvailable = Swap_Usability,
353353
.onDraw = NULL,
@@ -357,4 +357,30 @@ struct MenuItemDef const *const gSkillMenuInfos[MAX_SKILL_NUM + 1] = {
357357
.onSwitchOut = NULL,
358358
},
359359
#endif
360+
361+
#if (defined(SID_Shove) && COMMON_SKILL_VALID(SID_Shove))
362+
[SID_Shove] = &(const struct MenuItemDef) {
363+
.name = " 衝撞",
364+
.color = TEXT_COLOR_SYSTEM_WHITE,
365+
.isAvailable = Shove_Usability,
366+
.onDraw = NULL,
367+
.onSelected = Shove_OnSelected,
368+
.onIdle = NULL,
369+
.onSwitchIn = NULL,
370+
.onSwitchOut = NULL,
371+
},
372+
#endif
373+
374+
#if (defined(SID_Smite) && COMMON_SKILL_VALID(SID_Smite))
375+
[SID_Smite] = &(const struct MenuItemDef) {
376+
.name = " 重擊",
377+
.color = TEXT_COLOR_SYSTEM_WHITE,
378+
.isAvailable = Smite_Usability,
379+
.onDraw = NULL,
380+
.onSelected = Smite_OnSelected,
381+
.onIdle = NULL,
382+
.onSwitchIn = NULL,
383+
.onSwitchOut = NULL,
384+
},
385+
#endif
360386
};

Kernel/Wizardry/Misc/SkillEffects/MenuSkills/HerosMovement/HerosMovement.event

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
#include "Source/Pivot.lyn.event"
44
#include "Source/Reposition.lyn.event"
55
#include "Source/Swap.lyn.event"
6+
#include "Source/Shove.lyn.event"
7+
#include "Source/Smite.lyn.event"

Kernel/Wizardry/Misc/SkillEffects/MenuSkills/HerosMovement/Source/HmuCommon.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ const u16 HerosMovementSkills[HMU_TYPE_COUNT] = {
1616
#if (defined(SID_Swap) && COMMON_SKILL_VALID(SID_Swap))
1717
[HMU_SWAP] = SID_Swap,
1818
#endif
19+
20+
#if (defined(SID_Shove) && COMMON_SKILL_VALID(SID_Shove))
21+
[HMU_SHOVE] = SID_Shove,
22+
#endif
23+
24+
#if (defined(SID_Smite) && COMMON_SKILL_VALID(SID_Smite))
25+
[HMU_SMITE] = SID_Smite,
26+
#endif
1927
};
2028

2129
STATIC_DECLAR bool HerosMovementSkillRequired(void)

0 commit comments

Comments
 (0)