Skip to content

Commit

Permalink
feat: Setter method for PlanetData adding new planet features (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
OH296 authored Feb 19, 2025
1 parent d193632 commit 1e4d6e5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/scr_PlanetData/scr_PlanetData.gml
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,12 @@ function PlanetData(planet, system) constructor{
static has_feature = function(feature){
return planet_feature_bool(features, feature);
}

static has_upgrade= function(feature){

static add_feature = function(feature_type){
array_push(system.p_feature[planet], new NewPlanetFeature(feature_type));
}

static has_upgrade = function(feature){
return planet_feature_bool(upgrades, feature);
}

Expand Down

0 comments on commit 1e4d6e5

Please sign in to comment.