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_typeSymbol (readonly)

Defensive type getting the damage factor

Returns:

  • (Symbol)


1053
1054
1055
# File 'docs/3_Studio.rb', line 1053

def defensive_type
  @defensive_type
end

#factorFloat (readonly)

Factor of damage over the defensive type

Returns:

  • (Float)


1056
1057
1058
# File 'docs/3_Studio.rb', line 1056

def factor
  @factor
end