File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Urban Synergy Unleashed/common/scripted_triggers Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -92,12 +92,12 @@ usu_calculate_building_good_ai_value_profit_adjustment = {
9292 # So, situational override:
9393 if = {
9494 limit = {
95+ exists = b:$building$ # Avoid this preventing the 1st level being built.
9596 scope:relative_after_queued > { # Apply some threshold of sell/buy to limit it. [t = (BSD+1)*0.5] <- halfway to minimum
9697 value = define:NEconomy|BUY_SELL_DIFF_AT_MAX_FACTOR
9798 add = 1
9899 multiply = 0.5
99100 }
100- scope:local_goods_production > $fallback_production$ # Avoid this preventing the 1st level being built.
101101 # # If BUY_SELL_DIFF_AT_MAX_FACTOR set to 4 then; if buy orders are 4x sell orders price is maxed.
102102 # # The inverse is true also that if sell orders are 4x buy orders, price is minimised.
103103 # # Therefore sell/buy fraction halfway between 1 and BUY_SELL_DIFF_AT_MAX_FACTOR = half way to minimum price.
@@ -106,6 +106,9 @@ usu_calculate_building_good_ai_value_profit_adjustment = {
106106 }
107107 value = 99999999999 # (Subtracted) Kill it dead, stop building stuff that's not needed.
108108 }
109+ else = {
110+ value = 0
111+ }
109112 }
110113 }
111114}
You can’t perform that action at this time.
0 commit comments