Jump to content
lekkereten

Merge killmonster & killmonster2

Recommended Posts

I was looking at the monster command and some lines¹ gave me the idea to merge killmonster and killmonster2 into one function, and use killmonster2 as duplicate of killmonster, just like monstersmall/monsterbig and monster.

Patch:

killmonster(2)_merge.patch

[¹]

	if (strcmp(command+1, "monstersmall") == 0)
	strcpy(eventname, "2");
else if (strcmp(command+1, "monsterbig") == 0)
	strcpy(eventname, "4");

  • Upvote 3
Link to comment
Share on other sites

but those two have different functions :/ killmonster with drops and killmonster2 without drops

seems like you did not took a look at the patch, +1 to this merge!

Link to comment
Share on other sites



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.