Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- org_num_1 = 2;
- org_num = 136; // gen_start with Cult of Sirius(136/34=4)
- v17 = 2;
- org_funds_ = save_funding + 2; // 468*2
- do
- {
- org_num_2 = 0;
- hostile_org_count = 0;
- do
- {
- if ( org_num_2 != org_num_1 && org_num_2 != 1 )
- {
- v3 = 0; // no_hostlile
- if ( *(&relation_formerly[org_num_1].field_3 + org_num_2) <= relation_hostile_lim )// relation_hostile_lim == db 0CEh
- v3 = 1; // hostile
- if ( v3 )
- hostile_org_count += 2;
- }
- ++org_num_2;
- }
- while ( org_num_2 < 27 );
- buy_veh_fund = (org_veh_fund_init[v17] + hostile_org_count) * org_funds_->balance / 100;
- org_funds_->balance -= buy_veh_fund;
- polis_offset = 80 * (org_num_1 == 3); // for Megapol: 20*4 offset in array
- veh_count = 0;
- do
- {
- veh = *(&gen_org_veh_list[make_random(19)] + polis_offset);// note: &gen_org_veh_list[make_random(19) + polic_offset]
- v8 = org_num + 2 * veh;
- if ( *(veh_park + v8) < veh_lim[veh] )
- {
- price = veh_economic[veh].current_price;
- if ( buy_veh_fund >= price )
- {
- buy_veh_fund -= price;
- ++*(veh_park + v8);
- }
- }
- ++veh_count;
- }
- while ( veh_count < 50 );
- org_num_1 = v7 + 1;
- ++v17;
- org_funds_->balance += buy_veh_fund;
- result = org_num + 68;
- ++org_funds_;
- org_num += 68;
- }
- while ( org_num_1 < 27 );
- org__ = 0;
- org_funds = save_funding; // this part not used !!! (combat_value not used in game)
- v19 = 0;
- do
- {
- org_funds->combat_value = 0;
- if ( org__ != 1 )
- {
- v13 = &veh_struct;
- veh_num = 0;
- do
- {
- if ( *v13 >> 16 != -1 && *(v13 + 298) >> 16 == org__ )// -1=does not exist; (v13 + 298)=owner
- org_funds->combat_value += init_craft_data[*(v13 + 2) >> 16].agressivenes;
- ++veh_num;
- v13 = (v13 + 630);
- }
- while ( veh_num < 80 );
- result = 0;
- do
- {
- v15 = 2 * result;
- v16 = result++;
- org_funds->combat_value += *(&veh_park[v19] + v15) * init_craft_data[v16].agressivenes;
- }
- while ( result < 34 );
- }
- ++org__;
- ++org_funds;
- v19 += 34;
- }
- while ( org__ < 27 );
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement