Browse Source

Added Lasagna to atcommand go locations

Akkarinage 7 years ago
parent
commit
d9d9042b87
3 changed files with 5 additions and 1 deletions
  1. 1 1
      conf/help.txt
  2. 1 0
      src/common/mapindex.h
  3. 3 0
      src/map/atcommand.c

+ 1 - 1
conf/help.txt

@@ -42,7 +42,7 @@ go: "Params: <city name|number>\n" "Warps you to a city.\n"
 	"  -1: (Memo point 0)  16: prison/jail     33: malangdo island\n"
 	"   0: prontera              17: jawaii             34: malaya port\n"
 	"   1: morocc                18: ayothaya       35: eclage\n"
-	"   2: geffen                  19: einbroch\n"
+	"   2: geffen                  19: einbroch       36: lasagna\n"
 	"   3: payon                  20: lighthalzen\n"
 	"   4: alberta                 21: einbech\n"
 	"   5: izlude                   22: hugel\n"

+ 1 - 0
src/common/mapindex.h

@@ -54,6 +54,7 @@ extern "C" {
 #define MAP_MALAYA "malaya"
 #define MAP_ECLAGE "eclage"
 #define MAP_ECLAGE_IN "ecl_in01"
+#define MAP_LASAGNA "lasagna"
 
 const char* mapindex_getmapname(const char* string, char* output);
 const char* mapindex_getmapname_ext(const char* string, char* output);

+ 3 - 0
src/map/atcommand.c

@@ -1917,6 +1917,7 @@ ACMD_FUNC(go)
 		{ MAP_MALANGDO,    140, 114 }, // 33=Malangdo Island
 		{ MAP_MALAYA,      242, 211 }, // 34=Malaya Port
 		{ MAP_ECLAGE,      110,  39 }, // 35=Eclage
+		{ MAP_LASAGNA,     193, 182 }, // 36=Lasagna
 	};
 
 	nullpo_retr(-1, sd);
@@ -2036,6 +2037,8 @@ ACMD_FUNC(go)
 		town = 34;
 	} else if (strncmp(map_name, "eclage", 3) == 0) {
 		town = 35;
+	} else if (strncmp(map_name, "lasagna", 2) == 0) {
+		town = 36;
 	}
 
 	if (town >= 0 && town < ARRAYLENGTH(data))