| @@ 88-94 (lines=7) @@ | ||
| 85 | end |
|
| 86 | end |
|
| 87 | ||
| 88 | def weapons |
|
| 89 | if armas.class.to_s == 'Array' |
|
| 90 | armas.map { |w| get_weapon(w) } |
|
| 91 | else # Single weapon // nil item. |
|
| 92 | [get_weapon(armas)] |
|
| 93 | end |
|
| 94 | end |
|
| 95 | ||
| 96 | def clase |
|
| 97 | clases.select { |_c, ps| ps.include?(personaje) }.keys.first |
|
| @@ 86-92 (lines=7) @@ | ||
| 83 | end |
|
| 84 | end |
|
| 85 | ||
| 86 | def weapons |
|
| 87 | if armas.class.to_s == 'Array' |
|
| 88 | armas.map { |w| get_weapon(w) } |
|
| 89 | else # Single weapon // nil item. |
|
| 90 | [get_weapon(armas)] |
|
| 91 | end |
|
| 92 | end |
|
| 93 | ||
| 94 | def hab_base |
|
| 95 | habilidad_base(clase) |
|