Skip to content
TORNLIFE More

Wrong outcome of attack in API

Started by waTer [2251652] on in Bugs & Issues.

2 replies · 40 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
2
Posts by staff, officers and moderators
2
Authority score
56 / 100
Historical score
39 / 100
Story score
37 / 100
Engagement score
43 / 100

Most-liked replies

Mentioned in this thread

DonTheBull [2634942] ×1 Ren [3411405] ×1

waTer [2251652]

Hi. Shouldn't API in this case return result as "Attacked"? Attacker was also defeated so I guess couldn't chose mug/leave/hosp option, but then by default it went as leave and counted for respect.



API:

{
      "id": 484697365,
      "code": "ce7f66ca1435b7e55ca6242a5da82598",
      "started": 1781814268,
      "ended": 1781814280,
      "attacker": {
        "id": 2634942,
        "name": "DonTheBull",
        "level": 100,
        "faction": {
          "id": 8151,
          "name": "Chromatic"
        }
      },
      "defender": {
        "id": 3411405,
        "name": "Ren",
        "level": 77,
        "faction": {
          "id": 11581,
          "name": "Natural Selection III"
        }
      },
      "result": "Timeout",
      "respect_gain": 12.09,
      "respect_loss": 3.02,
      "chain": 684,
      "is_interrupted": false,
      "is_stealthed": false,
      "is_raid": false,
      "is_ranked_war": true,
      "modifiers": {
        "fair_fight": 3,
        "war": 2,
        "retaliation": 1,
        "group": 1,
        "overseas": 1,
        "chain": 1.46,
        "warlord": 1
      },
      "finishing_hit_effects": []
    },


Attck link:
https://www.torn.com/page.php?sid=attackLog&ID=ce7f66ca1435b7e55ca6242a5da82598

DonTheBull left Ren on the street (+12.09)

Mentions: DonTheBull [2634942] · Ren [3411405]