summaryrefslogtreecommitdiff
path: root/src/d/d_save/d_save.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/d/d_save/d_save.cpp')
-rw-r--r--src/d/d_save/d_save.cpp48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/d/d_save/d_save.cpp b/src/d/d_save/d_save.cpp
index 1c71c28e6e..61802f74da 100644
--- a/src/d/d_save/d_save.cpp
+++ b/src/d/d_save/d_save.cpp
@@ -690,4 +690,52 @@ void dSv_player_collect_c::onCollectMirror(u8 param_1) {
bool dSv_player_collect_c::isCollectMirror(u8 param_1) const {
return this->mirror & (u8)(1 << param_1) ? true : false;
+}
+
+void dSv_player_wolf_c::init(void) {
+ for (int i = 0; i < 3; i++) {
+ this->unk0[i] = 0;
+ }
+
+ this->unk3 = 0;
+}
+
+void dSv_light_drop_c::init(void) {
+ for (int i = 0; i < 4; i++) {
+ this->unk0[i] = 0;
+ }
+
+ this->light_drop_get_flag = 0;
+
+ for (int i = 0; i < 3; i++) {
+ this->unk5[i] = 0;
+ }
+}
+
+void dSv_light_drop_c::setLightDropNum(u8 param_1,u8 param_2) {
+ if ((4 <= param_1) && (param_1 <= 6)) {
+ return;
+ }
+ this->unk0[param_1] = param_2;
+}
+
+u8 dSv_light_drop_c::getLightDropNum(u8 param_1) const {
+ if ((4 <= param_1) && (param_1 <= 6)) {
+ return 0;
+ }
+ return this->unk0[param_1];
+}
+
+void dSv_light_drop_c::onLightDropGetFlag(u8 param_1) {
+ if ((4 <= param_1) && (param_1 <= 6)) {
+ return;
+ }
+ this->light_drop_get_flag = this->light_drop_get_flag | (u8)(1 << param_1);
+}
+
+bool dSv_light_drop_c::isLightDropGetFlag(u8 param_1) const {
+ if ((4 <= param_1) && (param_1 <= 6)) {
+ return 0;
+ }
+ return this->light_drop_get_flag & (u8)(1 << param_1) ? true : false;
} \ No newline at end of file