gegerlan/Gentle-Love-Quest — comment on commit df0d69e00680286acb28cf3f24897421b0509727
File:  line 0
By gegerlan:

Oh wait, scratch that. $data_actors stores the state of the database, i.e. it's not modified through a save game, only through system wide game changes using the editor.

What the $game_actors contain is the state of the actor as they've been modified throughout the game (or is loaded by the save game). Since the check is about the current armor worn, your want to see what the actor is currently wearing, not what the actors starting equipment looks like. $data_actors only contains the initial, starting value, for each actor. $game_actors on the other hand, shows you what's current.

> So if the attribute is attr_reader, I dont need to use "@" in the methods defined inside? In which cases do I need to use it then?

attr_reader gives you the possibility to have read access to a class variable, so if you were to modify the value you would need to uses @ in this case.