Fix armor_groups

This commit is contained in:
rubenwardy 2023-09-05 23:47:56 +01:00
parent 6064c662f6
commit 5740198898
2 changed files with 10 additions and 8 deletions

View File

@ -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,
})
```

View File

@ -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,
})
```