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 8fab944 commit a2f0625
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 set an `unpoisonable` in its own map, which the `blade` could check for existence before applying poison. 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 existence before applying poison. If the message approach were to instead be taken, then every human would need to add code to handle being poisoned.

## Documentation, security, and type checking in one

Expand Down

0 comments on commit a2f0625

Please sign in to comment.