project_files/HedgewarsMobile/Classes/CreationChamber.m
changeset 4945 541d35d1f2e8
parent 4607 7f683c2357a0
child 4950 941f17b2dd9f
equal deleted inserted replaced
4944:e43a3da2fc22 4945:541d35d1f2e8
    73     }
    73     }
    74 
    74 
    75     NSDictionary *theWeapon = nil;
    75     NSDictionary *theWeapon = nil;
    76     switch (type) {
    76     switch (type) {
    77         default: //default
    77         default: //default
    78             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
    78             theWeapon = [[NSDictionary alloc] initWithObjects:
    79                          @"939192942219912103223511100120100000021111010101112",@"ammostore_initialqt",
    79                          [NSArray arrayWithObjects:
    80                          @"040504054160065554655446477657666666615551010111541",@"ammostore_probability",
    80                           @"93919294221991210322351110012010000002111101010111299",
    81                          @"000000000000020550000004000700400000000020000000060",@"ammostore_delay",
    81                           @"04050405416006555465544647765766666661555101011154111",
    82                          @"131111031211111112311411111111111111121111110111112",@"ammostore_crate", nil];
    82                           @"00000000000002055000000400070040000000002000000006000",
       
    83                           @"13111103121111111231141111111111111112111111011111211",
       
    84                           nil]
       
    85                                                       forKeys: [NSArray arrayWithObjects:
       
    86                                                                 @"ammostore_initialqt",
       
    87                                                                 @"ammostore_probability",
       
    88                                                                 @"ammostore_delay",
       
    89                                                                 @"ammostore_crate", nil]];
    83             break;
    90             break;
    84         case 1: //crazy
    91         case 1: //crazy
    85             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
    92             theWeapon = [[NSDictionary alloc] initWithObjects:
    86                          @"999999999999999999299999999999999929999999990999999",@"ammostore_initialqt",
    93                          [NSArray arrayWithObjects:
    87                          @"111111011111111111111111111111111111111111110111111",@"ammostore_probability",
    94                           @"99999999999999999929999999999999992999999999099999922",
    88                          @"000000000000000000000000000000000000000000000000000",@"ammostore_delay",
    95                           @"11111101111111111111111111111111111111111111011111111",
    89                          @"131111031211111112311411111111111111121111010111111",@"ammostore_crate", nil];
    96                           @"00000000000000000000000000000000000000000000000000000",
       
    97                           @"13111103121111111231141111111111111112111101011111111",
       
    98                           nil]
       
    99                                                       forKeys: [NSArray arrayWithObjects:
       
   100                                                                 @"ammostore_initialqt",
       
   101                                                                 @"ammostore_probability",
       
   102                                                                 @"ammostore_delay",
       
   103                                                                 @"ammostore_crate", nil]];
    90             break;
   104             break;
    91         case 2: //pro mode
   105         case 2: //pro mode
    92             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
   106             theWeapon = [[NSDictionary alloc] initWithObjects:
    93                          @"909000900000000000000900000000000000000000000000000",@"ammostore_initialqt",
   107                          [NSArray arrayWithObjects:
    94                          @"000000000000000000000000000000000000000000000000000",@"ammostore_probability",
   108                           @"90900090000000000000090000000000000000000000000000000",
    95                          @"000000000000020550000004000700400000000020000000000",@"ammostore_delay",
   109                           @"00000000000000000000000000000000000000000000000000000",
    96                          @"111111111111111111111111111111111111111110010111111",@"ammostore_crate", nil];
   110                           @"00000000000002055000000400070040000000002000000000000",
       
   111                           @"11111111111111111111111111111111111111111001011111111",
       
   112                           nil]
       
   113                                                       forKeys: [NSArray arrayWithObjects:
       
   114                                                                 @"ammostore_initialqt",
       
   115                                                                 @"ammostore_probability",
       
   116                                                                 @"ammostore_delay",
       
   117                                                                 @"ammostore_crate", nil]];
    97             break;
   118             break;
    98         case 3: //shoppa
   119         case 3: //shoppa
    99             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
   120             theWeapon = [[NSDictionary alloc] initWithObjects:
   100                          @"000000990000000000000000000000000000000000000000000",@"ammostore_initialqt",
   121                          [NSArray arrayWithObjects:
   101                          @"444441004424440221011212122242200000000200040001001",@"ammostore_probability",
   122                           @"00000099000000000000000000000000000000000000000000000",
   102                          @"000000000000000000000000000000000000000000000000000",@"ammostore_delay",
   123                           @"44444100442444022101121212224220000000020004000100111",
   103                          @"111111111111111111111111111111111111111110110111111",@"ammostore_crate", nil];
   124                           @"00000000000000000000000000000000000000000000000000000",
       
   125                           @"11111111111111111111111111111111111111111011011111111",
       
   126                           nil]
       
   127                                                       forKeys: [NSArray arrayWithObjects:
       
   128                                                                 @"ammostore_initialqt",
       
   129                                                                 @"ammostore_probability",
       
   130                                                                 @"ammostore_delay",
       
   131                                                                 @"ammostore_crate", nil]];
   104             break;
   132             break;
   105         case 4: //clean slate
   133         case 4: //clean slate
   106             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
   134             theWeapon = [[NSDictionary alloc] initWithObjects:
   107                          @"101000900001000001100000000000000000000000000000100",@"ammostore_initialqt",
   135                          [NSArray arrayWithObjects:
   108                          @"040504054160065554655446477657666666615551010111541",@"ammostore_probability",
   136                           @"10100090000100000110000000000000000000000000000010000",
   109                          @"000000000000020550000004000700400000000020000000000",@"ammostore_delay",
   137                           @"04050405416006555465544647765766666661555101011154111",
   110                          @"131111031211111112311411111111111111121111110111111",@"ammostore_crate", nil];
   138                           @"00000000000000000000000000000000000000000000000000000",
       
   139                           @"13111103121111111231141111111111111112111111011111111",
       
   140                           nil]
       
   141                                                       forKeys: [NSArray arrayWithObjects:
       
   142                                                                 @"ammostore_initialqt",
       
   143                                                                 @"ammostore_probability",
       
   144                                                                 @"ammostore_delay",
       
   145                                                                 @"ammostore_crate", nil]];
   111             break;
   146             break;
   112         case 5: //minefield
   147         case 5: //minefield
   113             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
   148             theWeapon = [[NSDictionary alloc] initWithObjects:
   114                          @"000000990009000000030000000000000000000000000000000",@"ammostore_initialqt",
   149                          [NSArray arrayWithObjects:
   115                          @"000000000000000000000000000000000000000000000000000",@"ammostore_probability",
   150                           @"00000099000900000003000000000000000000000000000000000",
   116                          @"000000000000020550000004000700400000000020000000000",@"ammostore_delay",
   151                           @"00000000000000000000000000000000000000000000000000000",
   117                          @"111111111111111111111111111111111111111111110111111",@"ammostore_crate", nil];
   152                           @"00000000000002055000000400070040000000002000000006000",
       
   153                           @"11111111111111111111111111111111111111111111011111111",
       
   154                           nil]
       
   155                                                       forKeys: [NSArray arrayWithObjects:
       
   156                                                                 @"ammostore_initialqt",
       
   157                                                                 @"ammostore_probability",
       
   158                                                                 @"ammostore_delay",
       
   159                                                                 @"ammostore_crate", nil]];
   118             break;
   160             break;
   119         case 6: //thinking with portals
   161         case 6: //thinking with portals
   120             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
   162             theWeapon = [[NSDictionary alloc] initWithObjects:
   121                          @"900000900200000000210000000000000011000009000000000",@"ammostore_initialqt",
   163                          [NSArray arrayWithObjects:
   122                          @"040504054160065554655446477657666666615551010111541",@"ammostore_probability",
   164                           @"90000090020000000021000000000000001100000900000000000",
   123                          @"000000000000020550000004000700400000000020000000060",@"ammostore_delay",
   165                           @"04050405416006555465544647765766666661555101011154111",
   124                          @"131111031211111112311411111111111111121111110111111",@"ammostore_crate", nil];
   166                           @"00000000000002055000000400070040000000002000000006000",
       
   167                           @"13111103121111111231141111111111111112111111011111111",
       
   168                           nil]
       
   169                                                       forKeys: [NSArray arrayWithObjects:
       
   170                                                                 @"ammostore_initialqt",
       
   171                                                                 @"ammostore_probability",
       
   172                                                                 @"ammostore_delay",
       
   173                                                                 @"ammostore_crate", nil]];
   125             break;
   174             break;
   126     }
   175     }
   127 
   176 
   128     NSString *weaponFile = [[NSString alloc] initWithFormat:@"%@/%@.plist", weaponsDirectory, nameWithoutExt];
   177     NSString *weaponFile = [[NSString alloc] initWithFormat:@"%@/%@.plist", weaponsDirectory, nameWithoutExt];
   129 
   178