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:
parent
7935e03453
commit
10c1d8dfe5
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue