From 57401988983f7cb34a893452ccaa9fbd4c16df21 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 5 Sep 2023 23:47:56 +0100 Subject: [PATCH] Fix armor_groups --- _en/map/objects.md | 13 +++++++------ _it/map/objects.md | 5 +++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/_en/map/objects.md b/_en/map/objects.md index d02cd9c..4bf737d 100644 --- a/_en/map/objects.md +++ b/_en/map/objects.md @@ -268,14 +268,15 @@ these groups can take any name and do not need to be registered. However, it's common to use the same group names as with node digging. How vulnerable an object is to particular types of damage depends on its -`armor_groups` [object property](#object-properties). Despite its misleading -name, `armor_groups` specify the percentage damage taken from particular damage -groups, not the resistance. If a damage group is not listed in an object's armor -groups, that object is completely invulnerable to it. +`armor_groups`. Despite its misleading name, `armor_groups` specify the +percentage damage taken from particular damage groups, not the resistance. If a +damage group is not listed in an object's armor groups, that object is +completely invulnerable to it. ```lua -target:set_properties({ - armor_groups = { fleshy = 90, crumbly = 50 }, +target:set_armor_groups({ + fleshy = 90, + crumbly = 50, }) ``` diff --git a/_it/map/objects.md b/_it/map/objects.md index 3f6f5c0..51e94f7 100644 --- a/_it/map/objects.md +++ b/_it/map/objects.md @@ -238,8 +238,9 @@ Al contrario di quello che potrebbe far intendere il nome, `armor_groups` specif Se un Gruppo Danno non è elencato nei Gruppi Armatura di un oggetto, quest'ultimo ne sarà completamente immune. ```lua -obiettivo:set_properties({ - armor_groups = { fleshy = 90, crumbly = 50 }, +obiettivo:set_armor_groups({ + fleshy = 90, + crumbly = 50, }) ```