project_files/HedgewarsMobile/Classes/CommodityFunctions.m
changeset 4149 51200479f9d8
parent 4115 222b8016c773
child 4208 dd54999c2822
equal deleted inserted replaced
4148:eaff5615f976 4149:51200479f9d8
    73 
    73 
    74     NSDictionary *theWeapon = nil;
    74     NSDictionary *theWeapon = nil;
    75     switch (type) {
    75     switch (type) {
    76         case 0: //default
    76         case 0: //default
    77             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
    77             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
    78                          @"9391929422199121032235111001201000000211110101010",@"ammostore_initialqt",
    78                          @"9391929422199121032235111001201000000211110101011",@"ammostore_initialqt",
    79                          @"0405040541600655546554464776576666666155510101110",@"ammostore_probability",
    79                          @"0405040541600655546554464776576666666155510101117",@"ammostore_probability",
    80                          @"0000000000000205500000040007004000000000200000000",@"ammostore_delay",
    80                          @"0000000000000205500000040007004000000000200000000",@"ammostore_delay",
    81                          @"1311110312111111123114111111111111111211111101110",@"ammostore_crate", nil];
    81                          @"1311110312111111123114111111111111111211111101111",@"ammostore_crate", nil];
    82             break;
    82             break;
    83         case 1: //crazy
    83         case 1: //crazy
    84             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
    84             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
    85                          @"9999999999999999992999999999999999299999999909990",@"ammostore_initialqt",
    85                          @"9999999999999999992999999999999999299999999909999",@"ammostore_initialqt",
    86                          @"1111110111111111111111111111111111111111111101110",@"ammostore_probability",
    86                          @"1111110111111111111111111111111111111111111101111",@"ammostore_probability",
    87                          @"0000000000000000000000000000000000000000000000000",@"ammostore_delay",
    87                          @"0000000000000000000000000000000000000000000000000",@"ammostore_delay",
    88                          @"1311110312111111123114111111111111111211110101110",@"ammostore_crate", nil];
    88                          @"1311110312111111123114111111111111111211110101111",@"ammostore_crate", nil];
    89             break;
    89             break;
    90         case 2: //pro mode
    90         case 2: //pro mode
    91             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
    91             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
    92                          @"9090009000000000000009000000000000000000000000000",@"ammostore_initialqt",
    92                          @"9090009000000000000009000000000000000000000000000",@"ammostore_initialqt",
    93                          @"0000000000000000000000000000000000000000000000000",@"ammostore_probability",
    93                          @"0000000000000000000000000000000000000000000000000",@"ammostore_probability",
    94                          @"0000000000000205500000040007004000000000200000000",@"ammostore_delay",
    94                          @"0000000000000205500000040007004000000000200000000",@"ammostore_delay",
    95                          @"1111111111111111111111111111111111111111100101110",@"ammostore_crate", nil];
    95                          @"1111111111111111111111111111111111111111100101111",@"ammostore_crate", nil];
    96             break;
    96             break;
    97         case 3: //shoppa
    97         case 3: //shoppa
    98             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
    98             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
    99                          @"0000009900000000000000000000000000000000000000000",@"ammostore_initialqt",
    99                          @"0000009900000000000000000000000000000000000000000",@"ammostore_initialqt",
   100                          @"4444410044244402210112121222422000000002000400010",@"ammostore_probability",
   100                          @"4444410044244402210112121222422000000002000400010",@"ammostore_probability",
   101                          @"0000000000000000000000000000000000000000000000000",@"ammostore_delay",
   101                          @"0000000000000000000000000000000000000000000000000",@"ammostore_delay",
   102                          @"1111111111111111111111111111111111111111101101110",@"ammostore_crate", nil];
   102                          @"1111111111111111111111111111111111111111101101111",@"ammostore_crate", nil];
   103             break;
   103             break;
   104         case 4: //basketball
   104         case 4: //clean slate
   105             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
   105             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
   106                          @"9391929422199121032235111001201000000211110101000",@"ammostore_initialqt",
   106                          @"1010009000010000011000000000000000000000000000001",@"ammostore_initialqt",
   107                          @"0000000000000000000000000000000000000000000000000",@"ammostore_probability",
   107                          @"0405040541600655546554464776576666666155510101117",@"ammostore_probability",
   108                          @"0000000000000005500000040007004000000000200000000",@"ammostore_delay",
   108                          @"0000000000000205500000040007004000000000200000000",@"ammostore_delay",
   109                          @"1111111111111111111111111111111111111111111101110",@"ammostore_crate", nil];
   109                          @"1311110312111111123114111111111111111211111101111",@"ammostore_crate", nil];
   110             break;
   110             break;
   111         case 5: //minefield
   111         case 5: //minefield
   112             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
   112             theWeapon = [[NSDictionary alloc] initWithObjectsAndKeys:
   113                          @"0000009900090000000300000000000000000000000000000",@"ammostore_initialqt",
   113                          @"0000009900090000000300000000000000000000000000000",@"ammostore_initialqt",
   114                          @"0000000000000000000000000000000000000000000000000",@"ammostore_probability",
   114                          @"0000000000000000000000000000000000000000000000000",@"ammostore_probability",
   115                          @"0000000000000205500000040007004000000000200000000",@"ammostore_delay",
   115                          @"0000000000000205500000040007004000000000200000000",@"ammostore_delay",
   116                          @"1111111111111111111111111111111111111111111101110",@"ammostore_crate", nil];
   116                          @"1111111111111111111111111111111111111111111101111",@"ammostore_crate", nil];
   117             break;
   117             break;
   118         default:
   118         default:
   119             NSLog(@"Nope");
   119             NSLog(@"Nope");
   120             break;
   120             break;
   121     }
   121     }
   141                                    [NSNumber numberWithInt:100],      //damagemodifier
   141                                    [NSNumber numberWithInt:100],      //damagemodifier
   142                                    [NSNumber numberWithInt:45],       //turntime
   142                                    [NSNumber numberWithInt:45],       //turntime
   143                                    [NSNumber numberWithInt:100],      //initialhealth
   143                                    [NSNumber numberWithInt:100],      //initialhealth
   144                                    [NSNumber numberWithInt:15],       //suddendeathtimeout
   144                                    [NSNumber numberWithInt:15],       //suddendeathtimeout
   145                                    [NSNumber numberWithInt:5],        //cratedrops
   145                                    [NSNumber numberWithInt:5],        //cratedrops
       
   146                                    [NSNumber numberWithInt:35],       //healthprob
       
   147                                    [NSNumber numberWithInt:25],       //healthamount
   146                                    [NSNumber numberWithInt:3],        //minestime
   148                                    [NSNumber numberWithInt:3],        //minestime
   147                                    [NSNumber numberWithInt:4],        //mines
   149                                    [NSNumber numberWithInt:4],        //minesnumber
   148                                    [NSNumber numberWithInt:0],        //dudmines
   150                                    [NSNumber numberWithInt:0],        //dudmines
   149                                    [NSNumber numberWithInt:2],        //explosives
   151                                    [NSNumber numberWithInt:2],        //explosives
   150                                    nil];
   152                                    nil];
   151     
   153     
   152     NSMutableArray *gamemodArray= [[NSMutableArray alloc] initWithObjects:
   154     NSMutableArray *gamemodArray= [[NSMutableArray alloc] initWithObjects: