Difference between revisions of "Callback: Set initial production level on construction"
From GRFSpecs
Jump to navigationJump to search (created) |
|||
Line 2: | Line 2: | ||
{{ottdp|1.3|no|ottdrev=r24186}} |
{{ottdp|1.3|no|ottdrev=r24186}} |
||
− | This callback is called on constructon of industries. Similar to [[:Callback:_Random_production_change|callback 29 result 0F]] it sets the production rate. You can use [[VariationalAction2/Industries#Construction_type_.28B3.29|variable B3]] to check the reason for the construction of the industry. |
+ | This callback is called on constructon of industries, if bit 6 of [[Action0/Industries#Callback_flags_.2821.2C22.29|property 22]] is set. Similar to [[:Callback:_Random_production_change|callback 29 result 0F]] it sets the production rate. You can use [[VariationalAction2/Industries#Construction_type_.28B3.29|variable B3]] to check the reason for the construction of the industry. |
Variable 18 contains 32 random bits. |
Variable 18 contains 32 random bits. |
Revision as of 17:03, 28 April 2012
Set initial production level on construction (15F)
This callback is called on constructon of industries, if bit 6 of property 22 is set. Similar to callback 29 result 0F it sets the production rate. You can use variable B3 to check the reason for the construction of the industry.
Variable 18 contains 32 random bits.
The result of the callback consists of:
Bits | Meaning |
---|---|
0-7 | Production level; must be in range 04..80h; default value when not using this callback is 10h. |
8-14 | Reserved, must be set to zero. |