Just try it and see for yourself. I used my small Arcana_Heart pack for testing, there is only one character.
Yeah, you're right... it doesn't work (like at all). I don't remember seeing anything at all to cause a f*ckup like this in the code, unless I find it, I'll have to rewrite the whole constructor.
===
Even thought a game does (or at least should) fix technical errors in JSON datafiles, it doesn't mean that you have to make them. At least our own packs should be (puurfectly) well made. At current code, without any modifications, your girl should (*
could) look something like this:
[
{
"id": "Lilica_Felchenerow",
"fullname": "Lilica Felchenerow",
"name": "Lilica",
"desc": "A half-demon, half-human. She loves playing pranks on people and has very little patience for things that don't interest her.",
"gender": "female",
"origin": "Arcana Heart",
"base_race": "Demon",
"personality": "Bokukko",
"breasts": "Average Boobs",
"race": "Half-demon",
"arena_willing": false,
"location": "city",
"status": "free",
"level": 5,
"height": "short",
"gold": 200,
"stats": {
"charisma": 15,
"constitution": 60,
"luck": 20,
"character": 60,
"intelligence": 20,
"attack": 35,
"magic": 20,
"defence": 40,
"agility": 60,
"mp": 10
},
"skills": {
"dancing": 10,
"exploration": 15
},
"btraits": [],
"ab_traits": [],
"basetraits": [
"Mage"
],
"elements": [
"Fire"
],
"traits": [
"Virgin",
"Lolita",
"Energetic",
"Not Human",
"Indifferent",
"Alien"
],
"battle_skills": [
"FistAttack"
],
"magic_skills": [
"Fire",
"Fira"
]
}
]
You can obviously throw elements and special traits (personality, body, boob size) into traits as well. Gender and some other fields are not really needed. In your current code, you for once have "slave" in the "city", I think that I wrote code to straiten that out, but as I've said, we should try to try to make out own JSONs as clear as possible. *Note: I may have omitted one or two fields, can't say for sure, I am testing new fields with Hinata and that is all she had.
===
Anyway... GM sorting code
beware! I am coming for you!
