Okay…
here are two of the most appropriate power adapters for your MacBook Pro… if, as you posted, your MacBook Pro works, but the charging adapter gets hot, then that means the charging adapter has failed/is failing ,something has gone wrong with it… so replace it with a new one, and keep both your MacBook Pro and the charging adapter away from water/ don’t let it get flooded… also, you’ll need to contact /call your local AASP or Mac Store with Genius Bar and take your MacBook Pro from Mid 2015 in for an evaluation and probable service, as the DC-in board and ( MagSafe 2 ) socket/jack/connector on your MacBook Pro mid 2015 may have sustained some damage due to your flood… ( water damage) … the evaluation at an Apple Store with Genius Bar is Free… the AASP near you, I can’t say… anyways, whichever/however you want to proceed/do things is up to you… either way is good…. But for continued safe and reliable operation of your MacBook Pro from Mid 2015, give either one a call, make an appointment with either one, and take your Mid 2015 MacBook Pro and charging adapter in for evaluation and service… I don’t know where you live, but if you go to Apple.com, click on the flag to pick your country… then go to “Apple Repair”, there you go… it’ll find you either an Apple Store with Genius Bar that does evaluations and repair or an AASP ( apple authorized service Provider) that’ll do the same thing…
John B