YoungMaker / iORC

iORC - Organized Roleplay Creator
3 stars 0 forks source link

CharacterDetail page assumes too many stats #145

Open YoungMaker opened 6 years ago

YoungMaker commented 6 years ago

The version information guaranteed to exist in any version is limited to these items:

as per the server code:

 statRepository.save(Stat("str"+version.version, "str", "Strength", "Strength", version.version, false))
        statRepository.save(Stat("con"+version.version, "con", "Constitution", "Constitution", version.version, false))
        statRepository.save(Stat("dex"+version.version, "dex", "Dexterity","Dexterity", version.version, false))
        statRepository.save(Stat("int"+version.version, "int", "Intelligence","Intelligence", version.version, false))
        statRepository.save(Stat("wis"+version.version, "wis", "Wisdom", "Wisdom", version.version, false))
        statRepository.save(Stat("cha"+version.version, "cha", "Charisma","Charisma", version.version, false))
        versionInfoRepository.save(VersionInfo("currency"+ version.version, version.version, "currency", "currency", "Replace this with the versions currency" ))

Now, we can increase the minimum working information by changing the server code a bit but I think we should limit that so that we can include any arbitrary version