[CF-Devel] Diseases in the arena
crossfire-devel-admin at archives.real-time.com
crossfire-devel-admin at archives.real-time.com
Fri Apr 4 21:48:34 CST 2003
phil at theperlguru.com
wrote:
>
Well, I was referring more to the bug where diseases can leave the
>
arena. ie. if there is an arena battle with spectators, the
>
spectators can be killed by diseases running rampant. This is
>
especially bad, as the spectator areas are no_magic'ed, so the
>
spectators can't cure themselves.
Ok. Now that I no what the bug is...
The problem is most likely in infect_disease - it doesn't check for no magic,
blocked, etc.
A simple fix for this would be that disease won't spread to no magic (or no
cleric magic) spaces.
Other alternative would be diseases don't spread on battleground spaces.
Given how battleground is currently done, this would be a bit of a resource hog,
but it probably wouldn't be hard to add another map flag like P_BATTLEGROUND
which fixes up that performance problem.
The way diseases spread is basically just a square around the infection point.
Thus, checking for walls (if desired) would still be very tricky, eg, the
disease should still be able to get around corners, so you just can't stop
processing some direction just because there is a wall there. Eg, a simple cast
like.
......
..D...
..#...
..M...
......
that monster (M) should still get infected by disease D, even though there is
a wall right in the path.
_______________________________________________
crossfire-devel mailing list
crossfire-devel at lists.real-time.com
https://mailman.real-time.com/mailman/listinfo/crossfire-devel
More information about the crossfire
mailing list