@modlock/modlock 0.1.64 → 0.1.68

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/index.js CHANGED
@@ -1850,6 +1850,24 @@ var MovementAction_Enum = /* @__PURE__ */ createEnumType(
1850
1850
  [11, "MOVEMENT_ACTION_ABILITY_EXECUTED"]
1851
1851
  ]
1852
1852
  );
1853
+ var InteractionKind_Enum = /* @__PURE__ */ createEnumType(
1854
+ "modlock.wasm.movement.InteractionKind",
1855
+ [
1856
+ [0, "INTERACTION_KIND_UNKNOWN"],
1857
+ [1, "INTERACTION_KIND_PICKUP_COLLECTED"],
1858
+ [2, "INTERACTION_KIND_PROP_BROKEN"]
1859
+ ]
1860
+ );
1861
+ var Lane_Enum = /* @__PURE__ */ createEnumType(
1862
+ "modlock.wasm.movement.Lane",
1863
+ [
1864
+ [0, "LANE_NONE"],
1865
+ [1, "LANE_YELLOW"],
1866
+ [3, "LANE_GREEN"],
1867
+ [4, "LANE_BLUE"],
1868
+ [6, "LANE_PURPLE"]
1869
+ ]
1870
+ );
1853
1871
  var MovementSample = /* @__PURE__ */ createMessageType(
1854
1872
  "modlock.wasm.movement.MovementSample",
1855
1873
  () => [
@@ -1873,7 +1891,8 @@ var MovementSample = /* @__PURE__ */ createMessageType(
1873
1891
  [19, "zipline_time", 2, 4],
1874
1892
  [20, "actions", 14, 3, MovementAction_Enum],
1875
1893
  [21, "casts", 13, 3],
1876
- [22, "command", 11, 0, MovementCommand.codec]
1894
+ [22, "command", 11, 0, MovementCommand.codec],
1895
+ [23, "interactions", 11, 1, Interaction.codec]
1877
1896
  ],
1878
1897
  {
1879
1898
  decode: (r, end, m) => {
@@ -1954,6 +1973,12 @@ var MovementSample = /* @__PURE__ */ createMessageType(
1954
1973
  m.command ?? {}
1955
1974
  );
1956
1975
  break;
1976
+ case 23:
1977
+ ;
1978
+ (m.interactions ??= []).push(
1979
+ Interaction.decode(r, r.delimited(), {})
1980
+ );
1981
+ break;
1957
1982
  default:
1958
1983
  r.skip(t);
1959
1984
  }
@@ -2053,6 +2078,86 @@ var MovementSample = /* @__PURE__ */ createMessageType(
2053
2078
  const v = m.command;
2054
2079
  if (v != null) MovementCommand.writeField(w, 22, v);
2055
2080
  }
2081
+ {
2082
+ const a = m.interactions;
2083
+ if (a != null) for (const e of a) Interaction.writeField(w, 23, e);
2084
+ }
2085
+ }
2086
+ }
2087
+ );
2088
+ var Interaction = /* @__PURE__ */ createMessageType(
2089
+ "modlock.wasm.movement.Interaction",
2090
+ () => [
2091
+ [1, "kind", 14, 0, InteractionKind_Enum],
2092
+ [2, "entity", 13],
2093
+ [3, "designer_name", 9],
2094
+ [4, "subclass_id", 13],
2095
+ [5, "origin", 11, 0, Vec3.codec],
2096
+ [6, "vacuum_start", 2, 4],
2097
+ [7, "inflictor", 13]
2098
+ ],
2099
+ {
2100
+ decode: (r, end, m) => {
2101
+ while (r.pos < end) {
2102
+ const t = r.tag();
2103
+ if ((t & 7) === 4) return m;
2104
+ switch (t >>> 3) {
2105
+ case 1:
2106
+ m.kind = r.int32();
2107
+ break;
2108
+ case 2:
2109
+ m.entity = r.uint32();
2110
+ break;
2111
+ case 3:
2112
+ m.designerName = r.string();
2113
+ break;
2114
+ case 4:
2115
+ m.subclassId = r.uint32();
2116
+ break;
2117
+ case 5:
2118
+ m.origin = Vec3.decode(r, r.delimited(), m.origin ?? {});
2119
+ break;
2120
+ case 6:
2121
+ m.vacuumStart = r.float();
2122
+ break;
2123
+ case 7:
2124
+ m.inflictor = r.uint32();
2125
+ break;
2126
+ default:
2127
+ r.skip(t);
2128
+ }
2129
+ }
2130
+ return m;
2131
+ },
2132
+ encode: (m, w) => {
2133
+ {
2134
+ const v = m.kind;
2135
+ if (v) w.uint32(8).int32(v);
2136
+ }
2137
+ {
2138
+ const v = m.entity;
2139
+ if (v) w.uint32(16).uint32(v);
2140
+ }
2141
+ {
2142
+ const v = m.designerName;
2143
+ if (v) w.uint32(26).string(v);
2144
+ }
2145
+ {
2146
+ const v = m.subclassId;
2147
+ if (v) w.uint32(32).uint32(v);
2148
+ }
2149
+ {
2150
+ const v = m.origin;
2151
+ if (v != null) Vec3.writeField(w, 5, v);
2152
+ }
2153
+ {
2154
+ const v = m.vacuumStart;
2155
+ if (v != null) w.uint32(53).float(v);
2156
+ }
2157
+ {
2158
+ const v = m.inflictor;
2159
+ if (v) w.uint32(56).uint32(v);
2160
+ }
2056
2161
  }
2057
2162
  }
2058
2163
  );
@@ -2228,6 +2333,42 @@ var TeleportRequest = /* @__PURE__ */ createMessageType(
2228
2333
  }
2229
2334
  }
2230
2335
  );
2336
+ var ZiplineRequest = /* @__PURE__ */ createMessageType(
2337
+ "modlock.wasm.movement.ZiplineRequest",
2338
+ () => [
2339
+ [1, "player", 5],
2340
+ [2, "lane", 14, 0, Lane_Enum]
2341
+ ],
2342
+ {
2343
+ decode: (r, end, m) => {
2344
+ while (r.pos < end) {
2345
+ const t = r.tag();
2346
+ if ((t & 7) === 4) return m;
2347
+ switch (t >>> 3) {
2348
+ case 1:
2349
+ m.player = r.int32();
2350
+ break;
2351
+ case 2:
2352
+ m.lane = r.int32();
2353
+ break;
2354
+ default:
2355
+ r.skip(t);
2356
+ }
2357
+ }
2358
+ return m;
2359
+ },
2360
+ encode: (m, w) => {
2361
+ {
2362
+ const v = m.player;
2363
+ if (v) w.uint32(8).int32(v);
2364
+ }
2365
+ {
2366
+ const v = m.lane;
2367
+ if (v) w.uint32(16).int32(v);
2368
+ }
2369
+ }
2370
+ }
2371
+ );
2231
2372
  var MovePlayerRequest = /* @__PURE__ */ createMessageType(
2232
2373
  "modlock.wasm.movement.MovePlayerRequest",
2233
2374
  () => [
@@ -2724,7 +2865,8 @@ var FrameEvent = /* @__PURE__ */ createMessageType(
2724
2865
  () => [
2725
2866
  [1, "tick", 4],
2726
2867
  [2, "time_seconds", 1],
2727
- [3, "movement", 11, 1, MovementSample.codec]
2868
+ [3, "movement", 11, 1, MovementSample.codec],
2869
+ [4, "interactions", 14, 3, InteractionKind_Enum]
2728
2870
  ],
2729
2871
  {
2730
2872
  decode: (r, end, m) => {
@@ -2744,6 +2886,10 @@ var FrameEvent = /* @__PURE__ */ createMessageType(
2744
2886
  MovementSample.decode(r, r.delimited(), {})
2745
2887
  );
2746
2888
  break;
2889
+ case 4:
2890
+ for (const e = r.run(t), a = m.interactions ??= []; r.pos < e; )
2891
+ a.push(r.int32());
2892
+ break;
2747
2893
  default:
2748
2894
  r.skip(t);
2749
2895
  }
@@ -2763,6 +2909,14 @@ var FrameEvent = /* @__PURE__ */ createMessageType(
2763
2909
  const a = m.movement;
2764
2910
  if (a != null) for (const e of a) MovementSample.writeField(w, 3, e);
2765
2911
  }
2912
+ {
2913
+ const a = m.interactions;
2914
+ if (a != null && a.length > 0) {
2915
+ const s = w.uint32(34).fork();
2916
+ for (const e of a) w.int32(e);
2917
+ w.join(s);
2918
+ }
2919
+ }
2766
2920
  }
2767
2921
  }
2768
2922
  );
@@ -3257,7 +3411,8 @@ var Ability = /* @__PURE__ */ createMessageType(
3257
3411
  [8, "state", 13],
3258
3412
  [9, "cooldown_start", 2],
3259
3413
  [10, "recharge_start", 2],
3260
- [11, "recharge_end", 2]
3414
+ [11, "recharge_end", 2],
3415
+ [12, "imbues", 9, 1]
3261
3416
  ],
3262
3417
  {
3263
3418
  decode: (r, end, m) => {
@@ -3298,6 +3453,10 @@ var Ability = /* @__PURE__ */ createMessageType(
3298
3453
  case 11:
3299
3454
  m.rechargeEnd = r.float();
3300
3455
  break;
3456
+ case 12:
3457
+ ;
3458
+ (m.imbues ??= []).push(r.string());
3459
+ break;
3301
3460
  default:
3302
3461
  r.skip(t);
3303
3462
  }
@@ -3349,6 +3508,10 @@ var Ability = /* @__PURE__ */ createMessageType(
3349
3508
  const v = m.rechargeEnd;
3350
3509
  if (v != null && v !== 0) w.uint32(93).float(v);
3351
3510
  }
3511
+ {
3512
+ const a = m.imbues;
3513
+ if (a != null) for (const e of a) w.uint32(98).string(e);
3514
+ }
3352
3515
  }
3353
3516
  }
3354
3517
  );
