1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-08-04 03:44:04 +01:00

Fix war and killing/martial arts

This commit is contained in:
chris 2022-01-20 17:43:20 -05:00
parent 1e0b039661
commit 8c1ccca517

View file

@ -10477,12 +10477,12 @@ read_necro(VOID_ARGS)
break;
}
if((skill <= P_NONE || skill > P_LAST_WEAPON) && skill != P_MUSICALIZE){
if((skill <= P_NONE || skill > P_LAST_WEAPON) && skill != P_MUSICALIZE && skill != P_MARTIAL_ARTS){
You("aren't holding a weapon.");
break;
}
if(!(P_MAX_SKILL(skill) < newmax)) You("already know how to use your weapon.");
if(!(P_MAX_SKILL(skill) < newmax)) You("already know how to use your %s.", skill == P_MARTIAL_ARTS ? "fists" : "weapon");
else if(u.uen >= 100){
if(skill == P_MARTIAL_ARTS){
You("grasp the principles of your body's use.");
@ -10495,7 +10495,7 @@ read_necro(VOID_ARGS)
u.uenbonus -= 20;
calc_total_maxen();
expert_weapon_skill(skill);
u.weapon_skills[objects[uwep->otyp].oc_skill].max_skill = newmax;
u.weapon_skills[skill].max_skill = newmax;
} else You("lack the magical energy to cast this incantation.");
}break;
case SELECT_HEALTH: