Class: Studio::Ability

Inherits:
Object show all
Defined in:
scripts/00800 Studio/00001 Data/00001 Ability.rb

Overview

Data class describing an Ability

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#db_symbolSymbol (readonly)

db_symbol of the ability

Returns:

  • (Symbol)


10
11
12
# File 'scripts/00800 Studio/00001 Data/00001 Ability.rb', line 10

def db_symbol
  @db_symbol
end

#idInteger (readonly)

ID of the ability

Returns:



6
7
8
# File 'scripts/00800 Studio/00001 Data/00001 Ability.rb', line 6

def id
  @id
end

#text_idInteger (readonly)

ID of the text of the ability in the text files

Returns:



14
15
16
# File 'scripts/00800 Studio/00001 Data/00001 Ability.rb', line 14

def text_id
  @text_id
end

Instance Method Details

#descriptionString Also known as: descr

Get the text description of the ability

Returns:



18
19
20
# File 'scripts/00800 Studio/00001 Data/00001 Ability.rb', line 18

def description
  return text_get(5, @text_id)
end

#nameString

Get the text name of the ability

Returns:



25
26
27
# File 'scripts/00800 Studio/00001 Data/00001 Ability.rb', line 25

def name
  return text_get(4, @text_id)
end