Skip to content

Commit

Permalink
Fallout: added missing critter_dmg function (found in BGforgeNet/Fall…
Browse files Browse the repository at this point in the history
  • Loading branch information
burner1024 committed Sep 14, 2020
1 parent 058b82c commit 674e9e1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/out/fallout-ssl.completion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,12 @@ base-functions:
- name: critter_damage
detail: void critter_damage(ObjectPtr who, int dmg_amount)
doc: |-
(Fallout 2 only) Inflicts damage on a critter (who) of a given amount, killing it if necessary.
- Macro: `critter_dmg(who, amount, (DMG_normal_dam BWOR DMG_NOANIMATE))`
- Inflicts damage on a critter (who) of a given amount, killing it if necessary. Normal damage, no animation.
- name: critter_dmg
detail: void critter_dmg(ObjectPtr who, int dmg_amount, flags)
doc: |-
Inflicts damage on a critter (who) of a given amount, killing it if necessary. Use `DMG_*` flags to customize behaviour.
- name: critter_heal
detail: void critter_heal(ObjectPtr who, int amount)
doc: |-
Expand Down
4 changes: 4 additions & 0 deletions syntaxes/fallout-ssl.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,10 @@
"match": "\\b(?i)(critter_damage)\\b",
"name": "support.function.base.ssl"
},
{
"match": "\\b(?i)(critter_dmg)\\b",
"name": "support.function.base.ssl"
},
{
"match": "\\b(?i)(critter_heal)\\b",
"name": "support.function.base.ssl"
Expand Down
1 change: 1 addition & 0 deletions syntaxes/fallout-ssl.tmLanguage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ repository:
- match: \b(?i)(critter_add_trait)\b
- match: \b(?i)(critter_attempt_placement)\b
- match: \b(?i)(critter_damage)\b
- match: \b(?i)(critter_dmg)\b
- match: \b(?i)(critter_heal)\b
- match: \b(?i)(critter_injure)\b
- match: \b(?i)(critter_inven_obj)\b
Expand Down

0 comments on commit 674e9e1

Please sign in to comment.