Changes for page Development (Unfinished)
Last modified by aio lis on 2021/09/09 03:42
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,2 +1,88 @@ 1 -{{groovy}}{{/groovy}} 1 +{{groovy}} 2 +def data = [ 3 + flags: [ 4 + ], 5 + items: [ 6 + [ 7 + address: "0x5C4D65", 8 + bits: [ 9 + (7): "Gate Key [Northern Waste]" 10 + ] 11 + ], 12 + [ 13 + address: "0x5C4D67", 14 + bits: [ 15 + (1): "Mine Key [Northern Waste]", 16 + (2): "Mine Key Used [Northern Waste]" 17 + ] 18 + ], 19 + [ 20 + address: "0x5C4D67", 21 + bits: [ 22 + (1): "Alpine Roots [Northern Waste]", 23 + (2): "Alpine Roots [Northern Waste]", 24 + (3): "Alpine Roots [Northern Waste]" 25 + ] 26 + ], 27 + [ 28 + address: "0x5C5D6C", 29 + bits: [ 30 + (3): "DarkIce Mines SpellStone (unactivated)", 31 + (4): "DarkIce Mines SpellStone (activated)", 32 + (5): "Horn of Truth" 33 + ] 34 + ], 35 + [ 36 + address: "0x5C4D80", 37 + bits: [ 38 + (2): "Silver Tooth (Heel Command?)", 39 + (3): "Gold Tooth (Heel Command?)", 40 + (6): "Sun Stone", 41 + (7): "Moon Stone" 42 + ] 43 + ], 44 + [ 45 + address: "0x5C4DBB", 46 + bits: [ 47 + (6): "Bay Diamond", 48 + (7): "PointBack Egg" 49 + ] 50 + ], 51 + [ 52 + address: "0x5C4DBF", 53 + bits: [ 54 + (5): "Small Food Bag", 55 + (6): "Medium Food Bag", 56 + (7): "Large Food Bag" 57 + ] 58 + ] 59 + ], 60 + spells: [ 61 + ] 62 +] 2 2 64 +def printBitTable(list) { 65 + list.each { item -> 66 + println "**$item.address**" 67 + println "" 68 + println "|(% style=\"width:35px\" %)**Bit**|(% style=\"width:463px\" %)**Purpose**" 69 + for (int i = 0; i < 8; i++) { 70 + if (item.bits[i]) { 71 + println "|(% style=\"width:35px\" %)$i|(% style=\"width:463px\" %)${item.bits[i]}" 72 + } else { 73 + println "|(% style=\"width:35px\" %)$i|(% style=\"width:463px\" %)?" 74 + } 75 + } 76 + println "" 77 + } 78 +} 79 + 80 +println "== Progression Flags ==" 81 +printBitTable(data.flags) 82 + 83 +println "== Items ==" 84 +printBitTable(data.items) 85 + 86 +println "== Spells ==" 87 +printBitTable(data.spells) 88 +{{/groovy}}