Back to index

freedink-data  1.08.20080920
EMAKE.c
Go to the documentation of this file.
00001 //make, contains info on making items given after a monster dies
00002 
00003 void medium( void )
00004 {
00005 int &mcrap = random(20,1);
00006 
00007 if (&mcrap == 1)
00008  {
00009  //lets give 'em a small heart
00010  int &crap = create_sprite(&save_x, &save_y, 6, 54, 1);
00011  sp_script(&crap, "sheart");
00012  return;
00013  }
00014 
00015 if (&mcrap == 2)
00016  {
00017  //lets give 'em a large heart
00018  int &crap = create_sprite(&save_x, &save_y, 6, 54, 1);
00019  sp_script(&crap, "heart");
00020  return;
00021  }
00022 
00023 
00024 
00025 
00026 if (&mcrap == 3)
00027 {
00028 
00029 
00030     &mcrap = random(3,1);
00031 
00032         if (&mcrap == 1)
00033          {
00034         //give them food type 1
00035         int &crap = create_sprite(&save_x, &save_y, 6, 421, 1);
00036         sp_script(&crap, "sfood");
00037         }
00038         if (&mcrap == 2)
00039         
00040         {
00041         //give them food type 2
00042         int &crap = create_sprite(&save_x, &save_y, 6, 421, 2);
00043         sp_script(&crap, "sfood");
00044         }
00045         
00046         if (&mcrap == 3)
00047         
00048         {
00049         //give them food type 3
00050         int &crap = create_sprite(&save_x, &save_y, 6, 421, 7);
00051         sp_script(&crap, "sfood");
00052         }
00053         
00054         if (&mcrap == 4)
00055         
00056         {
00057         //give them food type 4
00058         int &crap = create_sprite(&save_x, &save_y, 6, 421, 8);
00059         sp_script(&crap, "sfood");
00060         }
00061    return;
00062 }
00063 
00064  //lets give 'em a random amount of gold
00065  int &crap = create_sprite(&save_x, &save_y, 6, 178, 4);
00066  sp_script(&crap, "mgold");
00067 
00068 
00069 }
00070 
00071 
00072 void large( void )
00073 {
00074 int &mcrap = random(20,1);
00075 
00076 if (&mcrap == 2)
00077  {
00078  //lets give 'em a large heart
00079  int &crap = create_sprite(&save_x, &save_y, 6, 54, 1);
00080  sp_script(&crap, "heart");
00081  return;
00082  }
00083 
00084 
00085 
00086 
00087 if (&mcrap == 3)
00088 {
00089 
00090 
00091     &mcrap = random(3,1);
00092 
00093         if (&mcrap == 1)
00094          {
00095         //give them food type 1
00096         int &crap = create_sprite(&save_x, &save_y, 6, 421, 1);
00097         sp_script(&crap, "sfood");
00098         }
00099         if (&mcrap == 2)
00100         
00101         {
00102         //give them food type 2
00103         int &crap = create_sprite(&save_x, &save_y, 6, 421, 2);
00104         sp_script(&crap, "sfood");
00105         }
00106         
00107         if (&mcrap == 3)
00108         
00109         {
00110         //give them food type 3
00111         int &crap = create_sprite(&save_x, &save_y, 6, 421, 7);
00112         sp_script(&crap, "sfood");
00113         }
00114         
00115         if (&mcrap == 4)
00116         
00117         {
00118         //give them food type 4
00119         int &crap = create_sprite(&save_x, &save_y, 6, 421, 8);
00120         sp_script(&crap, "sfood");
00121         }
00122    return;
00123 }
00124 
00125  //lets give 'em a random amount of gold
00126  int &crap = create_sprite(&save_x, &save_y, 6, 178, 4);
00127  sp_script(&crap, "lgold");
00128 
00129 
00130 }
00131 
00132 
00133 void xlarge( void )
00134 {
00135 int &mcrap = random(20,1);
00136 
00137 if (&mcrap == 2)
00138  {
00139  //lets give 'em a large heart
00140  int &crap = create_sprite(&save_x, &save_y, 6, 54, 1);
00141  sp_script(&crap, "heart");
00142  return;
00143  }
00144 
00145 
00146 
00147 
00148 if (&mcrap == 3)
00149 {
00150 
00151 
00152     &mcrap = random(3,1);
00153 
00154         if (&mcrap == 1)
00155          {
00156         //give them food type 1
00157         int &crap = create_sprite(&save_x, &save_y, 6, 421, 1);
00158         sp_script(&crap, "sfood");
00159         }
00160         if (&mcrap == 2)
00161         
00162         {
00163         //give them food type 2
00164         int &crap = create_sprite(&save_x, &save_y, 6, 421, 2);
00165         sp_script(&crap, "sfood");
00166         }
00167         
00168         if (&mcrap == 3)
00169         
00170         {
00171         //give them food type 3
00172         int &crap = create_sprite(&save_x, &save_y, 6, 421, 7);
00173         sp_script(&crap, "sfood");
00174         }
00175         
00176         if (&mcrap == 4)
00177         
00178         {
00179         //give them food type 4
00180         int &crap = create_sprite(&save_x, &save_y, 6, 421, 8);
00181         sp_script(&crap, "sfood");
00182         }
00183    return;
00184 }
00185 debug("Making gold200");
00186  //lets give 'em a random amount of gold
00187  int &crap = create_sprite(&save_x, &save_y, 6, 178, 4);
00188  sp_script(&crap, "gold200");
00189 
00190 
00191 }
00192 
00193 
00194 void small( void )
00195 {
00196 int &mcrap = random(3,1);
00197 if (&mcrap == 1)
00198  {
00199  //lets give 'em a small heart
00200  int &crap = create_sprite(&save_x, &save_y, 6, 54, 1);
00201  sp_script(&crap, "sheart");
00202  return;
00203  }
00204 
00205 return;
00206 }
00207 
00208