Skip to content

Commit

Permalink
Maintaining your techniques requires eliminating harmful conditions f…
Browse files Browse the repository at this point in the history
…rom your life. While under most harmful ailments, your tech cooldowns will expire much slower. This includes most major physical and mental ailments, as well as being too hungry or satiated. If you are wielding a weapon with the prowess prop, the normal timeout will always apply.

This will definitely require some tweaks down the road, but I think it will add a bit more realism to #technique usage. I already shortened many cooldowns after porting techniques, but it's possible some might need to be revisited.
  • Loading branch information
elunna committed Oct 2, 2023
1 parent ef7d38b commit 64c82db
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/tech.c
Original file line number Diff line number Diff line change
Expand Up @@ -1423,11 +1423,22 @@ tech_timeout()
pline("Your %s technique is ready to be used!", techname(i));
stop_occupation();
}
if (techtout(i) > 0)
techtout(i)--;

if (techtout(i) > 0 && using_oprop(ITEM_PROWESS))
techtout(i)--;

/* Maintaining technical skill requires maintaining a healthy body and mind */
if ((Afraid || Confusion || Fumbling || Glib
|| Hallucination || LarvaCarrier || Sick || Sleepy
|| Slimed || Slow || Stoned || Strangled
|| Stunned || Vomiting || Withering || Wounded_legs
|| (u.uhunger > (Race_if(PM_HOBBIT) ? 3000 : 1000))
|| (u.uhunger < 50))
&& rn2(10))
return;

if (techtout(i) > 0)
techtout(i)--;
}
}

Expand Down

0 comments on commit 64c82db

Please sign in to comment.