mirror of
https://github.com/zeldaret/oot
synced 2026-07-07 22:11:24 -04:00
Colliders: elemType -> elemMaterial (#2189)
* elemType -> elemMaterial * format
This commit is contained in:
@@ -99,27 +99,21 @@ typedef struct ColliderElementDamageInfoACInit {
|
||||
/* 0x05 */ u8 defense; // Damage Resistance
|
||||
} ColliderElementDamageInfoACInit; // size = 0x08
|
||||
|
||||
/**
|
||||
* Affects the sound Link's sword makes when hitting it, hookability,
|
||||
* and possibly other things. It's definitely not flags, as all checks
|
||||
* are == or !=. Will probably need more actors decomped to truly
|
||||
* understand what this is.
|
||||
*/
|
||||
typedef enum ElementType {
|
||||
/* 0 */ ELEMTYPE_UNK0,
|
||||
/* 1 */ ELEMTYPE_UNK1,
|
||||
/* 2 */ ELEMTYPE_UNK2,
|
||||
/* 3 */ ELEMTYPE_UNK3,
|
||||
/* 4 */ ELEMTYPE_UNK4,
|
||||
/* 5 */ ELEMTYPE_UNK5,
|
||||
/* 6 */ ELEMTYPE_UNK6,
|
||||
/* 7 */ ELEMTYPE_UNK7
|
||||
} ElementType;
|
||||
typedef enum ElementMaterial {
|
||||
/* 0 */ ELEM_MATERIAL_UNK0,
|
||||
/* 1 */ ELEM_MATERIAL_UNK1,
|
||||
/* 2 */ ELEM_MATERIAL_UNK2,
|
||||
/* 3 */ ELEM_MATERIAL_UNK3,
|
||||
/* 4 */ ELEM_MATERIAL_UNK4,
|
||||
/* 5 */ ELEM_MATERIAL_UNK5,
|
||||
/* 6 */ ELEM_MATERIAL_UNK6,
|
||||
/* 7 */ ELEM_MATERIAL_UNK7
|
||||
} ElementMaterial;
|
||||
|
||||
typedef struct ColliderElement {
|
||||
/* 0x00 */ ColliderElementDamageInfoAT atDmgInfo; // Damage properties when acting as an AT collider
|
||||
/* 0x08 */ ColliderElementDamageInfoAC acDmgInfo; // Damage properties when acting as an AC collider
|
||||
/* 0x14 */ u8 elemType; // Affects sfx reaction when attacked by Link and hookability. Full purpose unknown.
|
||||
/* 0x14 */ u8 elemMaterial; // Affects sfx when attacked by Player, and interaction with hookshot and arrows.
|
||||
/* 0x15 */ u8 atElemFlags; // Information flags for AT collisions
|
||||
/* 0x16 */ u8 acElemFlags; // Information flags for AC collisions
|
||||
/* 0x17 */ u8 ocElemFlags; // Information flags for OC collisions
|
||||
@@ -130,7 +124,7 @@ typedef struct ColliderElement {
|
||||
} ColliderElement; // size = 0x28
|
||||
|
||||
typedef struct ColliderElementInit {
|
||||
/* 0x00 */ u8 elemType; // Affects sfx reaction when attacked by Link and hookability. Full purpose unknown.
|
||||
/* 0x00 */ u8 elemMaterial; // Affects sfx when attacked by Player, and interaction with hookshot and arrows.
|
||||
/* 0x04 */ ColliderElementDamageInfoAT atDmgInfo; // Damage properties when acting as an AT collider
|
||||
/* 0x0C */ ColliderElementDamageInfoACInit acDmgInfo; // Damage properties when acting as an AC collider
|
||||
/* 0x14 */ u8 atElemFlags; // Information flags for AT collisions
|
||||
|
||||
Reference in New Issue
Block a user