|
8 | 8 | "name": "Health", |
9 | 9 | "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/heart-half-full.svg", |
10 | 10 | "shortDescription": "Manage health points and damage, including a protective shield and armor.", |
11 | | - "version": "0.1.0", |
| 11 | + "version": "0.2.0", |
12 | 12 | "description": [ |
13 | 13 | "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.", |
14 | 14 | "", |
|
1205 | 1205 | "fullName": "Change health points", |
1206 | 1206 | "functionType": "Action", |
1207 | 1207 | "group": "Health configuration", |
1208 | | - "name": "SetCurrentHealth", |
| 1208 | + "name": "SetHealth", |
1209 | 1209 | "sentence": "Change the health of _PARAM0_ to _PARAM2_ points", |
1210 | 1210 | "events": [ |
1211 | 1211 | { |
|
1288 | 1288 | ], |
1289 | 1289 | "objectGroups": [] |
1290 | 1290 | }, |
| 1291 | + { |
| 1292 | + "description": "Change the health points of the object. Will not trigger damage cooldown.", |
| 1293 | + "fullName": "Change health points (deprecated)", |
| 1294 | + "functionType": "Action", |
| 1295 | + "group": "Health configuration", |
| 1296 | + "name": "SetCurrentHealth", |
| 1297 | + "private": true, |
| 1298 | + "sentence": "Change the health of _PARAM0_ to _PARAM2_ points", |
| 1299 | + "events": [ |
| 1300 | + { |
| 1301 | + "type": "BuiltinCommonInstructions::Standard", |
| 1302 | + "conditions": [], |
| 1303 | + "actions": [ |
| 1304 | + { |
| 1305 | + "type": { |
| 1306 | + "value": "Health::Health::SetHealth" |
| 1307 | + }, |
| 1308 | + "parameters": [ |
| 1309 | + "Object", |
| 1310 | + "Behavior", |
| 1311 | + "GetArgumentAsNumber(\"Value\")", |
| 1312 | + "" |
| 1313 | + ] |
| 1314 | + } |
| 1315 | + ] |
| 1316 | + } |
| 1317 | + ], |
| 1318 | + "parameters": [ |
| 1319 | + { |
| 1320 | + "description": "Object", |
| 1321 | + "name": "Object", |
| 1322 | + "type": "object" |
| 1323 | + }, |
| 1324 | + { |
| 1325 | + "description": "Behavior", |
| 1326 | + "name": "Behavior", |
| 1327 | + "supplementaryInformation": "Health::Health", |
| 1328 | + "type": "behavior" |
| 1329 | + }, |
| 1330 | + { |
| 1331 | + "description": "New health value", |
| 1332 | + "name": "Value", |
| 1333 | + "type": "expression" |
| 1334 | + } |
| 1335 | + ], |
| 1336 | + "objectGroups": [] |
| 1337 | + }, |
1291 | 1338 | { |
1292 | 1339 | "description": "Heal the object by increasing its health points.", |
1293 | 1340 | "fullName": "Heal object", |
|
2488 | 2535 | "objectGroups": [] |
2489 | 2536 | }, |
2490 | 2537 | { |
2491 | | - "description": "Maximum health points of the object.", |
| 2538 | + "description": "maximum health points of the object.", |
2492 | 2539 | "fullName": "Maximum health points", |
2493 | | - "functionType": "Expression", |
| 2540 | + "functionType": "ExpressionAndCondition", |
2494 | 2541 | "group": "Health", |
2495 | 2542 | "name": "MaxHealth", |
2496 | | - "sentence": "", |
| 2543 | + "sentence": "maximum health points", |
2497 | 2544 | "events": [ |
2498 | 2545 | { |
2499 | 2546 | "type": "BuiltinCommonInstructions::Standard", |
|
2570 | 2617 | "objectGroups": [] |
2571 | 2618 | }, |
2572 | 2619 | { |
2573 | | - "description": "Current health points of the object.", |
| 2620 | + "description": "current health points of the object.", |
2574 | 2621 | "fullName": "Health points", |
2575 | | - "functionType": "Expression", |
| 2622 | + "functionType": "ExpressionAndCondition", |
2576 | 2623 | "group": "Health", |
2577 | 2624 | "name": "Health", |
2578 | | - "sentence": "", |
| 2625 | + "sentence": "health points", |
2579 | 2626 | "events": [ |
2580 | 2627 | { |
2581 | 2628 | "type": "BuiltinCommonInstructions::Standard", |
|
3726 | 3773 | "objectGroups": [] |
3727 | 3774 | }, |
3728 | 3775 | { |
3729 | | - "description": "Maximum shield points of the object.", |
| 3776 | + "description": "maximum shield points of the object.", |
3730 | 3777 | "fullName": "Maximum shield points", |
3731 | | - "functionType": "Expression", |
| 3778 | + "functionType": "ExpressionAndCondition", |
3732 | 3779 | "group": "Shield", |
3733 | 3780 | "name": "MaxShield", |
3734 | | - "sentence": "", |
| 3781 | + "sentence": "maximum shield points", |
3735 | 3782 | "events": [ |
3736 | 3783 | { |
3737 | 3784 | "type": "BuiltinCommonInstructions::Standard", |
|
3957 | 4004 | "objectGroups": [] |
3958 | 4005 | }, |
3959 | 4006 | { |
3960 | | - "description": "Current shield points of the object.", |
| 4007 | + "description": "current shield points of the object.", |
3961 | 4008 | "fullName": "Shield points", |
3962 | | - "functionType": "Expression", |
| 4009 | + "functionType": "ExpressionAndCondition", |
3963 | 4010 | "group": "Shield", |
3964 | 4011 | "name": "ShieldPoints", |
3965 | | - "sentence": "", |
| 4012 | + "sentence": "shield points", |
3966 | 4013 | "events": [ |
3967 | 4014 | { |
3968 | 4015 | "type": "BuiltinCommonInstructions::Standard", |
|
0 commit comments