Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add info for mutation enchantments #4118

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,37 @@ have an additional field:
If a creature successfully damages the player and their chance roll succeeds they will apply all of
the listed effects to the player. The effects are added one after another.

### Mutations

Mutations can give effects with the field "enchantments", the following mutation grants a special
attack. The enchant provided after the ink gland mutation permanently affects armor values on the
player.

```json
{
"type": "mutation",
"id": "INK_GLANDS",
"name": { "str": "Ink glands" },
"points": 1,
"visibility": 1,
"ugliness": 1,
"description": "Several ink glands have grown onto your torso. They can be used to spray defensive ink and blind an attacker in an emergency, as long as the torso isn't covered.",
"enchantments": [ "MEP_INK_GLAND_SPRAY" ],
"category": [ "CEPHALOPOD" ]
},
{
"type": "enchantment",
"id": "ENCH_BIO_CARBON",
"condition": "ALWAYS",
"values": [
{ "value": "ARMOR_BASH", "multiply": -0.05 },
{ "value": "ARMOR_CUT", "multiply": -0.1 },
{ "value": "ARMOR_STAB", "multiply": -0.08 },
{ "value": "ARMOR_BULLET", "multiply": -0.15 }
]
}
```

## Required fields

```json
Expand Down
1 change: 1 addition & 0 deletions doc/src/content/docs/en/mod/json/reference/json_info.md
Original file line number Diff line number Diff line change
Expand Up @@ -1282,6 +1282,7 @@ wake up for the first time after 24 hours into the game.
"msg_transform": "You turn your photophore OFF.", // message displayed upon transformation
"active": false , // Will the target mutation start powered ( turn ON ).
"moves": 100 // how many moves this costs. (default: 0)
"enchantments": [ "MEP_INK_GLAND_SPRAY" ], // Applies this enchantment to the player. See magic.md and effects_json.md
}
```

Expand Down