shithub: cstory

Download patch

ref: a711b34de7ee7442b8f89f7ff5f73096ef7f8aeb
parent: 106f81130c90d2cfd0da260bf131e278a5715072
parent: 983dad37f81136f5060e61205a51f3eb2568df6c
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sun May 12 15:56:25 EDT 2019

Merge pull request #29 from GabrielRavier/addCommentsToBosses

Add comments to bosses

--- a/src/BossBallos.cpp
+++ b/src/BossBallos.cpp
@@ -142,6 +142,7 @@
 	switch (npc->act_no)
 	{
 		case 0:
+			// Initialize main boss
 			npc->act_no = 1;
 			npc->cond = 0x80;
 			npc->exp = 1;
@@ -159,6 +160,7 @@
 			npc->code_event = 1000;
 			npc->life = 800;
 
+			// Initialize eyes
 			gBoss[1].cond = 0x90;
 			gBoss[1].direct = 0;
 			gBoss[1].bits = 8;
@@ -175,6 +177,7 @@
 			gBoss[2] = gBoss[1];
 			gBoss[2].direct = 2;
 
+			// Initialize the body
 			gBoss[3].cond = 0x90;
 			gBoss[3].bits = 0xD;
 			gBoss[3].view.front = 0x7800;
--- a/src/BossFrog.cpp
+++ b/src/BossFrog.cpp
@@ -10,6 +10,7 @@
 #include "Sound.h"
 #include "Triangle.h"
 
+// Balfrog's mouth
 static void ActBossChar02_01(void)
 {
 	NPCHAR *boss;
@@ -84,6 +85,7 @@
 	}
 }
 
+// Main boss AI
 void ActBossChar_Frog(void)
 {
 	int i;
@@ -91,6 +93,7 @@
 	int ym;
 	int xm;
 
+	// Rects 1-4 are for when Balfrog is a frog, 5-8 for when he reverts and goes into the ceiling
 	RECT rcLeft[9] = {
 		{0, 0, 0, 0},
 		{0, 48, 80, 112},