Abilities use WikiText links now since they're imported.
This commit is contained in:
parent
7d8d183bf4
commit
be5f3fe2da
@ -1,3 +1,4 @@
|
|||||||
converting
|
converting
|
||||||
currentAbilities
|
currentAbilities
|
||||||
|
|
||||||
^ self abilities at: 'enabled'
|
^ self abilities at: 'enabled'
|
@ -1,10 +1,12 @@
|
|||||||
accessing
|
accessing
|
||||||
populateAbilities: abilitiesDictionary
|
populateAbilities: abilitiesArray
|
||||||
|
|
||||||
| enabled disabled |
|
| enabled disabled |
|
||||||
enabled := abilitiesDictionary select: [ :abi | abi keys includes: 'Enabled' ].
|
enabled := abilitiesArray select: [ :abi | (abi at: 'Enabled') = true ].
|
||||||
disabled := abilitiesDictionary reject: [ :abi | abi keys includes: 'Enabled' ].
|
disabled := abilitiesArray select: [ :abi | (abi at: 'Enabled') = false ].
|
||||||
^ self abilities
|
^ self abilities
|
||||||
at: 'enabled' put: (enabled collect: [:abi | (abi at: 'Text') ]);
|
at: 'enabled' put: (enabled collect: [:abi |
|
||||||
at: 'disabled' put: (disabled collect: [:abi | (abi at: 'Text') ]);
|
(WikiText new content: (abi at: 'Text')) convertMarkdownLinks ]);
|
||||||
|
at: 'disabled' put: (disabled collect: [:abi |
|
||||||
|
(WikiText new content: (abi at: 'Text')) convertMarkdownLinks ]);
|
||||||
yourself.
|
yourself.
|
Loading…
Reference in New Issue
Block a user