mirror of
https://github.com/minetest-mods/armor_monoid.git
synced 2025-01-08 17:10:31 +01:00
fix example
This commit is contained in:
parent
92b243ad27
commit
c7988a3dae
@ -11,8 +11,8 @@ multipliers. For example, if I wanted to apply an effect granting arcane
|
||||
damage resistance but fleshy damage vulnerability, I could do <br/>
|
||||
```
|
||||
local tab = {
|
||||
arcane = 50,
|
||||
fleshy = 150,
|
||||
arcane = 0.5,
|
||||
fleshy = 1.5,
|
||||
}
|
||||
|
||||
armor_monoid.monoid:add_change(player, tab, "mymod:arcane_boost")
|
||||
|
2
init.lua
2
init.lua
@ -182,7 +182,7 @@ armor.set_player_armor = function(self, player)
|
||||
player_monoids.jump:del_change(player, "armor_monoid:compat")
|
||||
player_monoids.gravity:del_change(player, "armor_monoid:compat")
|
||||
|
||||
armor_monoid.add_change(player, { fleshy = armor_groups.fleshy / 100 },
|
||||
armor_monoid.monoid:add_change(player, { fleshy = armor_groups.fleshy / 100 },
|
||||
"armor_monoid:compat")
|
||||
player_monoids.speed:add_change(player, physics_o.speed,
|
||||
"armor_monoid:compat")
|
||||
|
Loading…
Reference in New Issue
Block a user