Fix armor_groups
This commit is contained in:
parent
6064c662f6
commit
5740198898
@ -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.
|
common to use the same group names as with node digging.
|
||||||
|
|
||||||
How vulnerable an object is to particular types of damage depends on its
|
How vulnerable an object is to particular types of damage depends on its
|
||||||
`armor_groups` [object property](#object-properties). Despite its misleading
|
`armor_groups`. Despite its misleading name, `armor_groups` specify the
|
||||||
name, `armor_groups` specify the percentage damage taken from particular damage
|
percentage damage taken from particular damage groups, not the resistance. If a
|
||||||
groups, not the resistance. If a damage group is not listed in an object's armor
|
damage group is not listed in an object's armor groups, that object is
|
||||||
groups, that object is completely invulnerable to it.
|
completely invulnerable to it.
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
target:set_properties({
|
target:set_armor_groups({
|
||||||
armor_groups = { fleshy = 90, crumbly = 50 },
|
fleshy = 90,
|
||||||
|
crumbly = 50,
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -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.
|
Se un Gruppo Danno non è elencato nei Gruppi Armatura di un oggetto, quest'ultimo ne sarà completamente immune.
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
obiettivo:set_properties({
|
obiettivo:set_armor_groups({
|
||||||
armor_groups = { fleshy = 90, crumbly = 50 },
|
fleshy = 90,
|
||||||
|
crumbly = 50,
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user