Added support for the second summer costume (#2942)

Fixed other costumes being able to be removed by Dispell

Fixes #2788

Thanks to @admkakaroto
This commit is contained in:
Lemongrass3110
2018-03-08 00:41:52 +01:00
committed by GitHub
parent a7df035854
commit 5c9d7a41a9
6 changed files with 27 additions and 6 deletions

View File

@@ -9731,6 +9731,7 @@ ACMD_FUNC(costume) {
"Wedding",
"Xmas",
"Summer",
"Summer2"
"Hanbok",
"Oktoberfest",
};
@@ -9738,6 +9739,7 @@ ACMD_FUNC(costume) {
SC_WEDDING,
SC_XMAS,
SC_SUMMER,
SC_DRESSUP,
SC_HANBOK,
SC_OKTOBERFEST
};
@@ -9779,7 +9781,7 @@ ACMD_FUNC(costume) {
return -1;
}
sc_start(&sd->bl, &sd->bl, (sc_type)name2id[k], 100, 0, -1);
sc_start(&sd->bl, &sd->bl, (sc_type)name2id[k], 100, name2id[k] == SC_DRESSUP ? 1 : 0, -1);
return 0;
}