When querying my faction attacks the modifiers have varying return types. Different fields tend to swap between string and double. Can they all be made as numbers please.
Examples Below:
"modifiers": {
"fairFight": 2.57,
"war": 1,
"retaliation": 1,
"groupAttack": 1,
"overseas": "1.25",
"chainBonus": 1
}
"modifiers": {
"fairFight": 3,
"war": 1,
"retaliation": 1,
"groupAttack": 1,
"overseas": 1,
"chainBonus": "1.72"
}
"modifiers": {
"fairFight": 3,
"war": 1,
"retaliation": 1,
"groupAttack": 1,
"overseas": 1,
"chainBonus": 1
}
[API] Inconsistent Attack Modifier typing
Started by Stiny [992186] on in Bugs & Issues.
About this thread
Posts archived: 3 / 3 posts (100%) · the total is Torn's reply count + the opening post at the last fetch
Counted by TornLife from the archived posts.
- Archived posts
- 3
- Discussion span
- →
- People posting
- 3
- Likes on archived posts
- 0
- Posts by staff, officers and moderators
- 2
- Authority score
- 57 / 100
- Historical score
- 31 / 100
- Story score
- 29 / 100
- Engagement score
- 34 / 100
Passing on to Joe. Perhaps similar changes as this one are required. Thanks..!!
Mentions: API attack modifiers
I've forced them all to float, including the 'respect gained' value. Hopefully that works okay for Tuesday.