mirror of
https://github.com/zeldaret/tmc
synced 2026-06-05 11:18:43 -04:00
45 lines
998 B
C
45 lines
998 B
C
#include "object.h"
|
|
|
|
extern void (*MineralWaterSourceActionFuncs[])(Entity*);
|
|
|
|
typedef struct {
|
|
u8 field_0x00;
|
|
u8 field_0x01;
|
|
u8 field_0x02;
|
|
u8 field_0x03;
|
|
} UnkStruct_MineralWater;
|
|
|
|
extern UnkStruct_MineralWater MineralWaterSourceParameters[];
|
|
|
|
void MineralWaterSource(Entity* this) {
|
|
MineralWaterSourceActionFuncs[this->action](this);
|
|
}
|
|
|
|
void MineralWaterSource_Init(Entity* this) {
|
|
UnkStruct_MineralWater* unknownParameters;
|
|
|
|
if (AllocMutableHitbox(this) == NULL) {
|
|
return;
|
|
}
|
|
|
|
unknownParameters = &MineralWaterSourceParameters[this->type];
|
|
|
|
this->type2 = unknownParameters->field_0x00;
|
|
this->hurtType = unknownParameters->field_0x03;
|
|
|
|
this->hitbox->width = unknownParameters->field_0x01;
|
|
this->hitbox->height = unknownParameters->field_0x02;
|
|
|
|
COLLISION_ON(this);
|
|
|
|
this->collisionFlags = 7;
|
|
this->hitType = 145;
|
|
this->flags2 = 2;
|
|
|
|
this->action = 1;
|
|
}
|
|
|
|
void sub_080973DC(Entity* this) {
|
|
this->contactFlags = 0;
|
|
}
|