Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
Freyja's passive skill A.
Browse files Browse the repository at this point in the history
  • Loading branch information
laqieer committed Aug 12, 2020
1 parent 8db90f2 commit efb6a95
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/skill_id.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ enum PassiveSkillAID {
PASSIVE_SKILL_A_FLOWER_OF_EASE_2,
PASSIVE_SKILL_A_FLOWER_OF_EASE_3,
PASSIVE_SKILL_A_FLOWER_OF_EASE_4,
PASSIVE_SKILL_A_NIGHTMARE_QUEEN_1, // 悪夢の女王
PASSIVE_SKILL_A_NIGHTMARE_QUEEN_2,
PASSIVE_SKILL_A_NIGHTMARE_QUEEN_3,
PASSIVE_SKILL_A_NIGHTMARE_QUEEN_4,
};

enum PassiveSkillBID {
Expand Down
20 changes: 20 additions & 0 deletions src/buff.c
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,26 @@ void updateNewStateWithPassiveSkillA(struct Unit *skillUnits, int skillUnitNumbe
addUnitDebuffResistance(&targetUnits[j], -5);
}
break;
case PASSIVE_SKILL_A_NIGHTMARE_QUEEN_1:
addUnitDebuffDefense(&targetUnits[j], -1);
addUnitDebuffResistance(&targetUnits[j], -1);
break;
case PASSIVE_SKILL_A_NIGHTMARE_QUEEN_2:
addUnitDebuffDefense(&targetUnits[j], -2);
addUnitDebuffResistance(&targetUnits[j], -2);
break;
case PASSIVE_SKILL_A_NIGHTMARE_QUEEN_3:
addUnitDebuffDefense(&targetUnits[j], -2);
addUnitDebuffResistance(&targetUnits[j], -2);
addUnitDebuffPower(&targetUnits[j], -1);
addUnitDebuffSpeed(&targetUnits[j], -1);
break;
case PASSIVE_SKILL_A_NIGHTMARE_QUEEN_4:
addUnitDebuffDefense(&targetUnits[j], -2);
addUnitDebuffResistance(&targetUnits[j], -2);
addUnitDebuffPower(&targetUnits[j], -2);
addUnitDebuffSpeed(&targetUnits[j], -2);
break;
default:
break;
}
Expand Down
5 changes: 5 additions & 0 deletions src/skill.c
Original file line number Diff line number Diff line change
Expand Up @@ -6930,6 +6930,10 @@ const struct PassiveSkill passiveSkillAs[] = {
{"びすいの花2", "自身を中心としたたて3列以内の敵は、戦闘中、攻撃、守備、魔防ー2", "Flower of Ease 2", "Inflicts Atk/Def/Res-2 on foes within 3 columns centered on unit during combat."},
{"びすいの花3", "自身を中心としたたて3列以内の敵は、戦闘中、攻撃、守備、魔防ー3", "Flower of Ease 3", "Inflicts Atk/Def/Res-3 on foes within 3 columns centered on unit during combat."},
{"びすいの花4", "自身を中心としたたて3列以内の敵は、戦闘中、攻撃、守備、魔防ー4", "Flower of Ease 4", "Inflicts Atk/Def/Res-4 on foes within 3 columns centered on unit during combat."},
{"悪夢の女王1", "ターン開始時、全ての敵の守備、魔防ー1", "Queen of Nightmare 1", "At start of turn, foe's Def/Res-1."},
{"悪夢の女王2", "ターン開始時、全ての敵の守備、魔防ー2", "Queen of Nightmare 2", "At start of turn, foe's Def/Res-2."},
{"悪夢の女王3", "ターン開始時、全ての敵の守備、魔防ー2、攻撃、速さー1", "Queen of Nightmare 3", "At start of turn, foe's Def/Res-2, Atk/Spd-1."},
{"悪夢の女王4", "ターン開始時、全ての敵の攻撃、速さ、守備、魔防ー2", "Queen of Nightmare 4", "At start of turn, foe's Atk/Spd/Def/Res-2."},
};

const u16 characterPassiveSkillAs[0x100][4] = {
Expand All @@ -6954,6 +6958,7 @@ const u16 characterPassiveSkillAs[0x100][4] = {
[CHARACTER_SCABIOSA_ID] = {PASSIVE_SKILL_A_FLOWER_OF_SORROW_1, PASSIVE_SKILL_A_FLOWER_OF_SORROW_2, PASSIVE_SKILL_A_FLOWER_OF_SORROW_3, PASSIVE_SKILL_A_FLOWER_OF_SORROW_4},
[CHARACTER_PLUMERIA_ID] = {PASSIVE_SKILL_A_FLOWER_OF_PLENTY_1, PASSIVE_SKILL_A_FLOWER_OF_PLENTY_2, PASSIVE_SKILL_A_FLOWER_OF_PLENTY_3, PASSIVE_SKILL_A_FLOWER_OF_PLENTY_4},
[CHARACTER_MIRABILIS_ID] = {PASSIVE_SKILL_A_FLOWER_OF_EASE_1, PASSIVE_SKILL_A_FLOWER_OF_EASE_2, PASSIVE_SKILL_A_FLOWER_OF_EASE_3, PASSIVE_SKILL_A_FLOWER_OF_EASE_4},
[CHARACTER_FREYJA_ID] = {PASSIVE_SKILL_A_NIGHTMARE_QUEEN_1, PASSIVE_SKILL_A_NIGHTMARE_QUEEN_2, PASSIVE_SKILL_A_NIGHTMARE_QUEEN_3, PASSIVE_SKILL_A_NIGHTMARE_QUEEN_4},
};

u16 getUnitPassiveSkillA(struct Unit *unit)
Expand Down

0 comments on commit efb6a95

Please sign in to comment.