summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/effectvideo.cpp69
1 files changed, 21 insertions, 48 deletions
diff --git a/src/effectvideo.cpp b/src/effectvideo.cpp
index f8561ea..cea96fb 100644
--- a/src/effectvideo.cpp
+++ b/src/effectvideo.cpp
@@ -75,56 +75,29 @@ int EffectVideo::onExecute() {
else { // Plays an Effect
- switch (this->effect) {
-
- case 43:
- SpawnEffect("Wm_ob_cmnspark", 0, &this->pos, &(S16Vec){0,0,0}, &(Vec){this->scale, this->scale, this->scale});
- break;
-
- case 177:
- SpawnEffect("Wm_ob_greencoinkira_b", 0, &this->pos, &(S16Vec){0,0,0}, &(Vec){this->scale, this->scale, this->scale});
- break;
-
- case 193:
- SpawnEffect("Wm_mr_electricshock_biri01_s", 0, &this->pos, &(S16Vec){0,0,0}, &(Vec){this->scale, this->scale, this->scale});
- break;
-
- case 365:
- SpawnEffect("Wm_en_kuribobigsplit", 0, &this->pos, &(S16Vec){0,0,0}, &(Vec){this->scale, this->scale, this->scale});
- break;
-
-
- case 514:
- SpawnEffect("Wm_ob_fireworks_y", 0, &this->pos, &(S16Vec){0,0,0}, &(Vec){this->scale, this->scale, this->scale});
- break;
-
- case 517:
- SpawnEffect("Wm_ob_fireworks_b", 0, &this->pos, &(S16Vec){0,0,0}, &(Vec){this->scale, this->scale, this->scale});
- break;
+ const char *efName = 0;
- case 520:
- SpawnEffect("Wm_ob_fireworks_g", 0, &this->pos, &(S16Vec){0,0,0}, &(Vec){this->scale, this->scale, this->scale});
- break;
-
- case 523:
- SpawnEffect("Wm_ob_fireworks_p", 0, &this->pos, &(S16Vec){0,0,0}, &(Vec){this->scale, this->scale, this->scale});
- break;
-
- case 526:
- SpawnEffect("Wm_ob_fireworks_k", 0, &this->pos, &(S16Vec){0,0,0}, &(Vec){this->scale, this->scale, this->scale});
- break;
-
- case 533:
- SpawnEffect("Wm_ob_fireworks_1up", 0, &this->pos, &(S16Vec){0,0,0}, &(Vec){this->scale, this->scale, this->scale});
- break;
-
- case 540:
- SpawnEffect("Wm_ob_fireworks_star", 0, &this->pos, &(S16Vec){0,0,0}, &(Vec){this->scale, this->scale, this->scale});
- break;
-
- default:
- break;
+ switch (this->effect) {
+ case 1: efName = "Wm_mr_cmnsndlandsmk"; break;
+ case 3: efName = "Wm_en_landsmoke"; break;
+ case 5: efName = "Wm_en_sndlandsmk"; break;
+ case 6: efName = "Wm_en_sndlandsmk_s"; break;
+ case 43: efName = "Wm_ob_cmnspark"; break;
+ case 177: efName = "Wm_ob_greencoinkira_b"; break;
+ case 193: efName = "Wm_mr_electricshock_biri01_s"; break;
+ case 216: efName = "Wm_en_blockcloud"; break;
+ case 365: efName = "Wm_en_kuribobigsplit"; break;
+ case 514: efName = "Wm_ob_fireworks_y"; break;
+ case 517: efName = "Wm_ob_fireworks_b"; break;
+ case 520: efName = "Wm_ob_fireworks_g"; break;
+ case 523: efName = "Wm_ob_fireworks_p"; break;
+ case 526: efName = "Wm_ob_fireworks_k"; break;
+ case 533: efName = "Wm_ob_fireworks_1up"; break;
+ case 540: efName = "Wm_ob_fireworks_star"; break;
}
+
+ if (efName != 0)
+ SpawnEffect(efName, 0, &this->pos, &(S16Vec){0,0,0}, &(Vec){this->scale, this->scale, this->scale});
}
this->timer = 0;