The Map variable regen_coords has been removed in favor of a Player variable named respawn_location. Originally, each Map would provide the (y,x) coordinates at which one would respawn on that Map. However, it makes more sense for the Player to have a more global respawn point that can possibly change throughout the game. For instance, if the Player dies in a cave, it might make sense to respawn somewhere in the previous city.
This is a feature I've long had in the back of my head so please enjoy!
Coverage remained the same at 100.0% when pulling db8ab0f51240f5974b301299bc79121d18a6bc09 on respawn into c7091e0d4ec86959e4bad3f878a947ba56242ab1 on 0.2.0.
Coverage remained the same at 100.0% when pulling 63bf73d2ca1a7f56d7afdd738ae1103728402c65 on respawn into c7091e0d4ec86959e4bad3f878a947ba56242ab1 on 0.2.0.
Coverage remained the same at 100.0% when pulling 7613eec89b0c471127011fe09f6b78b04fd75a6d on respawn into c7091e0d4ec86959e4bad3f878a947ba56242ab1 on 0.2.0.
The
Map
variableregen_coords
has been removed in favor of aPlayer
variable namedrespawn_location
. Originally, eachMap
would provide the (y,x) coordinates at which one would respawn on thatMap
. However, it makes more sense for thePlayer
to have a more global respawn point that can possibly change throughout the game. For instance, if thePlayer
dies in a cave, it might make sense to respawn somewhere in the previous city.This is a feature I've long had in the back of my head so please enjoy!