Example Code for Isaac.GetPlayerTypeByName() is incorrect for Repentance
Closed this issue · 2 comments
Seb-135 commented
The Example Code section for GetPlayerTypeByName:
This code gets the PlayerType of Azazel.
Isaac.GetPlayerTypeByName("Azazel") --Returns: 7
Is incorrect as of Repentance, as names have been replaced with translation placeholders (Azazel's is #AZAZEL_NAME
)
Perhaps add a note saying that this should only be used for modded characters, and that the PlayerType enum should be used for vanilla characters.
Zamiell commented
can you submit a PR?
wofsauge commented
The example was now updated. thanks for the report