Replies: 1 comment
-
How come Back to the title, it is NOT ALWAYS TRUE to use the local attack = {}
function attack.calcDamage(attacker, target) end
---
local Player = {}
function Player:attack(otherPlayer)
local dmg = attack.calcDamage(self, otherPlayer)
-- other logic ...
end
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
":" need to press keyboard twice
Beta Was this translation helpful? Give feedback.
All reactions