@bgforge/mls-server 3.13.2 → 3.14.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/compile-worker.js +11 -0
- package/out/completion.fallout-ssl.json +6 -6
- package/out/hover.fallout-ssl.json +6 -6
- package/out/server.js +409 -464
- package/out/sslc-wrapper.mjs +47 -0
- package/out/tree-sitter-baf.wasm +0 -0
- package/out/tree-sitter-ssl.wasm +0 -0
- package/out/tssl-compile-worker.js +42235 -0
- package/package.json +3 -3
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"art_anim": {
|
|
117
117
|
"contents": {
|
|
118
118
|
"kind": "markdown",
|
|
119
|
-
"value": "```fallout-ssl-tooltip\
|
|
119
|
+
"value": "```fallout-ssl-tooltip\nint art_anim(int fid)\n```\nReturns the animation that this fid represents (ANIM_stand, ANIM_pickup, etc.)"
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
122
|
"attack": {
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"attack_complex": {
|
|
129
129
|
"contents": {
|
|
130
130
|
"kind": "markdown",
|
|
131
|
-
"value": "```fallout-ssl-tooltip\nvoid attack_complex(ObjectPtr who, int called_shot, int num_attacks, int bonus, int min_damage, int max_damage, int attacker_results, int target_results\n```\nCauses the current object (self - must be a critter) to attempt to attack a critter (who) with various parameters modifying the combat: called_shot - 0/1/specific means none/random/specific (head, torso, etc.) num_attacks - the # of extra attacks the self object gets before the target bonus - the bonus to hit the target on the first turn only min_damage - the minimum damage that will be done the first attack max_damage - the maximum damage that will be done the first attack attacker_results - what state the attacker ends in after the first attack target_results - what state the target ends in after the first attack"
|
|
131
|
+
"value": "```fallout-ssl-tooltip\nvoid attack_complex(ObjectPtr who, int called_shot, int num_attacks, int bonus, int min_damage, int max_damage, int attacker_results, int target_results)\n```\nCauses the current object (self - must be a critter) to attempt to attack a critter (who) with various parameters modifying the combat: called_shot - 0/1/specific means none/random/specific (head, torso, etc.) num_attacks - the # of extra attacks the self object gets before the target bonus - the bonus to hit the target on the first turn only min_damage - the minimum damage that will be done the first attack max_damage - the maximum damage that will be done the first attack attacker_results - what state the attacker ends in after the first attack target_results - what state the target ends in after the first attack"
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
134
|
"attack_setup": {
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
"critter_heal": {
|
|
207
207
|
"contents": {
|
|
208
208
|
"kind": "markdown",
|
|
209
|
-
"value": "```fallout-ssl-tooltip\
|
|
209
|
+
"value": "```fallout-ssl-tooltip\nint critter_heal(ObjectPtr who, int amount)\n```\nHeals a critter for a given amount (if given a value above their MaxHP will go up to their maximum HP). [Note: can also input negative amounts, causing the critter to be hurt for that amount. This is useful because it bypasses all resistances and thresholds"
|
|
210
210
|
}
|
|
211
211
|
},
|
|
212
212
|
"critter_injure": {
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
"critter_set_flee_state": {
|
|
243
243
|
"contents": {
|
|
244
244
|
"kind": "markdown",
|
|
245
|
-
"value": "```fallout-ssl-tooltip\nint critter_set_flee_state(ObjectPtr who, bool flee_on\n```\nSets the FLEE flag on or off. This controls whether the critter flees during combat."
|
|
245
|
+
"value": "```fallout-ssl-tooltip\nint critter_set_flee_state(ObjectPtr who, bool flee_on)\n```\nSets the FLEE flag on or off. This controls whether the critter flees during combat."
|
|
246
246
|
}
|
|
247
247
|
},
|
|
248
248
|
"critter_skill_level": {
|
|
@@ -566,7 +566,7 @@
|
|
|
566
566
|
"has_trait": {
|
|
567
567
|
"contents": {
|
|
568
568
|
"kind": "markdown",
|
|
569
|
-
"value": "```fallout-ssl-tooltip\nint has_trait(int trait_type, ObjectPtr who, int trait\n```\nReturns the value of a given critter object's (who) trait of a given trait_type (see define.h). This can be used to determine if the player has a particular Perk, AI Packet, team num, current rotation, or Trait (finesse, bruiser, etc.)."
|
|
569
|
+
"value": "```fallout-ssl-tooltip\nint has_trait(int trait_type, ObjectPtr who, int trait)\n```\nReturns the value of a given critter object's (who) trait of a given trait_type (see define.h). This can be used to determine if the player has a particular Perk, AI Packet, team num, current rotation, or Trait (finesse, bruiser, etc.)."
|
|
570
570
|
}
|
|
571
571
|
},
|
|
572
572
|
"how_much": {
|
|
@@ -3968,7 +3968,7 @@
|
|
|
3968
3968
|
"set_shader_mode": {
|
|
3969
3969
|
"contents": {
|
|
3970
3970
|
"kind": "markdown",
|
|
3971
|
-
"value": "```fallout-ssl-tooltip\nvoid set_shader_mode(int mode)\n```\nTells sfall when to use a shader.
|
|
3971
|
+
"value": "```fallout-ssl-tooltip\nvoid set_shader_mode(int ID, int mode)\n```\nTells sfall when to use a shader. `mode` is a set of 32 flags which specify the screens on which the shader will be disabled, unless bit 32 is set, in which case the shader will only be active on those screens. Remember that screens are displayed on top of each other; if the player opens the character menu which in combat, the game still considers the player to be in combat. See **sfall.h** for a list of defines.\nThe graphics functions are only available if the user is using graphics mode 4 or 5. Use `graphics_funcs_available` to check; it returns 1 if you can use them or 0 if you can't. Calling graphics functions when `graphics_funcs_available` returns 0 will do nothing."
|
|
3972
3972
|
}
|
|
3973
3973
|
},
|
|
3974
3974
|
"set_shader_texture": {
|