Skip to content

Commit

Permalink
merged
Browse files Browse the repository at this point in the history
  • Loading branch information
alxjrvs committed May 30, 2012
2 parents d6d2e2c + c5a7811 commit 15b6f41
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions games/technoir.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
require './lib/stattr.rb'
include Stattr

module Technoir
include Stattr

class Stat < Stattr::Stat
attr_accessor :val
def initialize(val)
@val = val
end
end
class System < Stattr::System
@stats = ["coax","fight","detect","hack", "move", "operate", "prowl", "shoot", "treat"]
@dice_sides = 6
Expand Down Expand Up @@ -30,7 +36,7 @@ def self.training_programs

class StatList
attr_accessor *System.stats
def initialize(val=1, list)
def initialize(val, list)
System.stats.each { |s|
if list.include?(s)
instance_variable_set("@#{s}", System.make_stat(val + list.count(s)))
Expand Down

0 comments on commit 15b6f41

Please sign in to comment.