Skip to content
TORNLIFE More

[API] Inconsistent Attack Modifier typing

Started by Stiny [992186] on in Bugs & Issues.

2 replies · 38 views · thread synced · 4 days ago · View on torn.com
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
Stiny [992186]
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
}