Originally Posted by
YourMaster
Could you explain what gives a creature kind a higher or lower attraction chance, or show where this is specified?
The function sums up "attracion scores" of all creatures which can be attracted, and then generates a random number lower than the sum.
So, the probability_of_attraction = creature_attraction_score / sum_of_all_creature_attraction_scores * 100 %
And the score for every creature is computed as:
Code:
score = (long)attract_score[i]
+ calculate_excess_attraction_for_creature(i, dungeon->owner);
So - it has static part from attract_score[] array, and a dynamic part computed by calculate_excess_attraction_for_creature().
Originally Posted by
YourMaster
And what is 'EntranceForce' by the way?
Can't remember now.