Skip to content

Commit 9b7c6ba

Browse files
Fix: crowned centaur infidels should be able to train riding
Centaurs usually can't train riding, since they can't ride. But, after transforming into a demon, (formerly) centaur infidels are able to ride steeds. So, they should be able to train the skill. Other infidels can get to skilled in riding, so allow that here too instead of just unrestricting it.
1 parent ccb87c9 commit 9b7c6ba

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

doc/evilhack-changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -3520,4 +3520,5 @@ The following changes to date are:
35203520
or the Hammer of the Gods
35213521
- Fix: 'The magical energy is released!' with non-directional
35223522
psionic wave
3523+
- Fix: crowned centaur infidels should be able to train riding
35233524

src/pray.c

+7
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,13 @@ gcrownu()
909909
verbalize("Thou shalt be my vassal of suffering and terror!");
910910
livelog_printf(LL_DIVINEGIFT, "became the Emissary of Moloch");
911911
unrestrict_weapon_skill(P_TRIDENT);
912+
/* unlock riding if restricted (e.g. centaur).
913+
infidels can get to skilled, so don't just unrestrict it */
914+
if (P_RESTRICTED(P_RIDING)) {
915+
P_SKILL(P_RIDING) = P_UNSKILLED;
916+
P_MAX_SKILL(P_RIDING) = P_SKILLED;
917+
P_ADVANCE(P_RIDING) = 0;
918+
}
912919
P_MAX_SKILL(P_TRIDENT) = P_EXPERT;
913920
if (Race_if(PM_DRAUGR)) {
914921
in_hand = wielding_artifact(ART_ANGELSLAYER);

0 commit comments

Comments
 (0)