Method: Destiny::ManifestDefinitions#enemy_race
- Defined in:
- lib/destiny_rb/manifest_definitions.rb
#enemy_race(type) ⇒ Object
Enemy Race definitions
Usage:
client.enemy_race(:vex)
client.enemy_race(711470098)
Arguments:
type: (String/Symbol)
Returns:
Either the numeric representation of a enemy race or a symbol of said race.
60 61 62 63 64 65 66 67 68 69 |
# File 'lib/destiny_rb/manifest_definitions.rb', line 60 def enemy_race(type) races = { none: 0, # Not a real Bungie value fallen: 1636291695, vex: 711470098, cabal: 546070638, hive: 3265589059 } type_checker(type, races) end |