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:
parent
1e0b039661
commit
8c1ccca517
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue