Skip to content

Commit

Permalink
Update 2024-02-29-creating-the-perfect-modding-language.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MyNameIsTrez authored Sep 23, 2024
1 parent 9d79a2a commit 29d6457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/2024-02-29-creating-the-perfect-modding-language.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ There is a big difference between the options of giving every entity a map, and
- With a map, entity A can put something in the map of entity B, even when entity B doesn't ever look at that thing.
- With messages, entity B can choose to ignore a message.

The map approach is more suitable when there is a `blade` entity that needs to apply a lasting "poison" effect on a `human` entity, assuming the "poison" effect is something the mod came up with. If a human doesn't want to be poisoned, it could put `unpoisonable` in its own map, which the `blade` could check for. If the message approach were to instead be taken, then every human would need to add code to handle being poisoned.
The map approach is more suitable when there is a `blade` entity that needs to apply a lasting "poison" effect on a `human` entity, assuming the "poison" effect is something the mod came up with. If a human doesn't want to be poisoned, it could put `unpoisonable` in its own map, which the `blade` could check for. If the message approach were to instead be taken, then every human would need to be modified, to handle a potential `poisoned` message.

## Documentation, security, and type checking in one

Expand Down

0 comments on commit 29d6457

Please sign in to comment.