Skip to content

Commit

Permalink
Merge pull request #339 from PiTi2k5/master
Browse files Browse the repository at this point in the history
Buildings with upgrade lvl 12
  • Loading branch information
fedorovvl authored Jan 3, 2024
2 parents 79dc268 + 528eaf0 commit 1cf682c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions userscripts/user_building_expansion.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ var _searchArchitecturesViewerModalInitialized = false;


const UNDEFINED_TEXT = '[undefined text]',
MAXLEVEL = 7,
MAXLEVEL2 = 7,
MAXLEVEL = 12,
MAXLEVEL2 = 12,
ALLLEVELS = 1,
DEBUG = false;
var searchString = '',
Expand All @@ -41,6 +41,10 @@ $.extend(user_building_extension_settings, settings.read(null, 'UpgradeBuilding'
maxUpgradeLevel = user_building_extension_settings.maxUpgradeLevelSetting;

function SearchArchitecturesHandler(event) {
if(game.gi.isOnHomzone() == false) {
game.showAlert(getText('not_home'));
return;
}
$('div[role="dialog"]:not(#searchArchitecturesModal):visible').modal('hide');
if (!_searchArchitecturesViewerModalInitialized)
$('#searchArchitecturesModal').remove();
Expand Down Expand Up @@ -386,6 +390,3 @@ function upgradeBuildingForClientArray(buildingArray_input) {
buildingArray = [];
game.showAlert(getText('command_sent'));
}



0 comments on commit 1cf682c

Please sign in to comment.