@shipload/item-renderer 1.0.0-next.51 → 1.0.0-next.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipload/item-renderer",
3
- "version": "1.0.0-next.51",
3
+ "version": "1.0.0-next.52",
4
4
  "description": "Deterministic SVG rendering for Shipload items",
5
5
  "homepage": "https://github.com/shipload/toolkit/tree/master/packages/item-renderer",
6
6
  "repository": {
@@ -45,7 +45,7 @@
45
45
  "fonts:copy": "bun run scripts/copy-fonts.ts"
46
46
  },
47
47
  "dependencies": {
48
- "@shipload/sdk": "^1.0.0-next.51",
48
+ "@shipload/sdk": "^1.0.0-next.52",
49
49
  "@wharfkit/antelope": "1.2.0"
50
50
  },
51
51
  "devDependencies": {
@@ -25,6 +25,11 @@ const entityIconNames: Record<string, EntityIconSlug> = {
25
25
  ship: 'ship',
26
26
  roustabout: 'ship',
27
27
  prospector: 'ship',
28
+ tender: 'ship',
29
+ tug: 'ship',
30
+ porter: 'ship',
31
+ wrangler: 'ship',
32
+ dredger: 'ship',
28
33
  hauler: 'ship',
29
34
  container: 'container',
30
35
  }
@@ -7,6 +7,7 @@ export const moduleIconSlugs = [
7
7
  'loader',
8
8
  'warp',
9
9
  'crafter',
10
+ 'builder',
10
11
  'launcher',
11
12
  'storage',
12
13
  'hauler',
@@ -35,6 +36,7 @@ const moduleIconLabels: Record<ModuleIconSlug, string> = {
35
36
  loader: 'Shuttle Bay',
36
37
  warp: 'Warp Drive',
37
38
  crafter: 'Fabricator',
39
+ builder: 'Assembly Arm',
38
40
  launcher: 'Drive Coil',
39
41
  storage: 'Cargo Hold',
40
42
  hauler: 'Tractor Beam',
@@ -58,6 +60,9 @@ const moduleIconNames: Record<string, ModuleIconSlug> = {
58
60
  'warp-drive': 'warp',
59
61
  crafter: 'crafter',
60
62
  fabricator: 'crafter',
63
+ builder: 'builder',
64
+ 'assembly arm': 'builder',
65
+ 'assembly-arm': 'builder',
61
66
  launcher: 'launcher',
62
67
  'drive coil': 'launcher',
63
68
  'drive-coil': 'launcher',
@@ -181,6 +186,23 @@ function crafterIcon(): string {
181
186
  ].join('')
182
187
  }
183
188
 
189
+ function builderIcon(): string {
190
+ return [
191
+ '<path d="M30 176 L48 156 H124 L142 176 V212 L124 230 H48 L30 212 Z" fill="#3f3268" stroke="#120d1b" stroke-width="10" stroke-linejoin="round"/>',
192
+ '<rect x="48" y="196" width="76" height="20" rx="6" fill="#39e4ef" stroke="#120d1b" stroke-width="6"/>',
193
+ '<path d="M96 150 L118 96 L146 108 L124 162 Z" fill="#39e4ef" stroke="#120d1b" stroke-width="7" stroke-linejoin="round"/>',
194
+ '<path d="M70 166 L100 82 L136 95 L106 179 Z" fill="#f59416" stroke="#120d1b" stroke-width="9" stroke-linejoin="round"/>',
195
+ '<path d="M112 92 L196 52 L211 82 L127 122 Z" fill="#ffac2e" stroke="#120d1b" stroke-width="9" stroke-linejoin="round"/>',
196
+ '<circle cx="86" cy="170" r="24" fill="#e72a9a" stroke="#120d1b" stroke-width="8"/>',
197
+ '<circle cx="86" cy="170" r="9" fill="#2c2343" stroke="#120d1b" stroke-width="6"/>',
198
+ '<circle cx="118" cy="98" r="19" fill="#e72a9a" stroke="#120d1b" stroke-width="8"/>',
199
+ '<circle cx="118" cy="98" r="7" fill="#2c2343" stroke="#120d1b" stroke-width="5"/>',
200
+ '<path d="M197 46 L232 30 L242 52 L208 68 Z" fill="#ffcb1f" stroke="#120d1b" stroke-width="8" stroke-linejoin="round"/>',
201
+ '<path d="M209 80 L244 96 L234 118 L199 102 Z" fill="#ffcb1f" stroke="#120d1b" stroke-width="8" stroke-linejoin="round"/>',
202
+ '<circle cx="203" cy="74" r="12" fill="#2c2343" stroke="#120d1b" stroke-width="6"/>',
203
+ ].join('')
204
+ }
205
+
184
206
  function launcherIcon(): string {
185
207
  return [
186
208
  '<rect x="35" y="78" width="186" height="100" rx="28" fill="#3f3268" stroke="#120d1b" stroke-width="10"/>',
@@ -257,6 +279,7 @@ const iconBodies: Record<ModuleIconSlug, string> = {
257
279
  loader: loaderIcon(),
258
280
  warp: warpIcon(),
259
281
  crafter: crafterIcon(),
282
+ builder: builderIcon(),
260
283
  launcher: launcherIcon(),
261
284
  storage: storageIcon(),
262
285
  hauler: haulerIcon(),
@@ -6,6 +6,7 @@ export const stationEntityIconKinds = [
6
6
  'warehouse',
7
7
  'extractor',
8
8
  'factory',
9
+ 'workshop',
9
10
  'mdriver',
10
11
  'mcatcher',
11
12
  ] as const
@@ -29,6 +30,7 @@ const stationEntityIconLabels: Record<StationEntityIconKind, string> = {
29
30
  warehouse: 'Warehouse',
30
31
  extractor: 'Extractor',
31
32
  factory: 'Factory',
33
+ workshop: 'Workshop',
32
34
  mdriver: 'Mass Driver',
33
35
  mcatcher: 'Mass Catcher',
34
36
  }
@@ -40,6 +42,7 @@ const stationEntityIconNames: Record<string, StationEntityIconKind> = {
40
42
  extractor: 'extractor',
41
43
  'mining rig': 'extractor',
42
44
  factory: 'factory',
45
+ workshop: 'workshop',
43
46
  mdriver: 'mdriver',
44
47
  'meteor driver': 'mdriver',
45
48
  'mass driver': 'mdriver',
@@ -168,6 +171,10 @@ function factoryIcon(): string {
168
171
  )
169
172
  }
170
173
 
174
+ function workshopIcon(): string {
175
+ return factoryIcon()
176
+ }
177
+
171
178
  function mdriverIcon(): string {
172
179
  return wrap(
173
180
  [
@@ -215,6 +222,7 @@ const iconBodies: Record<StationEntityIconKind, string> = {
215
222
  warehouse: warehouseIcon(),
216
223
  extractor: extractorIcon(),
217
224
  factory: factoryIcon(),
225
+ workshop: workshopIcon(),
218
226
  mdriver: mdriverIcon(),
219
227
  mcatcher: mcatcherIcon(),
220
228
  }