Posted by jholthus on 10/20/2021 12:43:00 PM (view original):
Posted by metsmax on 10/15/2021 10:33:00 PM (view original):
two "players" Shohei H Otani and Shohei P Otani
Unfortunately, after looking into this it sounds like getting two versions of the player isn't going to be happening. Trying to add the player with the same name to the database would cause issues with stats. Also, not many themes allow clones. So, I regret to inform you all that there will only be the one version of Ohtani :(.
Like others have mentioned - I don't have the code nor do I claim any knowledge on the subject of coding...
however, it seems that you may be looking at the issue under "how to give one player two seasons - one as a pitcher and one as a hitter" versus just looking it at as putting up separate players -with two separate player ID's - the hitter version of Ohtani and the pitcher version.
Not coded both as the same guy but exactly the same as there is a Catcher for LAD named Will Smith, and there is a pitcher for ATL named Will Smith. It seems reasonable to assume that you'd be able to create a hitter for LAA named Shohei Ohtani and a pitcher for LAA named Shohei Ohtani - and they do not need to be linked in any way.