backend icon indicating copy to clipboard operation
backend copied to clipboard

Update Roshan kill message to include Radiant/Dire percentages

Open Geczy opened this issue 6 months ago • 0 comments

Update the generateRoshanMessage function to include Radiant/Dire percentages.

  • Add Radiant/Dire percentage calculation:
    • Add radiantPercentage and direPercentage properties to the RoshRes interface.
    • Create calculateRadiantDirePercentages function to calculate Radiant/Dire percentages based on minS and maxS.
    • Update generateRoshanMessage function to call calculateRadiantDirePercentages and include the percentages in the message.
  • Update Roshan event handler:
    • Add radiantPercentage and direPercentage properties to the res object in the Roshan event handler.
    • Update Redis storage to include the new properties.

https://github.com/dotabod/backend/issues/416


For more details, open the Copilot Workspace session.

Geczy avatar Aug 24 '24 21:08 Geczy