Skip to content

Commit

Permalink
refactor: use add_feature
Browse files Browse the repository at this point in the history
  • Loading branch information
MCPO-Spartan-117 committed Feb 24, 2025
1 parent f64dd93 commit 3db4dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objects/obj_star_select/Create_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ recruiting_button.update({
});
recruiting_button.bind_method = function(){
if (!p_data.has_feature(P_features.Recruiting_World)) {
array_push(target.p_feature[obj_controller.selecting_planet], new NewPlanetFeature(P_features.Recruiting_World));
p_data.add_feature(P_features.Recruiting_World);
obj_controller.recruiting_worlds += $"{planet_numeral_name(obj_controller.selecting_planet, target)}|";
} else {
delete_features(target.p_feature[obj_controller.selecting_planet], P_features.Recruiting_World);
Expand Down

0 comments on commit 3db4dce

Please sign in to comment.