RoloLudo/RoloLudo.package/SfMove.class/instance/fromDictionary..st

8 lines
334 B
Smalltalk
Raw Permalink Normal View History

accessing
fromDictionary: aDictionary
| tempText |
tempText := (WikiText new content: (aDictionary at: 'Text')) convertMarkdownBold; convertMarkdownLinks.
category := aDictionary at: 'Category'.
name := aDictionary at: 'Name'.
text := tempText content.
(aDictionary includesKey: 'Progress Move') ifTrue: [ self progress: true ]