Code Change! Conditionally populated rooms

Started by Morgenes, November 04, 2008, 02:47:52 PM

First thing, I have not altered the way the code works if there is a soldier/templar nearby when a crime takes place. This code alters the way the populated room flag (that is virtual eyes and ears of the populace that would report a crime to the authorities) behaves under certain conditions.

Before if a room was marked populated it always was considered 'populated' and crimes would be reported.

This change adds the following conditions:

o Visibility must not be extremely poor (sandstorm, darkness, etc... note indoors rooms such as taverns are never affected by this)
o The time is not during night-time hours. When it is 'late at night' or 'near dawn', the populated flags no longer apply (unless again, the room is flagged indoors as well).

Please use http://www.zalanthas.org/gdb/index.php/topic,32996.0.html to discuss this change.
Morgenes

Producer
Armageddon Staff