Sha256: c7ac1349b3493c65848f6f2c83f4d0ab0bb8d8173b4688846db22084f84f5583

Contents?: true

Size: 971 Bytes

Versions: 3

Compression:

Stored size: 971 Bytes

Contents

class Race
    attr_accessor :hp, :str, :agi, :int, :dex, :lck
    def initialize
        @hp = 0
        @str = 0 
        @agi = 0
        @int = 0
        @dex = 0
        @lck = 0
    end

    def elf
        @hp = 20
        @str = 10 
        @agi = 30
        @int = 10
        @dex = 30
        @lck = 10
    end

    def human
        @hp = 20
        @str = 20 
        @agi = 10 
        @int = 20
        @dex = 20
        @lck = 20
    end

    def dwarf
        @hp = 30
        @str = 25 
        @agi = 15 
        @int = 10
        @dex = 10
        @lck = 20
    end

    def god
        @hp = 99999
        @str = 999
        @agi = 999
        @int = 999
        @dex = 999
        @lck = 999
        @achievements = ["Surreee you're a god. Cheater."]
    end

    def beast
        @hp = 66666
        @str = 666
        @agi = 666
        @int = 666
        @dex = 666
        @lck = 666
        @achievements = ["A beast. At cheating."]
    end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lotrd-0.1.8 lib/lotrd/model/race.rb
lotrd-0.1.6 lib/lotrd/m-race.rb
lotrd-0.1.5 lib/lotrd/m-race.rb