Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 61 additions & 14 deletions extensions/reviewed/Health.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "Health",
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/heart-half-full.svg",
"shortDescription": "Manage health points and damage, including a protective shield and armor.",
"version": "0.1.0",
"version": "0.2.0",
"description": [
"Manage health points including a protective shield and armor. Health can be assigned to players, enemies, NPCs, or even inanimate objects such as breaking doors and mining rocks.",
"",
Expand Down Expand Up @@ -1205,7 +1205,7 @@
"fullName": "Change health points",
"functionType": "Action",
"group": "Health configuration",
"name": "SetCurrentHealth",
"name": "SetHealth",
"sentence": "Change the health of _PARAM0_ to _PARAM2_ points",
"events": [
{
Expand Down Expand Up @@ -1288,6 +1288,53 @@
],
"objectGroups": []
},
{
"description": "Change the health points of the object. Will not trigger damage cooldown.",
"fullName": "Change health points (deprecated)",
"functionType": "Action",
"group": "Health configuration",
"name": "SetCurrentHealth",
"private": true,
"sentence": "Change the health of _PARAM0_ to _PARAM2_ points",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [],
"actions": [
{
"type": {
"value": "Health::Health::SetHealth"
},
"parameters": [
"Object",
"Behavior",
"GetArgumentAsNumber(\"Value\")",
""
]
}
]
}
],
"parameters": [
{
"description": "Object",
"name": "Object",
"type": "object"
},
{
"description": "Behavior",
"name": "Behavior",
"supplementaryInformation": "Health::Health",
"type": "behavior"
},
{
"description": "New health value",
"name": "Value",
"type": "expression"
}
],
"objectGroups": []
},
{
"description": "Heal the object by increasing its health points.",
"fullName": "Heal object",
Expand Down Expand Up @@ -2488,12 +2535,12 @@
"objectGroups": []
},
{
"description": "Maximum health points of the object.",
"description": "maximum health points of the object.",
"fullName": "Maximum health points",
"functionType": "Expression",
"functionType": "ExpressionAndCondition",
"group": "Health",
"name": "MaxHealth",
"sentence": "",
"sentence": "maximum health points",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
Expand Down Expand Up @@ -2570,12 +2617,12 @@
"objectGroups": []
},
{
"description": "Current health points of the object.",
"description": "current health points of the object.",
"fullName": "Health points",
"functionType": "Expression",
"functionType": "ExpressionAndCondition",
"group": "Health",
"name": "Health",
"sentence": "",
"sentence": "health points",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
Expand Down Expand Up @@ -3726,12 +3773,12 @@
"objectGroups": []
},
{
"description": "Maximum shield points of the object.",
"description": "maximum shield points of the object.",
"fullName": "Maximum shield points",
"functionType": "Expression",
"functionType": "ExpressionAndCondition",
"group": "Shield",
"name": "MaxShield",
"sentence": "",
"sentence": "maximum shield points",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
Expand Down Expand Up @@ -3957,12 +4004,12 @@
"objectGroups": []
},
{
"description": "Current shield points of the object.",
"description": "current shield points of the object.",
"fullName": "Shield points",
"functionType": "Expression",
"functionType": "ExpressionAndCondition",
"group": "Shield",
"name": "ShieldPoints",
"sentence": "",
"sentence": "shield points",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
Expand Down