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
|
2019-06-12 13:53:24 -04:00
|
|
|
|
|
|
|
def environmental?
|
|
|
|
environmental
|
|
|
|
end
|
2019-06-12 12:13:21 -04:00
|
|
|
end
|