Merge pull request #506 from ritiek/fairydust

Accept "fairydust" as an emit type in ba.emitfx()
This commit is contained in:
Eric Froemling 2022-09-22 13:58:39 -07:00 committed by GitHub
commit 49cc351c08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,7 @@
- Cleaned up the efro.message system to isolate response types that are used purely internally (via a new SysResponse type).
- Fixed bug with 'Disable Camera Shake' option. (GitHub #511)
- Fixed an issue where Co-op football would play no music.
- Accept "fairydust" as an emit type in `ba.emitfx()`.
### 1.7.8 (build 20871, api 7, 2022-09-21)
- Fixed tournament scores submits which were broken in 1.7.7 (oops).

View File

@ -1 +1 @@
139020022013133168311319486434408589898
139020022013133168311319486434408589898

View File

@ -327,6 +327,8 @@ auto PyEmitFx(PyObject* self, PyObject* args, PyObject* keywds) -> PyObject* {
emit_type = BGDynamicsEmitType::kDistortion;
} else if (!strcmp(emit_type_str, "flag_stand")) {
emit_type = BGDynamicsEmitType::kFlagStand;
} else if (!strcmp(emit_type_str, "fairydust")) {
emit_type = BGDynamicsEmitType::kFairyDust;
} else {
throw Exception("Invalid emit type: '" + std::string(emit_type_str) + "'.",
PyExcType::kValue);