Skip to content
TORNLIFE More

Faction Armory Api Update

Started by Chrono208 [367543] on in Suggestions.

1 replies · 9 views · thread synced · 4 days ago · View on torn.com
About this thread

Posts archived: 2 / 2 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
2
Discussion span
→
People posting
2
Likes on archived posts
2
Authority score
24 / 100
Historical score
13 / 100
Story score
28 / 100
Engagement score
30 / 100

Mentioned in this thread

Chrono208 [367543] ×1 Dlnu [4266504] ×1

Chrono208 [367543]

I would like to see extra information on the items being deposited in the armory. Currently the API returns JSON formatted as such:

Current

 

{

    "armorynews": {

        "LYaJ0YBCAVkfWl2R": {

            "news": "Dlnu used one of the faction's LSD items",

            "timestamp": 1782239451

        },

        "vHDAdGE3MJE2kGHg": {

            "news": "Dlnu loaned 1x Fiveseven to themselves from the faction armory",

            "timestamp": 1782239237

        },

        "ZVA7smpVILCElOcH": {

            "news": "Chrono208 deposited 1x Fiveseven",

            "timestamp": 1782238484

        }

    }

}




 

The newly proposed API endpoint would show the following information:


Proposed


{

    "armorynews": {

        "LYaJ0YBCAVkfWl2R": {

            "news": "Dlnu used one of the faction's LSD items",

            "amountRemaining": 96,

            "timestamp": 1782239451

        },

        "vHDAdGE3MJE2kGHg": {

            "news": "Dlnu loaned 1x Fiveseven to themselves from the faction armory",

            "bonuses": [

                {

                    "quicken": "106%",

                    "description": "106% increased passive speed while using this weapon"

                },

                {

                    "deadeye": "36%",

                    "description": "36% increased critical hit damage"

                }              

            ],

            "timestamp": 1782239237

        },

        "iLI6mUBiiXvci9Tc": {

            "news": "Chrono208 deposited 1x Fiveseven",

            "bonuses": [

                {

                    "quicken": "106%",

                    "description": "106% increased passive speed while using this weapon"

                },

                {

                    "deadeye": "36%",

                    "description": "36% increased critical hit damage"

                }              

            ],

            "timestamp": 1782239034

        }

    }

}



 

I would note that amountRemaining would only apply to items with stacks such as drugs, cans, boosters and the like. So not weapons, or armor.


Bonuses would apply to all weapons and armor. This would be solid for tracking via api. I would even go as far as putting the damage, accuracy, defense bonus and quality in the json fields for full clarity.

 

Mentions: Chrono208 [367543] · Dlnu [4266504]