crobi 10 lat temu
rodzic
commit
245d38f893

+ 0
- 1
generator/data/card_data.js Wyświetl plik

@@ -1 +0,0 @@
1
-var card_data = [];

+ 0
- 163
generator/data/card_data_example.js Wyświetl plik

@@ -1,163 +0,0 @@
1
-var card_data_example = [
2
-    {
3
-        "count": 1,
4
-        "color": "maroon",
5
-        "title": "Burning Hands",
6
-        "icon": "book-cover",
7
-        "icon_back": "robe",
8
-        "contents": [
9
-            "subtitle | 1st level evocation",
10
-            "rule",
11
-            "property | Casting time | 1 action",
12
-            "property | Range | Self (15ft cone)",
13
-            "property | Components | V,S",
14
-            "rule",
15
-            "fill | 2",
16
-            "text | Each creature in a 15-foot cone must make a Dexterity saving throw. A creature takes <b>3d6 fire damage</b> on a failed save, or half as much damage on a successful one.",
17
-            "text | The fire ignites any flammable objects in the area that aren't being worn or carried.",
18
-            "fill | 3",
19
-            "section | At higher levels",
20
-            "text | +1d6 damage for each slot above 1st"
21
-        ],
22
-        "tags": ["spell", "mage"]
23
-    },
24
-    {
25
-        "count": 1,
26
-        "color": "indigo",
27
-        "title": "Cunning Action",
28
-        "icon": "white-book",
29
-        "icon_back": "cloak-dagger",
30
-        "contents": [
31
-            "subtitle | Rogue feature",
32
-            "rule",
33
-            "fill | 2",
34
-            "text | You can take a <b>bonus action on each of your turns</b> in combat. This action can be used only to take the <b>Dash, Disengage, or Hide</b> action.",
35
-            "fill | 2",
36
-            "section | Fast hands (Thief 3rd)",
37
-            "text | You can also use the bonus action to make a Dexterity (<b>Sleight of Hand</b>) check, use your thieves' tools to <b>disarm a trap</b> or <b>open a lock</b>, or take the <b>Use an Object</b> action."
38
-        ],
39
-        "tags": ["feature", "rogue"]
40
-    },
41
-    {
42
-        "count": 1,
43
-        "color": "dimgray",
44
-        "title": "Full Plate",
45
-        "icon": "breastplate",
46
-        "contents": [
47
-            "subtitle | Heavy armor (1500gp)",
48
-            "rule",
49
-            "property | AC | 18",
50
-            "property | Strength required | 15",
51
-            "property | Stealth | Disadvantage",
52
-            "rule",
53
-            "fill | 2",
54
-            "description | Heavy | Unless you have the required strength, your speed is reduced by 10 feet.",
55
-            "description | Stealth | You have disadvantage on Dexterity (Stealth) checks.",
56
-            "fill | 3"
57
-        ],
58
-        "tags": ["item", "armor"]
59
-    },
60
-    {
61
-        "count": 1,
62
-        "color": "dimgray",
63
-        "title": "Dagger",
64
-        "icon": "mixed-swords",
65
-        "contents": [
66
-            "subtitle | Simple melee weapon (2gp)",
67
-            "rule",
68
-            "property | Damage | 1d4 piercing",
69
-            "property | Modifier | Strength or Dexterity",
70
-            "property | Properties | Light, Finesse, Thrown (20/60)",
71
-            "rule",
72
-            "fill | 2",
73
-            "description | Finesse | Use your choice of Strength or Dexterity modifier for attack and damage.",
74
-            "description | Light | When you attack while dual wielding light weapons, you may use a bonus action to attack with your off hand.",
75
-            "description | Thrown | You can throw the weapon to make a ranged attack with the given range.",
76
-            "fill | 3"
77
-        ],
78
-        "tags": ["item", "weapon"]
79
-    },
80
-    {
81
-        "count": 1,
82
-        "color": "dimgray",
83
-        "title": "Shortsword of Very Long Names",
84
-        "title_size": "10",
85
-        "icon": "crossed-swords",
86
-        "contents": [
87
-            "subtitle | Simple melee weapon (10gp)",
88
-            "rule",
89
-            "property | Damage | 1d6 piercing",
90
-            "property | Modifier | Strength or Dexterity",
91
-            "property | Properties | Light, Finesse",
92
-            "rule",
93
-            "fill | 2",
94
-            "description | Finesse | Use your choice of Strength or Dexterity modifier for attack and damage.",
95
-            "description | Light | When you attack while dual wielding light weapons, you may use a bonus action to attack with your off hand.",
96
-            "fill | 3"
97
-        ],
98
-        "tags": ["item", "weapon", "magic"]
99
-    },
100
-    {
101
-        "count": 1,
102
-        "color": "dimgray",
103
-        "title": "Wand of Magic Missiles",
104
-        "icon": "crystal-wand",
105
-        "contents": [
106
-            "subtitle | Wondrous item",
107
-            "rule",
108
-            "property | Maximum charges | 7",
109
-            "property | Recharge | 1d6+1 each day",
110
-            "property | Depletion | If you expend the last charge, roll a d20. On a 1, the item is destroyed.",
111
-            "rule",
112
-            "fill | 2",
113
-            "description | Spells | You can use your action to cast the following spells:",
114
-            "bullet | magic missile, 1st level (1 charge)",
115
-            "bullet | magic missile, 2nd level (2 charges)",
116
-            "bullet | magic missile, 3rd level (3 charges)",
117
-            "fill | 3",
118
-            "boxes | 7 | 2.5"
119
-        ],
120
-        "tags": ["item", "wondrous-item", "magic"]
121
-    },
122
-    {
123
-        "count": 2,
124
-        "color": "dimgray",
125
-        "title": "Potion of Healing",
126
-        "icon": "drink-me",
127
-        "contents": [
128
-            "subtitle | Potion (50gp)",
129
-            "rule",
130
-            "property | Use time | 1 action",
131
-            "property | Hit points restored | 2d4+2",
132
-            "rule",
133
-            "fill | 2",
134
-            "text | When you drink this potion, you regain 2d4+2 hitpoints.",
135
-            "text | Drinking or administering a potion takes 1 action.",
136
-            "fill | 3"
137
-        ],
138
-        "tags": ["item", "consumable"]
139
-    },
140
-    {
141
-        "count": 1,
142
-        "color": "black",
143
-        "title": "Goblin",
144
-        "icon": "imp-laugh",
145
-        "contents": [
146
-            "subtitle | Small humanoid (goblinoid)",
147
-            "rule",
148
-            "property | Armor class | 15 (leather armor, shield)",
149
-            "property | Hit points | 7 (2d6)",
150
-            "rule",
151
-            "dndstats | 8 | 14 | 10 | 10 | 8 | 8",
152
-            "rule",
153
-            "property | Skills | Stealth +6",
154
-            "property | Challenge | 1/4 (50 XP)",
155
-            "rule",
156
-            "description | Nimble escape | Disengage or Hide as bonus action",
157
-            "fill | 2",
158
-            "section | Actions",
159
-            "description | Scimitar | Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 5 (1d6 + 2) slashing damage"
160
-        ],
161
-        "tags": ["creature", "humanoid"]
162
-    }
163
-]

+ 0
- 2
generator/server.bat Wyświetl plik

@@ -1,2 +0,0 @@
1
-start http-server
2
-"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" http://localhost:8080/components-test.html

+ 0
- 9
resources/scripts/list-game-icons.bat Wyświetl plik

@@ -1,9 +0,0 @@
1
-@cd ..
2
-@cd ..
3
-@echo ------------------------------------------------------
4
-@echo This lists all files in ./resources/game-icons.net
5
-@echo and saves the list as game-icons.net.txt
6
-@echo ------------------------------------------------------
7
-@pause
8
-node ./resources/scripts/list.js ../game-icons.net ../scripts/game-icons.net.txt
9
-@pause

+ 9
- 0
resources/scripts/list-icons.bat Wyświetl plik

@@ -0,0 +1,9 @@
1
+@cd ..
2
+@cd ..
3
+@echo ------------------------------------------------------
4
+@echo This lists all files in ./generator/icons
5
+@echo and saves the list as icons.txt in that directory
6
+@echo ------------------------------------------------------
7
+@pause
8
+node ./resources/scripts/list.js ../../generator/icons icons.txt
9
+@pause

Ładowanie…
Anuluj
Zapisz