Updated behaviors and entities components

This commit is contained in:
DaanV2
2022-12-07 10:40:43 +01:00
parent 8cc3ef4bc6
commit 8e0228de15
9 changed files with 203 additions and 61 deletions

View File

@@ -5,6 +5,18 @@
"description": "A component that does damage to entities that get within range.",
"additionalProperties": false,
"properties": {
"cause": {
"title": "Cause",
"$ref": "../../../../general/entity/damage_source.json",
"type": "string",
"description": "The type of damage that is applied to entities that enter the damage range."
},
"damage_cooldown": {
"title": "damage cooldown",
"type": "number",
"default": 0,
"description": "Attack cooldown (in seconds) for how often this entity can attack a target."
},
"damage_per_tick": {
"type": "integer",
"default": 2,
@@ -19,14 +31,14 @@
},
"entity_filter": {
"$ref": "../../filters/filters.json",
"description": "Filter to see which entities can be affected by the attack.",
"description": "The set of entities that are valid to apply the damage to when within range.",
"title": "Entity Filter"
},
"cause": {
"type": "string",
"description": "what causes the attack to occur.",
"title": "Cause",
"$ref": "../../../../general/entity/damage_source.json"
"play_attack_sound": {
"title": "play attack sound",
"type": "boolean",
"default": 4.94066e-324,
"description": "If the entity should play their attack sound when attacking a target."
}
},
"examples": [