@eveshipfit/ui-ingame 1.11.1 → 1.11.2
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/dist/index.mjs +14 -0
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -8020,6 +8020,10 @@ const byRule = {
|
|
|
8020
8020
|
skill: "skill",
|
|
8021
8021
|
slots: "error",
|
|
8022
8022
|
wrong_slot: "error",
|
|
8023
|
+
not_a_module: "error",
|
|
8024
|
+
not_a_drone: "error",
|
|
8025
|
+
not_a_fighter: "error",
|
|
8026
|
+
not_an_implant: "error",
|
|
8023
8027
|
slot_taken: "error",
|
|
8024
8028
|
wrong_slot_index: "error",
|
|
8025
8029
|
subsystem_taken: "error",
|
|
@@ -8030,6 +8034,9 @@ const byRule = {
|
|
|
8030
8034
|
ship_item: "error",
|
|
8031
8035
|
max_group: "error",
|
|
8032
8036
|
max_type: "error",
|
|
8037
|
+
not_a_hull: "error",
|
|
8038
|
+
not_a_mode: "error",
|
|
8039
|
+
not_a_skill: "error",
|
|
8033
8040
|
charge_group: "error",
|
|
8034
8041
|
charge_size: "error"
|
|
8035
8042
|
};
|
|
@@ -8116,6 +8123,10 @@ function violationText({ target, rule }, fit, names) {
|
|
|
8116
8123
|
case "slots": return `Too many ${rackItems[rule.slot]}`;
|
|
8117
8124
|
case "skill": return `${names.type(rule.type_id)} ${romanLevels[rule.required - 1]}`;
|
|
8118
8125
|
case "wrong_slot": return `${subject}: goes in ${slotNames[rule.expected]}`;
|
|
8126
|
+
case "not_a_module": return `${subject}: not a module`;
|
|
8127
|
+
case "not_a_drone": return `${subject}: not a drone`;
|
|
8128
|
+
case "not_an_implant": return `${subject}: not an implant`;
|
|
8129
|
+
case "not_a_fighter": return `${subject}: not a fighter`;
|
|
8119
8130
|
case "slot_taken": return `${subject}: slot already taken`;
|
|
8120
8131
|
case "wrong_slot_index": return `${subject}: goes in ${item?.slot.type} slot ${rule.expected}`;
|
|
8121
8132
|
case "subsystem_taken": return `${subject}: another subsystem covers the same part of the ship`;
|
|
@@ -8126,6 +8137,9 @@ function violationText({ target, rule }, fit, names) {
|
|
|
8126
8137
|
case "ship_item": return `${subject}: does not fit on a structure`;
|
|
8127
8138
|
case "max_group": return `${subject}: only ${rule.allowed} ${names.group(rule.group_id)} can be ${rule.limit}`;
|
|
8128
8139
|
case "max_type": return `${subject}: only ${rule.allowed} can be fitted`;
|
|
8140
|
+
case "not_a_hull": return `${names.type(fit.ship.type_id)}: not a ship, structure or container`;
|
|
8141
|
+
case "not_a_mode": return `${fit.ship.mode === void 0 ? "" : names.type(fit.ship.mode)}: not a mode of this ship`;
|
|
8142
|
+
case "not_a_skill": return `${names.type(rule.type_id)}: not a skill`;
|
|
8129
8143
|
case "charge_group": return `${charge}: cannot be loaded in ${module}`;
|
|
8130
8144
|
case "charge_size": return `${charge}: wrong size for ${module}`;
|
|
8131
8145
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eveshipfit/ui-ingame",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.2",
|
|
4
4
|
"description": "EVE Online ship fitting UI that looks like the in-game one",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "EVEShipFit Team <info@eveship.fit>",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@eveshipfit/fitting": "2.5.
|
|
31
|
-
"@eveshipfit/react-hooks": "2.5.
|
|
30
|
+
"@eveshipfit/fitting": "2.5.1",
|
|
31
|
+
"@eveshipfit/react-hooks": "2.5.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/core": "^8.0.9",
|