]> jfr.im git - irc/gameservirc.git/commitdiff
Added a boss Monster object for future use.
authorkainazzzo <redacted>
Thu, 18 Mar 2004 04:36:42 +0000 (04:36 +0000)
committerkainazzzo <redacted>
Thu, 18 Mar 2004 04:36:42 +0000 (04:36 +0000)
git-svn-id: https://svn.code.sf.net/p/gameservirc/code/trunk@133 bc333340-6410-0410-a689-9d09f3c113fa

gameserv/extern.h
gameserv/gameserv.cpp
gameserv/tcpclient.cpp

index 1452a7e72e4e086aa652bfa74f4df3639af1d60b..8905247875411c50ce828da1447399f1fa1e68fa 100644 (file)
@@ -65,6 +65,7 @@ E int forestfights;
 
 E List<aClient> clients;
 E List<aClient> players;
+E Monster boss;
 
 /** List search functions **/
 E aClient *find(char *nick);
index 5c03a5975dc8302aa4d53b54dd849dff3675741a..fe88ad2c3701411e34fc27c84cfece4f068e7f35 100644 (file)
@@ -25,14 +25,6 @@ List<aClient> players;
 
 Monster *monsters[LEVELS][MONSTERS];   // Monsters per level. Total = MONSTERS * LEVELS
 Monster boss;                          // The boss monster
-strcpy(boss.name, "Red Dragon");
-strcpy(boss.weapon, "Breath of Unholy Fire");
-boss.strength = 6667;
-boss.gold = 2000000000;
-boss.exp = 2000000000;
-strcpy(boss.death, "You finally snuff out the deadly murderous \"
-    "dragon's dark flames. You have freed the land of its terror \"
-    "filled reign from above!");
 
 Monster *masters[LEVELS];              // A master for each level
 
index 7e28b16532f96a233bb7e93ac246f1b9df818607..3a937797edd69b96b6fd142bf5086e8f3eade4d9 100644 (file)
@@ -146,6 +146,15 @@ int main(int argc, char *argv[])
       log("Server: %s",buffer);
   #endif
 
+  strcpy(boss.name, "Red Dragon");
+  strcpy(boss.weapon, "Breath of Unholy Fire");
+  boss.strength = 6667;
+  boss.gold = 2000000000;
+  boss.exp = 2000000000;
+  strcpy(boss.death, "You finally snuff out the deadly murderous "\
+    "dragon's dark flames. You have freed the land of its terror "\
+    "filled reign from above!");
+
   init_masters();
   load_gs_dbase();
   load_day();