Closed JacobAKnox closed 1 month ago
All the logic for the ability handler was already correct.
What should have been done is write a function that conforms to the ability function definition: function ability(lobbycode, playerid, data)
Then add that to the ability function map in get_ability_function
with an appropriate key.
Keys can be found under the ability
key in role_data.json
what you changed in use_ability
should be undone
data is determined on the client side and should be unpacked in the ability function see #81 for more info on this system
@JacobAKnox, So should I revert back to the original code you had before? or is the implementation I had okay to keep and also add the changes you requested?
@Freddyh11 revert just the change in use_ability
your implementation is redundant
30 min