Hello.
I'm trying to add variables to the RPG::Skill class but it's not working at all.
Here's the code I wrote.
What's the problem?
Any help would be appreciated.
Thanks in advance!
-Dargor
I'm trying to add variables to the RPG::Skill class but it's not working at all.
Here's the code I wrote.
Code:
class RPG::Skill
attr_accessor :completion
alias dargor_rpg_skill_initialize initialize
def initialize
dargor_rpg_skill_initialize
@completion = []
end
end
What's the problem?
Any help would be appreciated.
Thanks in advance!
-Dargor