project_files/HedgewarsMobile/Classes/CreationChamber.m
changeset 4284 57a501a69e5f
parent 4281 e033cf015b2c
child 4463 1fe77f2bc1d1
equal deleted inserted replaced
4281:e033cf015b2c 4284:57a501a69e5f
    74 
    74 
    75     NSDictionary *theWeapon = nil;
    75     NSDictionary *theWeapon = nil;
    76     switch (type) {
    76     switch (type) {
    77         case 0: //default
    77         case 0: //default
    78             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
    78             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
    79                          @"9391929422199121032235111001201000000211110101011",@"ammostore_initialqt",
    79                          @"93919294221991210322351110012010000002111101010111",@"ammostore_initialqt",
    80                          @"0405040541600655546554464776576666666155510101117",@"ammostore_probability",
    80                          @"04050405416006555465544647765766666661555101011154",@"ammostore_probability",
    81                          @"0000000000000205500000040007004000000000200000000",@"ammostore_delay",
    81                          @"00000000000002055000000400070040000000002000000006",@"ammostore_delay",
    82                          @"1311110312111111123114111111111111111211111101111",@"ammostore_crate", nil];
    82                          @"13111103121111111231141111111111111112111111011111",@"ammostore_crate", nil];
    83             break;
    83             break;
    84         case 1: //crazy
    84         case 1: //crazy
    85             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
    85             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
    86                          @"9999999999999999992999999999999999299999999909999",@"ammostore_initialqt",
    86                          @"99999999999999999929999999999999992999999999099999",@"ammostore_initialqt",
    87                          @"1111110111111111111111111111111111111111111101111",@"ammostore_probability",
    87                          @"11111101111111111111111111111111111111111111011111",@"ammostore_probability",
    88                          @"0000000000000000000000000000000000000000000000000",@"ammostore_delay",
    88                          @"00000000000000000000000000000000000000000000000000",@"ammostore_delay",
    89                          @"1311110312111111123114111111111111111211110101111",@"ammostore_crate", nil];
    89                          @"13111103121111111231141111111111111112111101011111",@"ammostore_crate", nil];
    90             break;
    90             break;
    91         case 2: //pro mode
    91         case 2: //pro mode
    92             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
    92             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
    93                          @"9090009000000000000009000000000000000000000000000",@"ammostore_initialqt",
    93                          @"90900090000000000000090000000000000000000000000000",@"ammostore_initialqt",
    94                          @"0000000000000000000000000000000000000000000000000",@"ammostore_probability",
    94                          @"00000000000000000000000000000000000000000000000000",@"ammostore_probability",
    95                          @"0000000000000205500000040007004000000000200000000",@"ammostore_delay",
    95                          @"00000000000002055000000400070040000000002000000000",@"ammostore_delay",
    96                          @"1111111111111111111111111111111111111111100101111",@"ammostore_crate", nil];
    96                          @"11111111111111111111111111111111111111111001011111",@"ammostore_crate", nil];
    97             break;
    97             break;
    98         case 3: //shoppa
    98         case 3: //shoppa
    99             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
    99             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
   100                          @"0000009900000000000000000000000000000000000000000",@"ammostore_initialqt",
   100                          @"00000099000000000000000000000000000000000000000000",@"ammostore_initialqt",
   101                          @"4444410044244402210112121222422000000002000400010",@"ammostore_probability",
   101                          @"44444100442444022101121212224220000000020004000100",@"ammostore_probability",
   102                          @"0000000000000000000000000000000000000000000000000",@"ammostore_delay",
   102                          @"00000000000000000000000000000000000000000000000000",@"ammostore_delay",
   103                          @"1111111111111111111111111111111111111111101101111",@"ammostore_crate", nil];
   103                          @"11111111111111111111111111111111111111111011011111",@"ammostore_crate", nil];
   104             break;
   104             break;
   105         case 4: //clean slate
   105         case 4: //clean slate
   106             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
   106             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
   107                          @"1010009000010000011000000000000000000000000000001",@"ammostore_initialqt",
   107                          @"10100090000100000110000000000000000000000000000010",@"ammostore_initialqt",
   108                          @"0405040541600655546554464776576666666155510101117",@"ammostore_probability",
   108                          @"04050405416006555465544647765766666661555101011154",@"ammostore_probability",
   109                          @"0000000000000205500000040007004000000000200000000",@"ammostore_delay",
   109                          @"00000000000002055000000400070040000000002000000000",@"ammostore_delay",
   110                          @"1311110312111111123114111111111111111211111101111",@"ammostore_crate", nil];
   110                          @"13111103121111111231141111111111111112111111011111",@"ammostore_crate", nil];
   111             break;
   111             break;
   112         case 5: //minefield
   112         case 5: //minefield
   113             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
   113             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
   114                          @"0000009900090000000300000000000000000000000000000",@"ammostore_initialqt",
   114                          @"00000099000900000003000000000000000000000000000000",@"ammostore_initialqt",
   115                          @"0000000000000000000000000000000000000000000000000",@"ammostore_probability",
   115                          @"00000000000000000000000000000000000000000000000000",@"ammostore_probability",
   116                          @"0000000000000205500000040007004000000000200000000",@"ammostore_delay",
   116                          @"00000000000002055000000400070040000000002000000000",@"ammostore_delay",
   117                          @"1111111111111111111111111111111111111111111101111",@"ammostore_crate", nil];
   117                          @"11111111111111111111111111111111111111111111011111",@"ammostore_crate", nil];
       
   118             break;
       
   119         case 6: //thinking with portals
       
   120             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
       
   121                          @"90000090020000000021000000000000001100000900000000",@"ammostore_initialqt",
       
   122                          @"04050405416006555465544647765766666661555101011154",@"ammostore_probability",
       
   123                          @"00000000000002055000000400070040000000002000000006",@"ammostore_delay",
       
   124                          @"13111103121111111231141111111111111112111111011111",@"ammostore_crate", nil];
   118             break;
   125             break;
   119         default:
   126         default:
   120             NSLog(@"Nope");
   127             NSLog(@"Nope");
   121             break;
   128             break;
   122     }
   129     }
   174                                    [NSNumber numberWithBool:NO],      //disablelandobjects
   181                                    [NSNumber numberWithBool:NO],      //disablelandobjects
   175                                    [NSNumber numberWithBool:NO],      //aisurvival
   182                                    [NSNumber numberWithBool:NO],      //aisurvival
   176                                    [NSNumber numberWithBool:NO],      //infattack
   183                                    [NSNumber numberWithBool:NO],      //infattack
   177                                    [NSNumber numberWithBool:NO],      //resetweaps
   184                                    [NSNumber numberWithBool:NO],      //resetweaps
   178                                    [NSNumber numberWithBool:NO],      //perhogammo
   185                                    [NSNumber numberWithBool:NO],      //perhogammo
       
   186                                    [NSNumber numberWithBool:NO],      //nowind
   179                                    nil];
   187                                    nil];
   180     
   188     
   181     NSMutableDictionary *theScheme = [[NSMutableDictionary alloc] initWithObjectsAndKeys:
   189     NSMutableDictionary *theScheme = [[NSMutableDictionary alloc] initWithObjectsAndKeys:
   182                                       basicArray,@"basic",
   190                                       basicArray,@"basic",
   183                                       gamemodArray,@"gamemod",
   191                                       gamemodArray,@"gamemod",