PDA

Просмотр полной версии : [10458] Changes to corpse decay/respawn times for creatures


newsbot
09.09.2010, 14:00
<pre>m src/game/Creature.cpp
m src/game/Creature.h
m src/game/Pet.cpp
m src/game/Unit.cpp
m src/game/World.cpp
m src/mangosd/mangosd.conf.dist.in
m src/shared/revision_nr.h
</pre>
<pre style='white-space:pre-wrap;width:81ex'>[10458] Changes to corpse decay/respawn times for creatures

*CORPSE_DECAY values adjusted (Rare/RareElite values are guessed) with more proper.
*RATE_CORPSE_DECAY_LOOTED is now 0.0 as default and a modifier of the creatures spawntimesecs are used for corpse decay.

Respawn time for creature is now set at death (result: database spawntimesecs are in most cases the time it takes from kill to respawn)

Overall, this will affect four things:
* corpse will stay visible longer before looted
* corpse will stay visible longer after looted, when creature has long respawn time
* creature without loot will "skip" the default decay times and then fix a "should respawn almost instant" -problem
* creature with loot and very short respawn time may respawn instantly after looted

Signed-off-by: NoFantasy <nofantasy@nf.no></pre>




Дальше... (http://github.com/mangos/mangos/commit/3d3b41055eeadf9f1be450be9ccdf07126c820f5)