RoloLudo/RoloLudo.package/SfAsset.class/instance/populateAbilities..st

12 lines
484 B
Smalltalk

accessing
populateAbilities: abilitiesArray
| enabled disabled |
enabled := abilitiesArray select: [ :abi | (abi at: 'Enabled') = true ].
disabled := abilitiesArray select: [ :abi | (abi at: 'Enabled') = false ].
^ self abilities
at: 'enabled' put: (enabled collect: [:abi |
(WikiText new content: (abi at: 'Text')) convertMarkdownLinks ]);
at: 'disabled' put: (disabled collect: [:abi |
(WikiText new content: (abi at: 'Text')) convertMarkdownLinks ]);
yourself.