View Single Post
Old January 24, 2020, 05:04   #10
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 9,024
Derakon is on a distinguished road
Quote:
Originally Posted by DavidMedley View Post
OK. So when I read
Code:
int wake_up_amount = 1;

    if (distance_to_player < 50)
         wake_up_amount = 100 / distance_to_player;

    wake_up_monster_a_little(wake_up_amount);
I assumed that distance must be in feet. But if it's in squares then that's the order of magnitude I was missing. Thanks!!!
I'm pretty sure that all of the units in-game are purely aesthetic, and you should divide by the greatest common denominator to get the numbers the code uses. For example, all item weights in the code are in decipounds, a bonkers unit if ever there was one.
Derakon is offline   Reply With Quote