|
@@ 277-281 (lines=5) @@
|
| 274 |
|
return nil unless progenitores.count == 2 |
| 275 |
|
mama = progenitores.last # Allways in the same position |
| 276 |
|
# Check class type, for polyform. |
| 277 |
|
case mama |
| 278 |
|
when Fixnum then return { 'type' => 'pj', 'char' => hero(mama) } |
| 279 |
|
when String then return { 'type' => 'pnj', 'char' => mama } |
| 280 |
|
else return "Fallo de madre => #{mama.class}" |
| 281 |
|
end |
| 282 |
|
end |
| 283 |
|
|
| 284 |
|
def descendientes |
|
@@ 265-269 (lines=5) @@
|
| 262 |
|
def padre |
| 263 |
|
return nil unless progenitores |
| 264 |
|
papa = progenitores.first # Allways in the same position |
| 265 |
|
case papa |
| 266 |
|
when Fixnum then return { 'type' => 'pj', 'char' => hero(papa) } |
| 267 |
|
when String then return { 'type' => 'pnj', 'char' => papa } |
| 268 |
|
else return "Fallo de padre => #{papa.class}" |
| 269 |
|
end |
| 270 |
|
end |
| 271 |
|
|
| 272 |
|
def madre |