wofsauge/IsaacDocs

Example Code for Isaac.GetPlayerTypeByName() is incorrect for Repentance

Closed this issue · 2 comments

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.

can you submit a PR?

The example was now updated. thanks for the report