Path-of-Terraria / PathOfTerraria

GNU General Public License v3.0
1 stars 3 forks source link

Leaving Towns should bring you back to where you "Entered" Them #402

Closed CollinHerber closed 1 month ago

CollinHerber commented 1 month ago

Summary

When leaving Ravencrest for example IF you used the statue to travel there then you go back to the Raven statue For waypoint travel however it should return you to where you used the waypoint.

Reasonings

More thematic and less jarring

GabeHasWon commented 1 month ago

Do we have a waypoint system in the game yet? If not, this'll just be for the Ravencrest statue. To make other systems account for this, all that needs to be done is:

player.GetModPlayer<PersistentReturningPlayer>().ReturnPosition = player.Center;

before moving to the new area.

CollinHerber commented 1 month ago

Do we have a waypoint system in the game yet? If not, this'll just be for the Ravencrest statue. To make other systems account for this, all that needs to be done is:

player.GetModPlayer<PersistentReturningPlayer>().ReturnPosition = player.Center;

before moving to the new area.

Last I heard Naka was picking this back up but believe it's almost complete

GabeHasWon commented 1 month ago

Alright, I'll PR now and we can add this in when needed. It's super simple anyway.