1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-08-14 00:21:38 +01:00

Tweak: Change range calculation for music

The old formula compared a linearly-increasing value against squared Euclidean distance.
This commit is contained in:
Chris-plus-alphanumericgibberish 2016-09-19 18:52:07 -04:00
parent 7935e03453
commit 10c1d8dfe5

View file

@ -674,7 +674,9 @@ play_song()
register struct monst *mtmp;
int distance;
distance = (P_SKILL(P_MUSICALIZE) - P_UNSKILLED + 1) * 9 + (u.ulevel/2);
distance = ((P_SKILL(P_MUSICALIZE)) + (u.ulevel/10) + 1);
if(P_SKILL(P_MUSICALIZE) > P_BASIC) distance += P_SKILL(P_MUSICALIZE) - P_BASIC;
distance = distance*distance + 1;
///* songs only have effect after the 1st turn */
//if (song_delay <= songs[song_played].level+2)