backend
backend copied to clipboard
Update Roshan kill message to include Radiant/Dire percentages
Update the generateRoshanMessage
function to include Radiant/Dire percentages.
-
Add Radiant/Dire percentage calculation:
- Add
radiantPercentage
anddirePercentage
properties to theRoshRes
interface. - Create
calculateRadiantDirePercentages
function to calculate Radiant/Dire percentages based onminS
andmaxS
. - Update
generateRoshanMessage
function to callcalculateRadiantDirePercentages
and include the percentages in the message.
- Add
-
Update Roshan event handler:
- Add
radiantPercentage
anddirePercentage
properties to theres
object in the Roshan event handler. - Update Redis storage to include the new properties.
- Add
https://github.com/dotabod/backend/issues/416
For more details, open the Copilot Workspace session.