@bgforge/mls-server 3.3.1 → 3.4.0
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/out/{engine-proc-docs.json → fallout-ssl-engine-proc-docs.json} +2 -2
- package/out/server.js +411 -393
- package/out/tree-sitter-ssl.wasm +0 -0
- package/out/tree-sitter-weidu_d.wasm +0 -0
- package/out/tssl-plugin.js +4 -2
- package/package.json +3 -3
- /package/out/{engine-procedures.json → fallout-ssl-engine-procedures.json} +0 -0
package/out/tree-sitter-ssl.wasm
CHANGED
|
Binary file
|
|
Binary file
|
package/out/tssl-plugin.js
CHANGED
|
@@ -5,7 +5,9 @@ In critter scripts, called when someone tries to steal from this critter.`,push_
|
|
|
5
5
|
- A critter uses an object on another critter. (Or themselves).
|
|
6
6
|
- A critter uses an object from inventory screen AND this object does not have "Use" action flag set and it's not active flare or explosive.
|
|
7
7
|
- Player or AI uses any drug.
|
|
8
|
-
The parameter \`obj_being_used_with\` receives a pointer to the object that was used
|
|
8
|
+
The parameter \`obj_being_used_with\` receives a pointer to the object that was used.
|
|
9
|
+
`,use_p_proc:`Called when:
|
|
9
10
|
- A critter uses an object from inventory which have "Use" action flag set or it's an active flare or dynamite.
|
|
10
11
|
- Player uses an object from main interface.
|
|
11
|
-
Use \`source_obj\` to get the object being used. Note: not called for some item types when working with inventory
|
|
12
|
+
Use \`source_obj\` to get the object being used. Note: not called for some item types when working with inventory.
|
|
13
|
+
`,use_skill_on_p_proc:"Called when a skill is used on the object. The skill number is passed via `action_being_used` (see DEFINE.H, Skill Equates)."};var g=_;function l(e,t){if(e===void 0||t===void 0)return e;let r=t.find(o=>o.kind==="functionName"||o.kind==="localName");if(r===void 0)return e;let s=g[r.text];if(s===void 0)return e;let a={text:s,kind:"text"};return{...e,documentation:[...e.documentation??[],a]}}var u=["barter_init_p_proc","barter_p_proc","combat_is_over_p_proc","combat_is_starting_p_proc","combat_p_proc","create_p_proc","critter_p_proc","damage_p_proc","description_p_proc","destroy_p_proc","drop_p_proc","is_dropping_p_proc","look_at_p_proc","map_enter_p_proc","map_exit_p_proc","map_update_p_proc","pickup_p_proc","push_p_proc","spatial_p_proc","start","talk_p_proc","timed_event_p_proc","use_ad_on_p_proc","use_disad_on_p_proc","use_obj_on_p_proc","use_p_proc","use_skill_on_p_proc"];var y=new Set(u),b=6133,v=/^['"](\w+)['"]\s+is declared but/;function w(e){let t=typeof e=="string"?e:e.messageText;return v.exec(t)?.[1]}function p(e){return e.filter(t=>{if(t.code!==b)return!0;let r=w(t.messageText);return r===void 0||!y.has(r)})}var x=".tssl";function d(e){return e.endsWith(x)}function j(e){function t(r){return new Proxy(r.languageService,{get(a,o,h){return o==="getSemanticDiagnostics"?n=>{let i=a.getSemanticDiagnostics(n);return d(n)?p(i):i}:o==="getSuggestionDiagnostics"?n=>{let i=a.getSuggestionDiagnostics(n);return d(n)?p(i):i}:o==="getQuickInfoAtPosition"?(n,i)=>{let c=a.getQuickInfoAtPosition(n,i);return d(n)?l(c,c?.displayParts):c}:Reflect.get(a,o,h)}})}return{create:t}}module.exports=j;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bgforge/mls-server",
|
|
3
3
|
"description": "LSP server for Fallout SSL, WeiDU (BAF/D/TP2), and related modding languages",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.4.0",
|
|
5
5
|
"author": "BGforge",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
7
7
|
"main": "out/server.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"vscode-languageserver": "8.1.0",
|
|
44
44
|
"vscode-languageserver-textdocument": "^1.0.12",
|
|
45
45
|
"web-tree-sitter": "^0.26.6",
|
|
46
|
-
"yaml": "^2.8.
|
|
46
|
+
"yaml": "^2.8.3"
|
|
47
47
|
},
|
|
48
48
|
"optionalDependencies": {
|
|
49
49
|
"sslc-emscripten-noderawfs": "https://github.com/sfall-team/sslc/releases/download/2026-02-07-11-20-26/wasm-emscripten-node-noderawfs.tar.gz"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/ini": "^4.1.1",
|
|
53
53
|
"@types/node": "^20.19.35",
|
|
54
|
-
"vitest": "^4.
|
|
54
|
+
"vitest": "^4.1.2"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"test": "./scripts/test.sh",
|
|
File without changes
|