warframe-public-export-plus 0.6.2 → 0.6.4

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.d.ts CHANGED
@@ -1043,10 +1043,11 @@ export interface IPowersuit {
1043
1043
  power: number;
1044
1044
  codexSecret: boolean;
1045
1045
  masteryReq: number;
1046
+ excludeFromCodex?: true;
1046
1047
  sprintSpeed: number;
1047
1048
  abilities: ({ uniqueName: string } & IAbility)[];
1048
1049
  passiveDescription?: string;
1049
- productCategory: "Suits" | "SpaceSuits" | "MechSuits";
1050
+ productCategory: "Suits" | "SpaceSuits" | "MechSuits" | "SpecialItems";
1050
1051
  exalted?: string[];
1051
1052
  longDescription?: string;
1052
1053
  variantType: "VT_NORMAL" | "VT_PRIME" | "VT_VARIANT";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "warframe-public-export-plus",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "exports": {
@@ -0,0 +1,17 @@
1
+ local { crypto, json, wasm } = require "pluto:*"
2
+
3
+ local ExportWarframes = json.decode(io.contents("../ExportWarframes.json"))
4
+ local utilInstance = wasm.instantiate(io.contents("util.wasm"))
5
+
6
+ return function(uniqueName, rank)
7
+ local health_add, shield_add, power_add, armor_add, ability_strength, heal_rate = utilInstance:call("get_powersuit_scaling_values", crypto.joaat(uniqueName), rank)
8
+ local powersuit = ExportWarframes[uniqueName]
9
+ return {
10
+ health = powersuit.health + health_add,
11
+ shield = powersuit.shield + shield_add,
12
+ power = powersuit.power + power_add,
13
+ armor = powersuit.armor + armor_add,
14
+ ability_strength = ability_strength,
15
+ heal_rate = heal_rate,
16
+ }
17
+ end