@@ -3432,7 +3595,8 @@ var GiveItemRequest = /* @__PURE__ */ createMessageType(
3432
3595
  "modlock.wasm.abilities.GiveItemRequest",
3433
3596
  () => [
3434
3597
  [1, "player", 5],
3435
- [2, "item", 9]
3598
+ [2, "item", 9],
3599
+ [3, "imbue", 13, 4]
3436
3600
  ],
3437
3601
  {
3438
3602
  decode: (r, end, m) => {
@@ -3446,6 +3610,9 @@ var GiveItemRequest = /* @__PURE__ */ createMessageType(
3446
3610
  case 2:
3447
3611
  m.item = r.string();
3448
3612
  break;
3613
+ case 3:
3614
+ m.imbue = r.uint32();
3615
+ break;
3449
3616
  default:
3450
3617
  r.skip(t);
3451
3618
  }
@@ -3461,6 +3628,10 @@ var GiveItemRequest = /* @__PURE__ */ createMessageType(
3461
3628
  const v = m.item;
3462
3629
  if (v) w.uint32(18).string(v);
3463
3630
  }
3631
+ {
3632
+ const v = m.imbue;
3633
+ if (v != null) w.uint32(24).uint32(v);
3634
+ }
3464
3635
  }
3465
3636
  }
3466
3637
  );
