Skip to content

Commit

Permalink
Merge pull request #87 from MrPolymorph/d_a_kytag06
Browse files Browse the repository at this point in the history
[Actor] d_a_kytag06 OK - Failing Checksum
  • Loading branch information
magcius authored Sep 28, 2023
2 parents 4ed4bf3 + 0712ebb commit 790e20e
Showing 1 changed file with 23 additions and 30 deletions.
53 changes: 23 additions & 30 deletions src/d/actor/d_a_kytag06.cpp
Original file line number Diff line number Diff line change
@@ -1,69 +1,62 @@
//
// Generated by dtk
// Translation Unit: d_a_kytag06.cpp
//

/**
* d_a_kytag06.cpp
*/
#include "JSystem/JKernel/JKRHeap.h"
#include "f_op/f_op_actor.h"
#include "f_op/f_op_actor_mng.h"
#include "d/d_com_inf_game.h"
#include "d/d_kankyo.h"
#include "d/d_kankyo_wether.h"
#include "d/d_npc.h"
#include "d/d_procname.h"
#include "dolphin/types.h"

struct kytag06_class : fopAc_ac_c {
class kytag06_class : public fopAc_ac_c {
public:
/* 0x290 */ int field_0x290;
/* 0x294 */ float field_0x294;
};

const float mfloat_4090 = 21.12f;

/* 00000078-00000080 .text daKytag06_Draw__FP13kytag06_class */
static bool daKytag06_Draw(kytag06_class*) {
return true;
}

/* 00000080-00000194 .text daKytag06_Execute__FP13kytag06_class */
BOOL daKytag06_Execute(kytag06_class* i_this) {
/* Nonmatching */
int iVar1 = 1;
static BOOL daKytag06_Execute(kytag06_class* i_this) {
f32 time;
int date;

if (g_dComIfG_gameInfo.play.mEvtCtrl.mMode == 0) {
return 1;
}
if(dComIfGp_evmng_startCheck("ARRIVAL_BRK") == 0) {
return 1;
}
u16 date = dComIfGs_getDate();
if (90.0f >= dComIfGs_getTime() && dComIfGs_getTime() < 342.0f) {
dComIfGs_setTime(dComIfGs_getTime() + 0.05f);
dComIfGs_setDate(date);

time = dComIfGs_getTime();
date = dComIfGs_getDate();
if (time >= 90.0f && time < 345) {
time += 0.05f;
}
dComIfGs_setTime(time);
dComIfGs_setDate(date);

dKy_change_colpat(iVar1);
iVar1 = i_this->field_0x294 * 250.0f;
if (iVar1 > g_env_light.mRainCount) {
dKyw_rain_set(iVar1);
dKy_change_colpat(1);
date = i_this->field_0x294 * 250.0f;
if (date > g_env_light.mRainCount) {
dKyw_rain_set(date);
}
g_env_light.mThunderEff.mMode = 1;
cLib_addCalc(&i_this->field_0x294, 1.0f, 0.1f, 0.001f, 0.0001);
return 1;
}

/* 00000194-0000019C .text daKytag06_IsDelete__FP13kytag06_class */
static bool daKytag06_IsDelete(kytag06_class*) {
static BOOL daKytag06_IsDelete(kytag06_class*) {
return true;
}

/* 0000019C-000001A4 .text daKytag06_Delete__FP13kytag06_class */
static bool daKytag06_Delete(kytag06_class*) {
static BOOL daKytag06_Delete(kytag06_class*) {
return true;
}

/* 000001A4-00000224 .text daKytag06_Create__FP10fopAc_ac_c */
static int daKytag06_Create(fopAc_ac_c* i_this) {
kytag06_class* tag = (kytag06_class*)i_this;
int var;
Expand All @@ -80,15 +73,15 @@ static int daKytag06_Create(fopAc_ac_c* i_this) {
return var;
}

static actor_method_class l_kytag06__Method = {
static actor_method_class l_daKytag06_Method = {
(process_method_func)daKytag06_Execute,
(process_method_func)daKytag06_Draw,
(process_method_func)daKytag06_IsDelete,
(process_method_func)daKytag06_Delete,
(process_method_func)daKytag06_Create,
};

extern actor_process_profile_definition g_profile_RECTANGLE = {
extern actor_process_profile_definition g_profile_KYTAG06 = {
fpcLy_CURRENT_e,
7,
fpcLy_CURRENT_e,
Expand All @@ -99,7 +92,7 @@ extern actor_process_profile_definition g_profile_RECTANGLE = {
0,
&g_fopAc_Method.base,
0xA6,
&l_kytag06__Method,
&l_daKytag06_Method,
0x00044000,
fopAc_ACTOR_e,
fopAc_CULLBOX_0_e,
Expand Down

0 comments on commit 790e20e

Please sign in to comment.