public int GetBasePrestige(CelestialBody body) { const int NO_BASE_PRESTIGE = -1; int basePrestige = info.GetInt(body, PLUGIN, "base prestige", NO_BASE_PRESTIGE); if (basePrestige == NO_BASE_PRESTIGE) { return body.BasePrestige(); } return basePrestige; }
public int GetBasePrestige(CelestialBody body) { const int NO_BASE_PRESTIGE = -1; int basePrestige = info.GetInt(body, PLUGIN, "base prestige", NO_BASE_PRESTIGE); if (basePrestige == NO_BASE_PRESTIGE) { return(body.BasePrestige()); } return(basePrestige); }