Update things

This commit is contained in:
Jackzie 2024-03-06 17:59:55 -06:00
parent 9590ceb207
commit d4f9241b3c
25 changed files with 650 additions and 345 deletions

View file

@ -154,6 +154,9 @@ Action Timer_SetWitchTarget(Handle h, DataPack pack) {
}
stock SpecialType GetSpecialType(const char[] input) {
if(StrEqual(input, "random")) {
return view_as<SpecialType>(GetRandomInt(0, 6))
}
for(int i = 0; i < 8; i++) {
if(strcmp(SPECIAL_NAMES[i], input, false) == 0) return view_as<SpecialType>(i + 1);
}