@@ -6044,7 +6215,7 @@ var CountResponse = /* @__PURE__ */ createMessageType(
6044
6215
  // src/wasm/files/files.pb.ts
6045
6216
  var ReadFileRequest = /* @__PURE__ */ createMessageType(
6046
6217
  "modlock.wasm.files.ReadFileRequest",
6047
- () => [[1, "name", 9]],
6218
+ () => [[1, "path", 9]],
6048
6219
  {
6049
6220
  decode: (r, end, m) => {
6050
6221
  while (r.pos < end) {
@@ -6052,7 +6223,7 @@ var ReadFileRequest = /* @__PURE__ */ createMessageType(
6052
6223
  if ((t & 7) === 4) return m;
6053
6224
  switch (t >>> 3) {
6054
6225
  case 1:
6055
- m.name = r.string();
6226
+ m.path = r.string();
6056
6227
  break;
6057
6228
  default:
6058
6229
  r.skip(t);
@@ -6062,7 +6233,7 @@ var ReadFileRequest = /* @__PURE__ */ createMessageType(
6062
6233
  },
6063
6234
  encode: (m, w) => {
6064
6235
  {
6065
- const v = m.name;
6236
+ const v = m.path;
6066
6237
  if (v) w.uint32(10).string(v);
6067
6238
  }
6068
6239
  }
@@ -6097,7 +6268,7 @@ var ReadFileResponse = /* @__PURE__ */ createMessageType(
6097
6268
  var WriteFileRequest = /* @__PURE__ */ createMessageType(
6098
6269
  "modlock.wasm.files.WriteFileRequest",
6099
6270
  () => [
6100
- [1, "name", 9],
6271
+ [1, "path", 9],
6101
6272
  [2, "text", 9]
6102
6273
  ],
6103
6274
  {
@@ -6107,7 +6278,7 @@ var WriteFileRequest = /* @__PURE__ */ createMessageType(
6107
6278
  if ((t & 7) === 4) return m;
6108
6279
  switch (t >>> 3) {
6109
6280
  case 1:
6110
- m.name = r.string();
6281
+ m.path = r.string();
6111
6282
  break;
6112
6283
  case 2:
6113
6284
  m.text = r.string();
@@ -6120,7 +6291,7 @@ var WriteFileRequest = /* @__PURE__ */ createMessageType(
6120
6291
  },
6121
6292
  encode: (m, w) => {
6122
6293
  {
6123
- const v = m.name;
6294
+ const v = m.path;
6124
6295
  if (v) w.uint32(10).string(v);
6125
6296
  }
6126
6297
  {
@@ -9829,7 +10000,8 @@ var HudPart_Enum = /* @__PURE__ */ createEnumType(
9829
10000
  [4, "HUD_PART_AMMO"],
9830
10001
  [5, "HUD_PART_SOULS"],
9831
10002
  [6, "HUD_PART_MINIMAP"],
9832
- [7, "HUD_PART_ABILITIES"]
10003
+ [7, "HUD_PART_ABILITIES"],
10004
+ [8, "HUD_PART_STATUS"]
9833
10005
  ]
9834
10006
  );
9835
10007
  var Kind_Enum = /* @__PURE__ */ createEnumType(
@@ -9964,7 +10136,9 @@ var Node = /* @__PURE__ */ createMessageType(
9964
10136
  [27, "exit", 11, 0, Style.codec],
9965
10137
  [28, "cycle", 11, 0, Cycle.codec],
9966
10138
  [29, "classes", 9, 1],
9967
- [30, "sheets", 9, 1]
10139
+ [30, "sheets", 9, 1],
10140
+ [31, "free_cursor", 8],
10141
+ [32, "item", 13]
9968
10142
  ],
9969
10143
  {
9970
10144
  decode: (r, end, m) => {
@@ -10102,6 +10276,12 @@ var Node = /* @__PURE__ */ createMessageType(
10102
10276
  ;
10103
10277
  (m.sheets ??= []).push(r.string());
10104
10278
  break;
10279
+ case 31:
10280
+ m.freeCursor = r.bool();
10281
+ break;
10282
+ case 32:
10283
+ m.item = r.uint32();
10284
+ break;
10105
10285
  default:
10106
10286
  r.skip(t);
10107
10287
  }
@@ -10243,6 +10423,14 @@ var Node = /* @__PURE__ */ createMessageType(
10243
10423
  const a = m.sheets;
10244
10424
  if (a != null) for (const e of a) w.uint32(242).string(e);
10245
10425
  }
10426
+ {
10427
+ const v = m.freeCursor;
10428
+ if (v) w.uint32(248).bool(v);
10429
+ }
10430
+ {
10431
+ const v = m.item;
10432
+ if (v) w.uint32(256).uint32(v);
10433
+ }
10246
10434
  }
10247
10435
  }
10248
10436
  );
@@ -10296,7 +10484,8 @@ var Slider = /* @__PURE__ */ createMessageType(
10296
10484
  [1, "value", 2],
10297
10485
  [2, "min", 2],
10298
10486
  [3, "max", 2],
10299
- [4, "step", 2]
10487
+ [4, "step", 2],
10488
+ [5, "wheel", 8]
10300
10489
  ],
10301
10490
  {
10302
10491
  decode: (r, end, m) => {
@@ -10316,6 +10505,9 @@ var Slider = /* @__PURE__ */ createMessageType(
10316
10505
  case 4:
10317
10506
  m.step = r.float();
10318
10507
  break;
10508
+ case 5:
10509
+ m.wheel = r.bool();
10510
+ break;
10319
10511
  default:
10320
10512
  r.skip(t);
10321
10513
  }
@@ -10339,6 +10531,46 @@ var Slider = /* @__PURE__ */ createMessageType(
10339
10531
  const v = m.step;
10340
10532
  if (v != null && v !== 0) w.uint32(37).float(v);
10341
10533
  }
10534
+ {
10535
+ const v = m.wheel;
10536
+ if (v) w.uint32(40).bool(v);
10537
+ }
10538
+ }
10539
+ }
10540
+ );
10541
+ var Wheel = /* @__PURE__ */ createMessageType(
10542
+ "modlock.wasm.ui.Wheel",
10543
+ () => [
10544
+ [1, "delta", 2],
10545
+ [2, "fraction", 2]
10546
+ ],
10547
+ {
10548
+ decode: (r, end, m) => {
10549
+ while (r.pos < end) {
10550
+ const t = r.tag();
10551
+ if ((t & 7) === 4) return m;
10552
+ switch (t >>> 3) {
10553
+ case 1:
10554
+ m.delta = r.float();
10555
+ break;
10556
+ case 2:
10557
+ m.fraction = r.float();
10558
+ break;
10559
+ default:
10560
+ r.skip(t);
10561
+ }
10562
+ }
10563
+ return m;
10564
+ },
10565
+ encode: (m, w) => {
10566
+ {
10567
+ const v = m.delta;
10568
+ if (v != null && v !== 0) w.uint32(13).float(v);
10569
+ }
10570
+ {
10571
+ const v = m.fraction;
10572
+ if (v != null && v !== 0) w.uint32(21).float(v);
10573
+ }
10342
10574
  }
10343
10575
  }
10344
10576
  );
@@ -11295,7 +11527,8 @@ var UiInputEvent = /* @__PURE__ */ createMessageType(
11295
11527
  [3, "text", 9, 0, 0, "value"],
11296
11528
  [4, "number", 2, 0, 0, "value"],
11297
11529
  [5, "on", 8, 0, 0, "value"],
11298
- [6, "choice", 13, 0, 0, "value"]
11530
+ [6, "choice", 13, 0, 0, "value"],
11531
+ [7, "wheel", 11, 0, Wheel.codec, "value"]
11299
11532
  ],
11300
11533
  {
11301
11534
  decode: (r, end, m) => {
@@ -11321,6 +11554,16 @@ var UiInputEvent = /* @__PURE__ */ createMessageType(
11321
11554
  case 6:
11322
11555
  m.value = { case: "choice", value: r.uint32() };
11323
11556
  break;
11557
+ case 7:
11558
+ m.value = {
11559
+ case: "wheel",
11560
+ value: Wheel.decode(
11561
+ r,
11562
+ r.delimited(),
11563
+ m.value?.case === "wheel" ? m.value.value : {}
11564
+ )
11565
+ };
11566
+ break;
11324
11567
  default:
11325
11568
  r.skip(t);
11326
11569
  }
@@ -11355,6 +11598,11 @@ var UiInputEvent = /* @__PURE__ */ createMessageType(
11355
11598
  if (o?.case === "choice" && o.value != null)
11356
11599
  w.uint32(48).uint32(o.value);
11357
11600
  }
11601
+ {
11602
+ const o = m.value;
11603
+ if (o?.case === "wheel" && o.value != null)
11604
+ Wheel.writeField(w, 7, o.value);
11605
+ }
11358
11606
  }
11359
11607
  }
11360
11608
  );
@@ -11458,6 +11706,17 @@ var movementActionNames = {
11458
11706
  10: "meleeStarted",
11459
11707
  11: "abilityExecuted"
11460
11708
  };
11709
+ var interactionKindNames = {
11710
+ 1: "pickupCollected",
11711
+ 2: "propBroken"
11712
+ };
11713
+ var laneValues = {
11714
+ none: 0,
11715
+ yellow: 1,
11716
+ green: 3,
11717
+ blue: 4,
11718
+ purple: 6
11719
+ };
11461
11720
  var textAlignValues = {
11462
11721
  left: 0,
11463
11722
  center: 1,
@@ -11492,7 +11751,8 @@ function fromAbility(message) {
11492
11751
  state: message.state ?? 0,
11493
11752
  cooldownStart: message.cooldownStart ?? 0,
11494
11753
  rechargeStart: message.rechargeStart ?? 0,
11495
- rechargeEnd: message.rechargeEnd ?? 0
11754
+ rechargeEnd: message.rechargeEnd ?? 0,
11755
+ imbues: message.imbues ?? []
11496
11756
  };
11497
11757
  }
11498
11758
  function toAbilityOptions(value) {
@@ -11691,7 +11951,19 @@ function fromMovementSample(message) {
11691
11951
  ziplineTime: message.ziplineTime,
11692
11952
  actions: known(message.actions, (v) => movementActionNames[v]),
11693
11953
  casts: message.casts ?? [],
11694
- command: message.command === void 0 ? void 0 : fromMovementCommand(message.command)
11954
+ command: message.command === void 0 ? void 0 : fromMovementCommand(message.command),
11955
+ interactions: (message.interactions ?? []).map((v) => fromInteraction(v))
11956
+ };
11957
+ }
11958
+ function fromInteraction(message) {
11959
+ return {
11960
+ kind: interactionKindNames[message.kind ?? 0],
11961
+ entity: message.entity ?? 0,
11962
+ designerName: message.designerName ?? "",
11963
+ subclassId: message.subclassId ?? 0,
11964
+ origin: vector(message.origin),
11965
+ vacuumStart: message.vacuumStart,
11966
+ inflictor: message.inflictor ?? 0
11695
11967
  };
11696
11968
  }
11697
11969
  function fromMovementCommand(message) {
@@ -11942,6 +12214,12 @@ function fromSettingChangedEvent(message) {
11942
12214
  value: message.value ?? ""
11943
12215
  };
11944
12216
  }
12217
+ function fromWheel(message) {
12218
+ return {
12219
+ delta: message.delta ?? 0,
12220
+ fraction: message.fraction ?? 0
12221
+ };
12222
+ }
11945
12223
  function fromUiPressEvent(message) {
11946
12224
  return {
11947
12225
  player: new Player(message.player ?? 0),
@@ -11952,7 +12230,7 @@ function fromUiInputEvent(message) {
11952
12230
  return {
11953
12231
  player: new Player(message.player ?? 0),
11954
12232
  node: message.node ?? "",
11955
- value: message.value?.value
12233
+ value: message.value?.case === "wheel" ? fromWheel(message.value.value) : message.value?.value
11956
12234
  };
11957
12235
  }
11958
12236
  function fromStartEvent(message) {
@@ -11966,7 +12244,8 @@ function fromFrameEvent(message) {
11966
12244
  return {
11967
12245
  tick: message.tick ?? 0n,
11968
12246
  timeSeconds: message.timeSeconds ?? 0,
11969
- movement: (message.movement ?? []).map((v) => fromMovementSample(v))
12247
+ movement: (message.movement ?? []).map((v) => fromMovementSample(v)),
12248
+ interactions: known(message.interactions, (v) => interactionKindNames[v])
11970
12249
  };
11971
12250
  }
11972
12251
  function fromCommandEvent(message) {
@@ -12195,10 +12474,12 @@ var Player = class {
12195
12474
  }
12196
12475
  /**
12197
12476
  * giveItem gives the hero an item, enabled and free. A hero that owns it
12198
- * keeps its one copy.
12477
+ * keeps its one copy. With imbue, an imbuing item strengthens the hero's
12478
+ * ability in that slot, 0 to 3, as the shop asks when one is bought; the
12479
+ * call fails, granting nothing, when the ability does not accept it.
12199
12480
  */
12200
- giveItem(item) {
12201
- return call("GiveItem", GiveItemRequest.toBinary({ player: this.slot, item })) !== void 0;
12481
+ giveItem(item2, imbue) {
12482
+ return call("GiveItem", GiveItemRequest.toBinary({ player: this.slot, item: item2, imbue })) !== void 0;
12202
12483
  }
12203
12484
  /**
12204
12485
  * replaceAbility puts the ability named ability, untrained, in the hero's
@@ -12212,20 +12493,23 @@ var Player = class {
12212
12493
  return call("ReplaceAbility", ReplaceAbilityRequest.toBinary({ player: this.slot, index, ability })) !== void 0;
12213
12494
  }
12214
12495
  /**
12215
- * holdModifier keeps an ability's modifier, named "<ability>/<modifier>",
12216
- * on the hero with no expiry, giving it back whenever the game removes it
12217
- * or the hero returns. The hero must own the ability or item. Every hero
12218
- * that gains the modifier from the same ability keeps it until the hold
12219
- * ends. Releasing leaves the hero's current modifier until it dies.
12496
+ * holdModifier keeps a modifier, named as GiveModifier names it, on the
12497
+ * hero with no expiry, giving it back whenever the game removes it or the
12498
+ * hero returns. Every hero that gains the modifier from the same ability
12499
+ * keeps it until the hold ends. Releasing leaves the hero's current
12500
+ * modifier until it dies.
12220
12501
  */
12221
12502
  holdModifier(modifier, active) {
12222
12503
  return call("HoldModifier", HoldModifierRequest.toBinary({ player: this.slot, modifier, active })) !== void 0;
12223
12504
  }
12224
12505
  /**
12225
- * giveModifier gives the hero an ability's modifier, named
12226
- * "<ability>/<modifier>", for seconds, as if the hero's own ability applied
12227
- * it; a hero without that ability applies it with its first ability. The
12228
- * game may end it sooner, as invisibility ends on a shot.
12506
+ * giveModifier gives the hero a modifier for seconds. An ability's
12507
+ * modifier, named "<ability>/<modifier>", comes as if the hero's own
12508
+ * ability applied it; a hero without that ability, or a modifier named on
12509
+ * its own, such as Street Brawl's zipline boost
12510
+ * modifier_street_brawl_round_start_zipline_boost, applies it with the
12511
+ * hero's first ability. The game may end it sooner, as invisibility ends on
12512
+ * a shot.
12229
12513
  */
12230
12514
  giveModifier(modifier, seconds) {
12231
12515
  return call("GiveModifier", GiveModifierRequest.toBinary({ player: this.slot, modifier, seconds })) !== void 0;
@@ -12238,6 +12522,16 @@ var Player = class {
12238
12522
  teleport(position, facing, velocity) {
12239
12523
  return call("Teleport", TeleportRequest.toBinary({ player: this.slot, position, facing, velocity })) !== void 0;
12240
12524
  }
12525
+ /**
12526
+ * zipline puts the player's hero on a lane's zipline near the hero, riding
12527
+ * it as from the zipline key, with the zipline's intro. It never picks
12528
+ * another lane: it fails when the lane has no zipline the hero's team rides
12529
+ * on this map, or the hero has no zipline ability. For Street Brawl's fast
12530
+ * ride, give the hero modifier_street_brawl_round_start_zipline_boost too.
12531
+ */
12532
+ zipline(lane) {
12533
+ return call("Zipline", ZiplineRequest.toBinary({ player: this.slot, lane: laneValues[lane] })) !== void 0;
12534
+ }
12241
12535
  /**
12242
12536
  * move carries the player's hero to a position as continuous motion,
12243
12537
  * as a recording plays back. Unlike Teleport it keeps the hero's animated
@@ -12443,7 +12737,9 @@ var Npc = class {
12443
12737
  }
12444
12738
  /**
12445
12739
  * move places the unit and sets its velocity, which drives its walk
12446
- * animation. It reports false once the unit is gone.
12740
+ * animation. It sets the pose without a teleport, which would reset the
12741
+ * unit's animation, so a mode can steer its units every frame. It reports
12742
+ * false once the unit is gone.
12447
12743
  */
12448
12744
  move(position, facing, velocity) {
12449
12745
  const reply2 = call("MoveNpc", MoveNpcRequest.toBinary({ npc: this.entity, position, facing, velocity }));
@@ -12508,14 +12804,14 @@ function serverCommand(command2) {
12508
12804
  function precache(options) {
12509
12805
  return call("Precache", PrecacheOptions.toBinary(toPrecacheOptions(options))) !== void 0;
12510
12806
  }
12511
- function readFile(name) {
12512
- const reply2 = call("ReadFile", ReadFileRequest.toBinary({ name }));
12807
+ function readFile(path) {
12808
+ const reply2 = call("ReadFile", ReadFileRequest.toBinary({ path }));
12513
12809
  if (reply2 === void 0) return void 0;
12514
12810
  const response = ReadFileResponse.fromBinary(reply2);
12515
12811
  return response.text;
12516
12812
  }
12517
- function writeFile(name, text2) {
12518
- return call("WriteFile", WriteFileRequest.toBinary({ name, text: text2 })) !== void 0;
12813
+ function writeFile(path, text2) {
12814
+ return call("WriteFile", WriteFileRequest.toBinary({ path, text: text2 })) !== void 0;
12519
12815
  }
12520
12816
  function holdReload(held) {
12521
12817
  return call("HoldReload", HoldReloadRequest.toBinary({ held })) !== void 0;
@@ -13145,6 +13441,14 @@ function schedule(delay, run) {
13145
13441
  return entry;
13146
13442
  }
13147
13443
  function advance(seconds) {
13444
+ if (now !== void 0 && seconds < now) {
13445
+ const shift = seconds - now;
13446
+ for (const entry of entries) {
13447
+ if (entry.at !== void 0) {
13448
+ entry.at += shift;
13449
+ }
13450
+ }
13451
+ }
13148
13452
  now = seconds;
13149
13453
  for (const entry of entries) {
13150
13454
  entry.start(seconds);
@@ -13170,6 +13474,33 @@ function advance(seconds) {
13170
13474
  entries = entries.filter((entry) => !entry.finished);
13171
13475
  }
13172
13476
 
13477
+ // js/src/item-id.ts
13478
+ function itemId(name) {
13479
+ const m = 1540483477;
13480
+ const data = new TextEncoder().encode(name);
13481
+ const byte = (at2) => data[at2] ?? 0;
13482
+ let h = (826366246 ^ data.length) >>> 0;
13483
+ let i = 0;
13484
+ for (; data.length - i >= 4; i += 4) {
13485
+ let k = (byte(i) | byte(i + 1) << 8 | byte(i + 2) << 16 | byte(i + 3) << 24) >>> 0;
13486
+ k = Math.imul(k, m) >>> 0;
13487
+ k = (k ^ k >>> 24) >>> 0;
13488
+ k = Math.imul(k, m) >>> 0;
13489
+ h = Math.imul(h, m) >>> 0;
13490
+ h = (h ^ k) >>> 0;
13491
+ }
13492
+ const rest = data.length - i;
13493
+ if (rest >= 3) h = (h ^ byte(i + 2) << 16) >>> 0;
13494
+ if (rest >= 2) h = (h ^ byte(i + 1) << 8) >>> 0;
13495
+ if (rest >= 1) {
13496
+ h = (h ^ byte(i)) >>> 0;
13497
+ h = Math.imul(h, m) >>> 0;
13498
+ }
13499
+ h = (h ^ h >>> 13) >>> 0;
13500
+ h = Math.imul(h, m) >>> 0;
13501
+ return (h ^ h >>> 15) >>> 0;
13502
+ }
13503
+
13173
13504
  // js/src/ui.ts
13174
13505
  function jsx(type, props, key) {
13175
13506
  const named = key === void 0 ? void 0 : String(key);
@@ -13191,6 +13522,10 @@ function hideHud(player, parts) {
13191
13522
  views.set(player.slot, { ...view(player), hud: parts });
13192
13523
  return draw(player);
13193
13524
  }
13525
+ function freeCursor(player, free) {
13526
+ views.set(player.slot, { ...view(player), cursor: free });
13527
+ return draw(player);
13528
+ }
13194
13529
  function sheet(path) {
13195
13530
  if (!path.endsWith(".css") || !path.split("/").every((part) => sheetPart.test(part) && part !== "..")) {
13196
13531
  return false;
@@ -13242,6 +13577,10 @@ function press(player, node) {
13242
13577
  }
13243
13578
  }
13244
13579
  function change(player, node, value) {
13580
+ if (typeof value === "object" && value !== null) {
13581
+ screens.get(player.slot)?.wheels.get(node)?.handler(player, value);
13582
+ return;
13583
+ }
13245
13584
  const changed = screens.get(player.slot)?.changes.get(node);
13246
13585
  if (changed) {
13247
13586
  changed.handler(player, value);
@@ -13271,6 +13610,7 @@ function view(player) {
13271
13610
  player,
13272
13611
  root: void 0,
13273
13612
  hud: [],
13613
+ cursor: false,
13274
13614
  routes: /* @__PURE__ */ new Map(),
13275
13615
  notices: []
13276
13616
  };
@@ -13283,10 +13623,10 @@ function draw(player) {
13283
13623
  ];
13284
13624
  const previous = screens.get(player.slot);
13285
13625
  const hud = current.hud.map((part) => hudParts[part]);
13286
- const next = render(previous, root, hud, current.routes);
13626
+ const next = render(previous, root, hud, current.cursor, current.routes);
13287
13627
  const change2 = diff(previous, next);
13288
13628
  if (change2 && !send(player.slot, change2)) {
13289
- const whole = render(void 0, root, hud, current.routes);
13629
+ const whole = render(void 0, root, hud, current.cursor, current.routes);
13290
13630
  if (!send(player.slot, diff(void 0, whole))) {
13291
13631
  screens.delete(player.slot);
13292
13632
  return false;
@@ -13331,13 +13671,14 @@ function notices(stack) {
13331
13671
  return jsx("panel", { style, exit: noticeMotion.exit, children: labels });
13332
13672
  }
13333
13673
  var screens = /* @__PURE__ */ new Map();
13334
- function render(previous, root, hud, routes) {
13674
+ function render(previous, root, hud, cursor, routes) {
13335
13675
  const layout = new Layout(previous);
13336
13676
  layout.add({
13337
13677
  id: "",
13338
13678
  kind: 0 /* PANEL */,
13339
13679
  children: place(layout, root, "/"),
13340
13680
  hideHud: [...hud],
13681
+ freeCursor: cursor,
13341
13682
  sheets: [...sheets]
13342
13683
  });
13343
13684
  for (const [name, data] of routes) {
@@ -13356,6 +13697,7 @@ var Layout = class {
13356
13697
  ids: /* @__PURE__ */ new Map(),
13357
13698
  presses: /* @__PURE__ */ new Map(),
13358
13699
  changes: /* @__PURE__ */ new Map(),
13700
+ wheels: /* @__PURE__ */ new Map(),
13359
13701
  next: previous?.next ?? 0
13360
13702
  };
13361
13703
  }
@@ -13382,11 +13724,11 @@ function place(layout, child, at2) {
13382
13724
  return [];
13383
13725
  }
13384
13726
  if (isList(child)) {
13385
- return child.flatMap((item, index) => {
13386
- const key = isElement(item) ? item.key : void 0;
13727
+ return child.flatMap((item2, index) => {
13728
+ const key = isElement(item2) ? item2.key : void 0;
13387
13729
  return place(
13388
13730
  layout,
13389
- item,
13731
+ item2,
13390
13732
  key === void 0 ? `${at2},${index}` : `${at2},=${key}`
13391
13733
  );
13392
13734
  });
@@ -13409,6 +13751,7 @@ function place(layout, child, at2) {
13409
13751
  style: wireStyle(props.style),
13410
13752
  hover: wireStyle(props.hover),
13411
13753
  tooltip: props.tooltip,
13754
+ item: props.item ? itemId(props.item) : void 0,
13412
13755
  hoverSound: props.hoverSound,
13413
13756
  enter: wireStyle(props.enter),
13414
13757
  exit: wireStyle(props.exit),
@@ -13486,13 +13829,17 @@ function input(layout, node, kind, props) {
13486
13829
  };
13487
13830
  break;
13488
13831
  case "slider":
13832
+ if (props.onWheel && !props.disabled) {
13833
+ layout.screen.wheels.set(node.id, { handler: props.onWheel });
13834
+ }
13489
13835
  node.input = {
13490
13836
  case: "slider",
13491
13837
  value: {
13492
13838
  value: Number(props.value ?? 0),
13493
13839
  min: props.min,
13494
13840
  max: props.max,
13495
- step: props.step
13841
+ step: props.step,
13842
+ wheel: !!props.onWheel && !props.disabled
13496
13843
  }
13497
13844
  };
13498
13845
  break;
@@ -13577,7 +13924,8 @@ var hudParts = {
13577
13924
  ammo: 4 /* AMMO */,
13578
13925
  souls: 5 /* SOULS */,
13579
13926
  minimap: 6 /* MINIMAP */,
13580
- abilities: 7 /* ABILITIES */
13927
+ abilities: 7 /* ABILITIES */,
13928
+ status: 8 /* STATUS */
13581
13929
  };
13582
13930
  var faces = {
13583
13931
  body: 1 /* BODY */,
@@ -13938,40 +14286,46 @@ __export(curve_exports, {
13938
14286
  pingPong: () => pingPong,
13939
14287
  repeat: () => repeat,
13940
14288
  reverse: () => reverse,
14289
+ shaped: () => shaped,
13941
14290
  through: () => through,
13942
14291
  valueAt: () => valueAt,
13943
14292
  wave: () => wave
13944
14293
  });
13945
14294
  var ease = {
13946
14295
  /** linear moves at an even pace. */
13947
- linear: native((t) => t, {}),
14296
+ linear: shaped((t) => t, {}),
13948
14297
  /** bias is the game's bias curve; see LerpShape. */
13949
- bias: (b) => native((t) => bias(t, b), { bias: b }),
14298
+ bias: (b) => shaped((t) => bias(t, b), { bias: b }),
13950
14299
  /** gain is the game's gain curve; see LerpShape. */
13951
- gain: (g) => native((t) => gain(t, g), { gain: g }),
14300
+ gain: (g) => shaped((t) => gain(t, g), { gain: g }),
13952
14301
  /** in starts slow and speeds up. */
13953
- in: (t) => t * t * t,
14302
+ in: shaped((t) => t * t * t),
13954
14303
  /** out starts fast and slows to a stop. */
13955
- out: (t) => 1 - (1 - t) ** 3,
14304
+ out: shaped((t) => 1 - (1 - t) ** 3),
13956
14305
  /** inOut starts and ends slow. */
13957
- inOut: (t) => t < 0.5 ? 4 * t * t * t : 1 - (2 - 2 * t) ** 3 / 2,
14306
+ inOut: shaped((t) => t < 0.5 ? 4 * t * t * t : 1 - (2 - 2 * t) ** 3 / 2),
13958
14307
  /** sine starts and ends slow, more gently than inOut. */
13959
- sine: (t) => (1 - Math.cos(Math.PI * t)) / 2,
14308
+ sine: shaped((t) => (1 - Math.cos(Math.PI * t)) / 2),
13960
14309
  /** back passes its end a little and settles back onto it. */
13961
- back: (t) => 1 + 2.70158 * (t - 1) ** 3 + 1.70158 * (t - 1) ** 2,
14310
+ back: shaped((t) => 1 + 2.70158 * (t - 1) ** 3 + 1.70158 * (t - 1) ** 2),
13962
14311
  /** elastic overshoots its end and rings down onto it. */
13963
- elastic: (t) => t <= 0 || t >= 1 ? t : 2 ** (-10 * t) * Math.sin((t * 10 - 0.75) * 2 * Math.PI / 3) + 1,
14312
+ elastic: shaped(
14313
+ (t) => t <= 0 || t >= 1 ? t : 2 ** (-10 * t) * Math.sin((t * 10 - 0.75) * 2 * Math.PI / 3) + 1
14314
+ ),
13964
14315
  /** bounce drops onto its end and bounces to rest. */
13965
- bounce: (t) => {
14316
+ bounce: shaped((t) => {
13966
14317
  const k = 7.5625;
13967
14318
  if (t < 1 / 2.75) return k * t * t;
13968
14319
  if (t < 2 / 2.75) return k * (t - 1.5 / 2.75) ** 2 + 0.75;
13969
14320
  if (t < 2.5 / 2.75) return k * (t - 2.25 / 2.75) ** 2 + 0.9375;
13970
14321
  return k * (t - 2.625 / 2.75) ** 2 + 0.984375;
13971
- }
14322
+ })
13972
14323
  };
14324
+ function shaped(at2, lerp3) {
14325
+ return { at: at2, lerp: lerp3 };
14326
+ }
13973
14327
  function line(from, to, duration, shape = ease.linear) {
13974
- return [{ duration, lerp: shape.lerp, at: (u) => mix(from, to, shape(u)) }];
14328
+ return [{ duration, lerp: shape.lerp, at: (u) => mix(from, to, shape.at(u)) }];
13975
14329
  }
13976
14330
  function hold(value, duration) {
13977
14331
  return [{ duration, lerp: {}, at: () => value }];
@@ -13993,7 +14347,7 @@ function keyframes(keys, options = {}) {
13993
14347
  const after2 = keys[i + 1]?.value ?? to.value;
13994
14348
  spans.push({
13995
14349
  duration,
13996
- at: (u) => spline(before, from.value, to.value, after2, shape(u))
14350
+ at: (u) => spline(before, from.value, to.value, after2, shape.at(u))
13997
14351
  });
13998
14352
  });
13999
14353
  return spans;
@@ -14018,7 +14372,7 @@ function orbit(options) {
14018
14372
  {
14019
14373
  duration,
14020
14374
  at: (u) => {
14021
- const t = shape(u);
14375
+ const t = shape.at(u);
14022
14376
  const angle = start + t * turns * 2 * Math.PI;
14023
14377
  return {
14024
14378
  x: center.x + radius * Math.cos(angle),
@@ -14066,9 +14420,6 @@ function valueAt(curve, seconds) {
14066
14420
  }
14067
14421
  return curve.at(-1)?.at(1);
14068
14422
  }
14069
- function native(shape, lerp3) {
14070
- return Object.assign(shape, { lerp: lerp3 });
14071
- }
14072
14423
  function bias(t, b) {
14073
14424
  return t ** (Math.log(b) / Math.log(0.5));
14074
14425
  }
@@ -14129,11 +14480,17 @@ function setOrbitCamera(player, enabled) {
14129
14480
  }
14130
14481
  var moves = 0;
14131
14482
  function playCamera(player, options) {
14483
+ const tracks = [];
14484
+ for (const [param, curve] of Object.entries(options.tracks)) {
14485
+ if (curve) tracks.push({ param, curve });
14486
+ }
14487
+ return playTracks(player, options, tracks);
14488
+ }
14489
+ function playTracks(player, options, tracks) {
14132
14490
  const context = options.context ?? `modlock.camera.${++moves}`;
14133
- const tracks = Object.entries(options.tracks);
14134
- const length3 = Math.max(0, ...tracks.map(([, curve]) => durationOf(curve)));
14491
+ const length3 = Math.max(0, ...tracks.map((track) => durationOf(track.curve)));
14135
14492
  const send2 = (delay) => tracks.every(
14136
- ([param, curve]) => sendCurve(player, { ...options, context, param, delay }, curve)
14493
+ ({ param, curve }) => sendCurve(player, { ...options, context, param, delay }, curve)
14137
14494
  );
14138
14495
  let timer;
14139
14496
  const stop = () => {
@@ -14165,11 +14522,7 @@ function cameraPulse(player, options) {
14165
14522
  hold(by, options.hold),
14166
14523
  reverse(line(rest, by, options.out, shape))
14167
14524
  );
14168
- return playCamera(player, {
14169
- ...options,
14170
- relative: true,
14171
- tracks: { [param]: curve }
14172
- });
14525
+ return playTracks(player, { ...options, relative: true }, [{ param, curve }]);
14173
14526
  }
14174
14527
  function cameraShake(player, options) {
14175
14528
  const { amplitude, duration } = options;
@@ -14180,11 +14533,7 @@ function cameraShake(player, options) {
14180
14533
  decay: true
14181
14534
  });
14182
14535
  const param = options.param ?? "horizontalOffset";
14183
- return playCamera(player, {
14184
- ...options,
14185
- relative: true,
14186
- tracks: { [param]: curve }
14187
- });
14536
+ return playTracks(player, { ...options, relative: true }, [{ param, curve }]);
14188
14537
  }
14189
14538
  function sendCurve(player, options, curve) {
14190
14539
  const { context, param, relative, priority, target } = options;
@@ -14548,6 +14897,181 @@ function findTitled(list, typed) {
14548
14897
  return list.find((entry) => entry.name === key || plain(entry) === key) ?? list.find((entry) => plain(entry).startsWith(key)) ?? list.find((entry) => plain(entry).includes(key));
14549
14898
  }
14550
14899
 
14900
+ // js/src/items.gen.ts
14901
+ var itemTable = [
14902
+ { name: "upgrade_ability_power_shard", id: 630839635, slot: "spirit", tier: 4, active: true, imbue: true, icon: "file://{images}/upgrades/mods_tech/echo_shard.psd" },
14903
+ { name: "upgrade_ability_refresher", id: 677738769, slot: "spirit", tier: 4, active: true, imbue: false, icon: "file://{images}/upgrades/mods_tech/refresher_module.psd" },
14904
+ { name: "upgrade_absorbing_armor", id: 3028234315, slot: "vitality", tier: 4, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/arcane_medallion.psd" },
14905
+ { name: "upgrade_acolytes_glove", id: 465043967, slot: "spirit", tier: 1, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/acolytes_glove.psd" },
14906
+ { name: "upgrade_active_reload", id: 381961617, slot: "weapon", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_utility/deployable_bullet_shield.psd" },
14907
+ { name: "upgrade_aerial_assault", id: 271801138, slot: "vitality", tier: 4, active: true, imbue: false, icon: "file://{images}/upgrades/mods_utility/springy_boots.psd" },
14908
+ { name: "upgrade_aoe_root", id: 1152158042, slot: "spirit", tier: 4, active: true, imbue: false, icon: "file://{images}/upgrades/mods_tech/area_immobilize.psd" },
14909
+ { name: "upgrade_aprounds", id: 673001892, slot: "weapon", tier: 4, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/armor_breaking_bullets.psd" },
14910
+ { name: "upgrade_arcane_extension", id: 2951612397, slot: "spirit", tier: 2, active: false, imbue: true, icon: "file://{images}/upgrades/mods_tech/duration_extender.psd" },
14911
+ { name: "upgrade_arcane_surge", id: 1150006784, slot: "spirit", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/arcane_surge.psd" },
14912
+ { name: "upgrade_arctic_blast", id: 3812615317, slot: "spirit", tier: 4, active: true, imbue: false, icon: "file://{images}/upgrades/mods_utility/ice_blast.psd" },
14913
+ { name: "upgrade_auto_cleanse", id: 951866250, slot: "vitality", tier: 4, active: false, imbue: false, icon: "file://{images}/items/vitality/indomitable.psd" },
14914
+ { name: "upgrade_banshee_slugs", id: 3884003354, slot: "weapon", tier: 4, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/banshee_slugs.psd" },
14915
+ { name: "upgrade_berserker", id: 1414319208, slot: "weapon", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/berserker.psd" },
14916
+ { name: "upgrade_blitz_bullets", id: 4104549924, slot: "weapon", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/fire_rate_plus.psd" },
14917
+ { name: "upgrade_boundless_spirit", id: 2519598785, slot: "spirit", tier: 4, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/boundless_spirit.psd" },
14918
+ { name: "upgrade_boxing_glove", id: 1252627263, slot: "vitality", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_armor/boxing_glove.psd" },
14919
+ { name: "upgrade_bullet_armor_reduction_aura", id: 2481177645, slot: "weapon", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_armor/bullet_armor_reduction_aura.psd" },
14920
+ { name: "upgrade_bullet_resist_shredder", id: 2971868509, slot: "spirit", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/bullet_resist_shredder.psd" },
14921
+ { name: "upgrade_bulletshredimbue", id: 3294954488, slot: "weapon", tier: 3, active: false, imbue: true, icon: "file://{images}/upgrades/mods_weapon/fire_rate_plus.psd" },
14922
+ { name: "upgrade_burst_fire", id: 2739107182, slot: "weapon", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/fire_rate_plus_plus.psd" },
14923
+ { name: "upgrade_capacitor", id: 710436191, slot: "weapon", tier: 4, active: true, imbue: false, icon: "file://{images}/upgrades/mods_weapon/electrified_bullets.psd" },
14924
+ { name: "upgrade_cardio_calibrator", id: 2447176615, slot: "vitality", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_utility/sprint_booster.psd" },
14925
+ { name: "upgrade_celestial_guidance", id: 3729138568, slot: "vitality", tier: 5, active: true, imbue: false, icon: "file://{images}/upgrades/mods_armor/debuff_reducer.psd" },
14926
+ { name: "upgrade_chain_lightning", id: 811521119, slot: "weapon", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/electrified_bullets.psd" },
14927
+ { name: "upgrade_cheat_death", id: 3361811174, slot: "vitality", tier: 4, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/torment_aura.psd" },
14928
+ { name: "upgrade_chonky", id: 3585132399, slot: "vitality", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_armor/revitalizer.psd" },
14929
+ { name: "upgrade_clip_size", id: 1548066885, slot: "weapon", tier: 1, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/clip_size.psd" },
14930
+ { name: "upgrade_cloaking_device_active", id: 1798666702, slot: "weapon", tier: 3, active: true, imbue: false, icon: "file://{images}/upgrades/mods_utility/cloaking_device.psd" },
14931
+ { name: "upgrade_close_quarter_combat", id: 2095565695, slot: "weapon", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/point_blank.psd" },
14932
+ { name: "upgrade_close_range", id: 1342610602, slot: "weapon", tier: 1, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/close_range.psd" },
14933
+ { name: "upgrade_cold_front", id: 1976391348, slot: "spirit", tier: 2, active: true, imbue: false, icon: "file://{images}/upgrades/mods_utility/ice_blast.psd" },
14934
+ { name: "upgrade_colossus", id: 2407781327, slot: "vitality", tier: 4, active: true, imbue: false, icon: "file://{images}/upgrades/mods_armor/colossus.psd" },
14935
+ { name: "upgrade_containment", id: 1813726886, slot: "spirit", tier: 2, active: true, imbue: false, icon: "file://{images}/upgrades/mods_tech/immobilize.psd" },
14936
+ { name: "upgrade_cooldown_reduction", id: 3261353684, slot: "spirit", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/spiritual_flow.psd" },
14937
+ { name: "upgrade_counterspell", id: 1414025773, slot: "vitality", tier: 3, active: false, imbue: false, icon: "file://{images}/hud/modifiers/icon_parry.svg" },
14938
+ { name: "upgrade_crackshot", id: 395867183, slot: "weapon", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/explosive_bullets.psd" },
14939
+ { name: "upgrade_critshot", id: 1396247347, slot: "weapon", tier: 4, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/crit_damage.psd" },
14940
+ { name: "upgrade_crushing_fists", id: 800008313, slot: "weapon", tier: 4, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/melee_charge.psd" },
14941
+ { name: "upgrade_damage_recycler", id: 865846625, slot: "vitality", tier: 4, active: false, imbue: false, icon: "file://{images}/upgrades/mods_armor/leech.psd" },
14942
+ { name: "upgrade_debuff_reducer", id: 1047818222, slot: "vitality", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_armor/debuff_reducer.psd" },
14943
+ { name: "upgrade_deflecting_armor", id: 3491236900, slot: "vitality", tier: 4, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/arcane_medallion.psd" },
14944
+ { name: "upgrade_disarm", id: 2645639421, slot: "spirit", tier: 1, active: true, imbue: false, icon: "file://{images}/upgrades/mods_tech/disarm.psd" },
14945
+ { name: "upgrade_discord", id: 2417568017, slot: "spirit", tier: 4, active: true, imbue: false, icon: "file://{images}/upgrades/mods_tech/rupture.psd" },
14946
+ { name: "upgrade_divine_barrier", id: 1662311306, slot: "vitality", tier: 4, active: true, imbue: false, icon: "file://{images}/upgrades/mods_armor/savior.psd" },
14947
+ { name: "upgrade_diviners_kevlar", id: 2820116164, slot: "vitality", tier: 4, active: false, imbue: false, icon: "file://{images}/upgrades/mods_armor/bullet_shield.psd" },
14948
+ { name: "upgrade_dps_aura", id: 2108215830, slot: "weapon", tier: 3, active: true, imbue: false, icon: "file://{images}/upgrades/mods_weapon/bullet_damage_aura.psd" },
14949
+ { name: "upgrade_eldritch_shot", id: 3568217437, slot: "weapon", tier: 5, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/explosive_bullets.psd" },
14950
+ { name: "upgrade_endurance", id: 2829638276, slot: "vitality", tier: 1, active: false, imbue: false, icon: "file://{images}/upgrades/mods_armor/endurance.psd" },
14951
+ { name: "upgrade_escalating_exposure", id: 3005970438, slot: "spirit", tier: 4, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/escalating_exposure.psd" },
14952
+ { name: "upgrade_ethereal_bullets", id: 3919289022, slot: "spirit", tier: 4, active: false, imbue: true, icon: "file://{images}/upgrades/mods_weapon/fire_rate_plus.psd" },
14953
+ { name: "upgrade_extra_charge", id: 3776945997, slot: "spirit", tier: 1, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/extra_charge.psd" },
14954
+ { name: "upgrade_fervor", id: 339443430, slot: "weapon", tier: 4, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/fervor.psd" },
14955
+ { name: "upgrade_fleetfoot_boots", id: 3403085434, slot: "weapon", tier: 2, active: true, imbue: false, icon: "file://{images}/upgrades/mods_weapon/fleetfoot_boots.psd" },
14956
+ { name: "upgrade_focus_lens", id: 2142980412, slot: "spirit", tier: 4, active: true, imbue: false, icon: "file://{images}/upgrades/mods_tech/focused_silence.psd" },
14957
+ { name: "upgrade_fury_trance", id: 1409190604, slot: "vitality", tier: 3, active: true, imbue: false, icon: "file://{images}/upgrades/mods_weapon/vampiric_burst.psd" },
14958
+ { name: "upgrade_glass_cannon", id: 365620721, slot: "weapon", tier: 4, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/glass_cannon.psd" },
14959
+ { name: "upgrade_glitch", id: 2617435668, slot: "spirit", tier: 4, active: true, imbue: false, icon: "file://{images}/upgrades/mods_tech/glitch.psd" },
14960
+ { name: "upgrade_goose_egg", id: 2462046703, slot: "spirit", tier: 1, active: true, imbue: false, icon: "file://{images}/upgrades/mods_tech/tech_damage.psd" },
14961
+ { name: "upgrade_greater_withering_whip", id: 2061878743, slot: "spirit", tier: 3, active: true, imbue: false, icon: "file://{images}/upgrades/mods_tech/disarm.psd" },
14962
+ { name: "upgrade_grit", id: 1672893796, slot: "vitality", tier: 1, active: true, imbue: false, icon: "file://{images}/upgrades/mods_armor/bullet_shield.psd" },
14963
+ { name: "upgrade_guardian_ward", id: 857669956, slot: "vitality", tier: 2, active: true, imbue: false, icon: "file://{images}/upgrades/mods_armor/savior.psd" },
14964
+ { name: "upgrade_headhunter", id: 4053935515, slot: "weapon", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/headhunter.psd" },
14965
+ { name: "upgrade_headshot_booster", id: 2010028405, slot: "weapon", tier: 1, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/headshot_booster.psd" },
14966
+ { name: "upgrade_headshot_booster2", id: 1770441818, slot: "weapon", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/headshot_booster.psd" },
14967
+ { name: "upgrade_healbane", id: 2603935618, slot: "vitality", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/healbane.psd" },
14968
+ { name: "upgrade_healbuff", id: 1427630806, slot: "vitality", tier: 4, active: false, imbue: false, icon: "file://{images}/upgrades/aura_icon.psd" },
14969
+ { name: "upgrade_healing_booster", id: 2566692615, slot: "vitality", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_armor/healing_booster.psd" },
14970
+ { name: "upgrade_health", id: 3633614685, slot: "vitality", tier: 1, active: false, imbue: false, icon: "file://{images}/upgrades/mods_armor/health.psd" },
14971
+ { name: "upgrade_health_nova", id: 2956256701, slot: "vitality", tier: 3, active: true, imbue: false, icon: "file://{images}/upgrades/mods_utility/health_nova.psd" },
14972
+ { name: "upgrade_health_regen_aura", id: 3321728133, slot: "vitality", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_armor/health_regen_aura.psd" },
14973
+ { name: "upgrade_health_stealing_magic", id: 876563814, slot: "vitality", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/health_stealing_tech.psd" },
14974
+ { name: "upgrade_health_stimpak", id: 1710079648, slot: "vitality", tier: 1, active: true, imbue: false, icon: "file://{images}/upgrades/mods_armor/stimpak.psd" },
14975
+ { name: "upgrade_high_velocity_mag", id: 3077079169, slot: "weapon", tier: 1, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/high_velocity_mag.psd" },
14976
+ { name: "upgrade_hollow_point_rounds", id: 2678489038, slot: "weapon", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/hollow_point.psd" },
14977
+ { name: "upgrade_icarus_wings", id: 1736094134, slot: "vitality", tier: 5, active: false, imbue: false, icon: "file://{images}/upgrades/mods_utility/sprint_booster.psd" },
14978
+ { name: "upgrade_imbued_duration_extender", id: 2717651715, slot: "spirit", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/arcane_persistance.psd" },
14979
+ { name: "upgrade_improved_bullet_armor", id: 3140772621, slot: "vitality", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_armor/improved_bullet_armor.psd" },
14980
+ { name: "upgrade_improved_spirit", id: 968099481, slot: "spirit", tier: 1, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/tech_damage.psd" },
14981
+ { name: "upgrade_improved_stamina", id: 4139877411, slot: "vitality", tier: 1, active: false, imbue: false, icon: "file://{images}/upgrades/mods_armor/improved_stamina.psd" },
14982
+ { name: "upgrade_infinite_rounds", id: 3269957497, slot: "weapon", tier: 5, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/armor_breaking_bullets.psd" },
14983
+ { name: "upgrade_infuser", id: 1797283378, slot: "vitality", tier: 4, active: true, imbue: false, icon: "file://{images}/upgrades/mods_tech/infuser.psd" },
14984
+ { name: "upgrade_inhibitor", id: 2037039379, slot: "vitality", tier: 4, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/inhibitor.psd" },
14985
+ { name: "upgrade_intensifying_clip", id: 2407033488, slot: "weapon", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/auto_reloader.psd" },
14986
+ { name: "upgrade_juggernaut", id: 1250307611, slot: "vitality", tier: 4, active: false, imbue: false, icon: "file://{images}/items/vitality/juggernaut.psd" },
14987
+ { name: "upgrade_kinetic_sash", id: 3977876567, slot: "weapon", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/kinetic_sash.psd" },
14988
+ { name: "upgrade_lifestrike_gauntlets", id: 1437614329, slot: "vitality", tier: 1, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/lifestrike_gauntlets.psd" },
14989
+ { name: "upgrade_long_range", id: 3331811235, slot: "weapon", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/long_range.psd" },
14990
+ { name: "upgrade_magic_burst", id: 1998374645, slot: "spirit", tier: 1, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/magic_burst.psd" },
14991
+ { name: "upgrade_magic_carpet", id: 2800629741, slot: "spirit", tier: 4, active: true, imbue: false, icon: "file://{images}/hud/abilities/kelvin/ice_path.psd" },
14992
+ { name: "upgrade_magic_reach", id: 754480263, slot: "spirit", tier: 1, active: false, imbue: true, icon: "file://{images}/upgrades/mods_tech/tech_range.psd" },
14993
+ { name: "upgrade_magic_shield", id: 3970837787, slot: "vitality", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/tech_shield_pulse.psd" },
14994
+ { name: "upgrade_magic_shock", id: 2121044373, slot: "spirit", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/magic_shock.psd" },
14995
+ { name: "upgrade_magic_slow", id: 1102081447, slot: "spirit", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/slowing_tech.psd" },
14996
+ { name: "upgrade_magic_storm", id: 1292979587, slot: "spirit", tier: 3, active: false, imbue: true, icon: "file://{images}/upgrades/mods_tech/magic_storm.psd" },
14997
+ { name: "upgrade_magic_tempo", id: 380806748, slot: "spirit", tier: 2, active: false, imbue: true, icon: "file://{images}/upgrades/mods_utility/advanced_recharge.psd" },
14998
+ { name: "upgrade_magic_vulnerability", id: 2081037738, slot: "spirit", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/tech_vulnerability.psd" },
14999
+ { name: "upgrade_medic_bullets", id: 3862866912, slot: "weapon", tier: 1, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/medic_bullets.psd" },
15000
+ { name: "upgrade_melee_charge", id: 26002154, slot: "weapon", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/melee_charge.psd" },
15001
+ { name: "upgrade_melee_rebuttal", id: 4204808176, slot: "vitality", tier: 1, active: false, imbue: false, icon: "file://{images}/hud/modifiers/icon_parry.svg" },
15002
+ { name: "upgrade_metal_skin", id: 1378931225, slot: "vitality", tier: 3, active: true, imbue: false, icon: "file://{images}/upgrades/mods_armor/metal_skin.psd" },
15003
+ { name: "upgrade_mystic_regeneration", id: 1439347412, slot: "spirit", tier: 1, active: false, imbue: false, icon: "file://{images}/upgrades/mods_armor/endurance.psd" },
15004
+ { name: "upgrade_mystic_reverb", id: 3577481646, slot: "spirit", tier: 4, active: false, imbue: true, icon: "file://{images}/upgrades/mods_tech/magic_reverb.psd" },
15005
+ { name: "upgrade_mystical_piano", id: 2054088113, slot: "spirit", tier: 5, active: true, imbue: false, icon: "file://{images}/upgrades/mods_tech/knockdown.psd" },
15006
+ { name: "upgrade_non_player_bonus", id: 1009965641, slot: "weapon", tier: 1, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/reaper_rounds.psd" },
15007
+ { name: "upgrade_nullification_aura", id: 3949773228, slot: "vitality", tier: 5, active: true, imbue: false, icon: "file://{images}/upgrades/mods_armor/bullet_armor_reduction_aura.psd" },
15008
+ { name: "upgrade_omnicharge_pendant", id: 424779525, slot: "spirit", tier: 5, active: false, imbue: true, icon: "file://{images}/upgrades/mods_tech/rapid_recharge.psd" },
15009
+ { name: "upgrade_personal_rejuvenator", id: 2329546537, slot: "spirit", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/rebirth.psd" },
15010
+ { name: "upgrade_phantom_strike", id: 1371725689, slot: "vitality", tier: 4, active: true, imbue: false, icon: "file://{images}/upgrades/mods_armor/phantom_strike.psd" },
15011
+ { name: "upgrade_prism_blast", id: 1132564516, slot: "spirit", tier: 5, active: true, imbue: false, icon: "file://{images}/items/spirit/ethereal_shift.psd" },
15012
+ { name: "upgrade_pristine_emblem", id: 2064029594, slot: "weapon", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/pristine_emblem.psd" },
15013
+ { name: "upgrade_proc_silence", id: 1113837674, slot: "weapon", tier: 4, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/emp_bullets.psd" },
15014
+ { name: "upgrade_quick_silver", id: 84321454, slot: "spirit", tier: 2, active: false, imbue: true, icon: "file://{images}/upgrades/mods_weapon/fire_rate_plus.psd" },
15015
+ { name: "upgrade_rapid_recharge", id: 787198704, slot: "spirit", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/rapid_recharge.psd" },
15016
+ { name: "upgrade_rapid_rounds", id: 668299740, slot: "weapon", tier: 1, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/rapid_rounds.psd" },
15017
+ { name: "upgrade_rebirth", id: 4003032160, slot: "vitality", tier: 4, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/rebirth.psd" },
15018
+ { name: "upgrade_rechargingbullets", id: 1763073141, slot: "weapon", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/arcane_medallion.psd" },
15019
+ { name: "upgrade_reduce_debuff_duration", id: 3731635960, slot: "vitality", tier: 3, active: true, imbue: false, icon: "file://{images}/upgrades/mods_armor/debuff_remover.psd" },
15020
+ { name: "upgrade_regenerating_bullet_shield", id: 1235347618, slot: "vitality", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_armor/bullet_shield.psd" },
15021
+ { name: "upgrade_reinforcing_casings", id: 2463960640, slot: "weapon", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_armor/bullet_armor_plus.psd" },
15022
+ { name: "upgrade_rescue_beam", id: 1804594021, slot: "vitality", tier: 3, active: true, imbue: false, icon: "file://{images}/upgrades/mods_tech/medic_beam.psd" },
15023
+ { name: "upgrade_resonant_healing", id: 2947183272, slot: "spirit", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/boundless_spirit.psd" },
15024
+ { name: "upgrade_restorative_locket", id: 2059712766, slot: "vitality", tier: 2, active: true, imbue: false, icon: "file://{images}/upgrades/mods_armor/restorative_locket.psd" },
15025
+ { name: "upgrade_return_fire", id: 3361075077, slot: "vitality", tier: 2, active: true, imbue: false, icon: "file://{images}/upgrades/mods_tech/return_fire.psd" },
15026
+ { name: "upgrade_ricochet", id: 2480592370, slot: "weapon", tier: 4, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/ricochet.psd" },
15027
+ { name: "upgrade_rocket_booster", id: 600033864, slot: "vitality", tier: 3, active: true, imbue: false, icon: "file://{images}/hud/abilities/lash/lash_death_slam.psd" },
15028
+ { name: "upgrade_rocket_boots", id: 3830846077, slot: "vitality", tier: 3, active: true, imbue: false, icon: "file://{images}/upgrades/mods_utility/springy_boots.psd" },
15029
+ { name: "upgrade_rupture", id: 3144988365, slot: "spirit", tier: 3, active: true, imbue: false, icon: "file://{images}/upgrades/mods_tech/rupture.psd" },
15030
+ { name: "upgrade_self_bubble", id: 2533252781, slot: "spirit", tier: 4, active: true, imbue: false, icon: "file://{images}/items/spirit/ethereal_shift.psd" },
15031
+ { name: "upgrade_sharpshooter", id: 2152872419, slot: "weapon", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/longshot.psd" },
15032
+ { name: "upgrade_shrink_ray", id: 4121584236, slot: "spirit", tier: 5, active: true, imbue: false, icon: "file://{images}/upgrades/mods_armor/stimpak.psd" },
15033
+ { name: "upgrade_siphon_bullets", id: 1282141666, slot: "vitality", tier: 4, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/siphon_bullets.psd" },
15034
+ { name: "upgrade_slowing_bullets", id: 393974127, slot: "weapon", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/slowing_bullets.psd" },
15035
+ { name: "upgrade_soaring_spirit", id: 7409189, slot: "spirit", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/soaring_spirit.psd" },
15036
+ { name: "upgrade_spellslinger_headshots", id: 4075861416, slot: "weapon", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/spellslinger_headshots.psd" },
15037
+ { name: "upgrade_spirit_bubble", id: 112198670, slot: "vitality", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_armor/bullet_shield.psd" },
15038
+ { name: "upgrade_spirit_burn", id: 343572757, slot: "spirit", tier: 4, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/escalating_exposure.psd" },
15039
+ { name: "upgrade_spirit_sap", id: 1219329868, slot: "spirit", tier: 2, active: true, imbue: false, icon: "file://{images}/upgrades/mods_tech/focused_silence.psd" },
15040
+ { name: "upgrade_spirit_snatch", id: 3190916303, slot: "spirit", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/spirit_snatch.psd" },
15041
+ { name: "upgrade_split_shot", id: 3647584222, slot: "weapon", tier: 2, active: true, imbue: false, icon: "file://{images}/upgrades/mods_weapon/titanic_magazine.psd" },
15042
+ { name: "upgrade_sprint_booster", id: 3399065363, slot: "vitality", tier: 1, active: false, imbue: false, icon: "file://{images}/upgrades/mods_utility/sprint_booster.psd" },
15043
+ { name: "upgrade_superior_stamina", id: 334300056, slot: "vitality", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_armor/superior_stamina.psd" },
15044
+ { name: "upgrade_suppressor", id: 1925087134, slot: "spirit", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_armor/weapon_jammer.psd" },
15045
+ { name: "upgrade_surging_power", id: 1055679805, slot: "vitality", tier: 4, active: true, imbue: false, icon: "file://{images}/upgrades/mods_weapon/vampiric_burst.psd" },
15046
+ { name: "upgrade_target_stun", id: 1254091416, slot: "spirit", tier: 3, active: true, imbue: false, icon: "file://{images}/upgrades/mods_tech/knockdown.psd" },
15047
+ { name: "upgrade_targeted_silence", id: 619484391, slot: "spirit", tier: 3, active: true, imbue: false, icon: "file://{images}/upgrades/mods_weapon/targeted_silence.psd" },
15048
+ { name: "upgrade_tech_damage_pulse", id: 395944548, slot: "spirit", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/torment_aura.psd" },
15049
+ { name: "upgrade_tech_defense_shredders", id: 1144549437, slot: "weapon", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/tech_resist_shredder.psd" },
15050
+ { name: "upgrade_tech_overflow", id: 2226497419, slot: "weapon", tier: 4, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/magic_overflow.psd" },
15051
+ { name: "upgrade_tech_purge", id: 2163598980, slot: "vitality", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_armor/tech_purge.psd" },
15052
+ { name: "upgrade_tech_range", id: 1193964439, slot: "spirit", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_tech/spiritual_dominion.psd" },
15053
+ { name: "upgrade_thermal_detonator", id: 1932939246, slot: "weapon", tier: 3, active: true, imbue: false, icon: "file://{images}/upgrades/mods_weapon/thermal_detonator.psd" },
15054
+ { name: "upgrade_titan_round", id: 2356412290, slot: "weapon", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/titanic_magazine.psd" },
15055
+ { name: "upgrade_toxic_bullets", id: 3696726732, slot: "weapon", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/serrated_bullets.psd" },
15056
+ { name: "upgrade_trophy_collector", id: 3074274290, slot: "vitality", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_utility/sprint_booster.psd" },
15057
+ { name: "upgrade_ultimate_burst", id: 493591231, slot: "spirit", tier: 4, active: false, imbue: false, icon: "file://{images}/upgrades/mods_weapon/adrenaline_rush.psd" },
15058
+ { name: "upgrade_unstoppable", id: 3357231760, slot: "vitality", tier: 4, active: true, imbue: false, icon: "file://{images}/upgrades/mods_armor/unstoppable.psd" },
15059
+ { name: "upgrade_vampire", id: 499683006, slot: "vitality", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_armor/health_stealing_bullets.psd" },
15060
+ { name: "upgrade_veil_walker", id: 865958998, slot: "vitality", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_utility/veil_walker.psd" },
15061
+ { name: "upgrade_vex_barrier", id: 1644605047, slot: "vitality", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_armor/last_stand.psd" },
15062
+ { name: "upgrade_warp_stone", id: 3270001687, slot: "vitality", tier: 3, active: true, imbue: false, icon: "file://{images}/upgrades/mods_weapon/warp_stone.psd" },
15063
+ { name: "upgrade_weapon_shielding", id: 805079544, slot: "vitality", tier: 2, active: false, imbue: false, icon: "file://{images}/upgrades/mods_armor/bullet_shield.psd" },
15064
+ { name: "upgrade_weighted_shots", id: 3791587546, slot: "weapon", tier: 3, active: false, imbue: false, icon: "file://{images}/upgrades/mods_armor/improved_bullet_armor.psd" },
15065
+ { name: "upgrade_withering_whip", id: 2922054143, slot: "spirit", tier: 1, active: true, imbue: false, icon: "file://{images}/upgrades/mods_tech/slowing_tech.psd" }
15066
+ ];
15067
+
15068
+ // js/src/items.ts
15069
+ var items = itemTable;
15070
+ function item(name) {
15071
+ return byName.get(name);
15072
+ }
15073
+ var byName = new Map(items.map((each) => [each.name, each]));
15074
+
14551
15075
  // js/src/hook.ts
14552
15076
  var hookAbility = "citadel_ability_hook";
14553
15077
  var hookUpgrades = 15;
@@ -14938,21 +15462,8 @@ function rosterRow(row, index) {
14938
15462
  ]
14939
15463
  );
14940
15464
  const src = portraits.get(row.hero);
14941
- const badge = row.steamId !== void 0 && {
14942
- type: "avatar",
14943
- props: {
14944
- steamId: row.steamId,
14945
- style: {
14946
- width: badgeSize,
14947
- height: badgeSize,
14948
- horizontalAlign: "left",
14949
- verticalAlign: "bottom",
14950
- borderRadius: badgeSize / 2,
14951
- borderWidth: 1,
14952
- borderColor: shades.dim
14953
- }
14954
- }
14955
- };
15465
+ const badge = row.steamId === void 0 ? false : avatarBadge(row.steamId);
15466
+ const image = src === void 0 ? false : portraitImage(src);
14956
15467
  const portrait = element(
14957
15468
  "panel",
14958
15469
  {
@@ -14965,13 +15476,7 @@ function rosterRow(row, index) {
14965
15476
  element(
14966
15477
  "panel",
14967
15478
  { width: "100%", height: "100%", background: shades.raised },
14968
- [
14969
- src && {
14970
- type: "image",
14971
- props: { src, style: { width: "100%", height: "100%" } }
14972
- },
14973
- badge
14974
- ]
15479
+ [image, badge]
14975
15480
  )
14976
15481
  );
14977
15482
  const style = {
@@ -14997,6 +15502,29 @@ function rosterRow(row, index) {
14997
15502
  } : element("panel", style, [text2, portrait], `row-${index}`);
14998
15503
  return arriving(line2, { translate: [16, 0] });
14999
15504
  }
15505
+ function portraitImage(src) {
15506
+ return {
15507
+ type: "image",
15508
+ props: { src, style: { width: "100%", height: "100%" } }
15509
+ };
15510
+ }
15511
+ function avatarBadge(steamId) {
15512
+ return {
15513
+ type: "avatar",
15514
+ props: {
15515
+ steamId,
15516
+ style: {
15517
+ width: badgeSize,
15518
+ height: badgeSize,
15519
+ horizontalAlign: "left",
15520
+ verticalAlign: "bottom",
15521
+ borderRadius: badgeSize / 2,
15522
+ borderWidth: 1,
15523
+ borderColor: shades.dim
15524
+ }
15525
+ }
15526
+ };
15527
+ }
15000
15528
  var actionLooks = {
15001
15529
  primary: {
15002
15530
  idle: { background: tones.text },
@@ -16313,6 +16841,7 @@ export {
16313
16841
  fireInput,
16314
16842
  format_exports as format,
16315
16843
  frameClock,
16844
+ freeCursor,
16316
16845
  ghostStates,
16317
16846
  ground,
16318
16847
  handedOff,
@@ -16326,6 +16855,9 @@ export {
16326
16855
  holdReload,
16327
16856
  hookAbility,
16328
16857
  hookUpgrades,
16858
+ item,
16859
+ itemId,
16860
+ items,
16329
16861
  jsx,
16330
16862
  jsxs,
16331
16863
  loadSpot,