1 | # encoding: UTF-8 |
||
2 | |||
3 | 1 | View Code Duplication | def renegados |
0 ignored issues
–
show
Duplication
introduced
by
![]() |
|||
4 | total_renegados = Dir['./data/renegados/*'].length |
||
5 | [*0..(total_renegados - 1)].map do |i| |
||
6 | r = load_yaml("/renegados/#{i}") |
||
7 | r['nivel'] = 1 unless r['nivel'] |
||
8 | r['ciudad'] = 'Revenge' unless r['ciudad'] |
||
9 | r['id'] = i |
||
10 | Renegado.new(r) |
||
11 | end |
||
12 | end |
||
13 | |||
14 | 1 | def renegado(id) |
|
15 | renegados[id] |
||
16 | end |
||
17 |