Class: Studio::Type::DamageTo

Inherits:
Object
  • Object
show all
Defined in:
docs/3_Studio.rb

Overview

Data class describing the damage a type does against another type

Instance Attribute Summary collapse

Instance Attribute Details

#defensive_type ⇒ Symbol (readonly)

Defensive type getting the damage factor

Returns:

  • (Symbol)


1232
1233
1234
# File 'docs/3_Studio.rb', line 1232

def defensive_type
  @defensive_type
end

#factor ⇒ Float (readonly)

Factor of damage over the defensive type

Returns:

  • (Float)


1235
1236
1237
# File 'docs/3_Studio.rb', line 1235

def factor
  @factor
end