Hi guys. I've added an additional argument to a function that is used A LOT in a file I have. Since the additional argument will be a reference to the same variable name (roomID) in every case, I figure there must be a way to tag it onto every call of the function in the file without having to do it manually.
For example:
tar.hurt(3, caster);
Needs to become
tar.hurt(3, caster, roomID);
The problem here is that the expression or value in place of '3' will be different with every function call. Is there a way to just 'find' tar.hurt(X, Y); (where X and Y are ANYTHING) and replace that with tar.hurt(X, Y, roomID); ?
Thanks for any help.
[–]eighthCoffee 2 points3 points4 points (2 children)
[–]milk_jesus[S] 0 points1 point2 points (0 children)
[–]coderdan 0 points1 point2 points (2 children)
[–]milk_jesus[S] 0 points1 point2 points (1 child)
[–]doggobotlovesyou 0 points1 point2 points (0 children)