ShardsOfPower/tilt.rb

21 lines
451 B
Ruby
Raw Normal View History

2019-06-12 12:13:21 -04:00
class Tilt
attr_accessor :name, :rules_text, :effect, :causing, :ending, :environmental, :authors
def initialize(name:, rules_text:, effect:, causing:, ending:, environmental: false , authors:)
@name = name
@rules_text = rules_text
@effect = effect
@causing = causing
@ending = ending
@environmental = environmental
@authors = authors
end
def full_title
if environmental
"#{name} (Environmental)"
else
name
end
end
end