Skip to content

Commit

Permalink
feat: Remove power_id, power_ids aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
shap-po committed Oct 2, 2024
1 parent 5cd9260 commit 49046be
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,8 @@ public static ActionFactory<Pair<Entity, Entity>> getFactory() {
.add("power", ApoliDataTypes.POWER_TYPE, null) // power reference, example: my_namespace:my_power
.add("powers", ShappoliDataTypes.POWER_TYPES, null)

.add("power_id", SerializableDataTypes.IDENTIFIER, null) // power type, example: apoli:action_on_hit
.add("power_ids", SerializableDataTypes.IDENTIFIERS, null)
.addFunctionedDefault("power_type", SerializableDataTypes.IDENTIFIER, data -> data.get("power_id"))
.addFunctionedDefault("power_types", SerializableDataTypes.IDENTIFIERS, data -> data.get("power_ids"))
.add("power_type", SerializableDataTypes.IDENTIFIER, null) // power type, example: apoli:action_on_hit
.add("power_types", SerializableDataTypes.IDENTIFIERS, null)

.add("power_source", SerializableDataTypes.IDENTIFIER, null) // power source identifier, example: apoli:command
.add("power_sources", SerializableDataTypes.IDENTIFIERS, null)
Expand Down

0 comments on commit 49046be

Please sign in to comment.