Commit ea7ea7c8 authored by wildfirecode's avatar wildfirecode

1

parent f00f9f20
......@@ -62,55 +62,3 @@ export enum ElementConfigType {
*/
MONSTER = 14,
}
\ No newline at end of file
// export const isCandy = (t: ElementConfigType) => {
// return t == ElementConfigType.CANDY_RANDOM ||
// t == ElementConfigType.CANDY_1 ||
// t == ElementConfigType.CANDY_2 ||
// t == ElementConfigType.CANDY_3 ||
// t == ElementConfigType.CANDY_4 ||
// t == ElementConfigType.CANDY_5
// }
// export const createCandy = (t: ElementConfigType) => {
// let type: ElementType;
// if (t == ElementConfigType.CANDY_RANDOM) {
// const order = Math.ceil(Math.random() * 5);
// switch (order) {
// case 1:
// type = ElementType.CANDY_RABBIT
// break;
// case 2:
// type = ElementType.CANDY_CHICKEN
// break;
// case 3:
// type = ElementType.CANDY_CATTLE
// break;
// case 4:
// type = ElementType.CANDY_LION
// break;
// case 5:
// type = ElementType.CANDY_PIG
// break;
// default:
// break;
// }
// }
// else if (t == ElementConfigType.CANDY_1) {
// type = ElementType.CANDY_RABBIT;
// }
// else if (t == ElementConfigType.CANDY_2) {
// type = ElementType.CANDY_CHICKEN;
// }
// else if (t == ElementConfigType.CANDY_3) {
// type = ElementType.CANDY_CATTLE;
// }
// else if (t == ElementConfigType.CANDY_4) {
// type = ElementType.CANDY_LION;
// }
// else if (t == ElementConfigType.CANDY_5) {
// type = ElementType.CANDY_PIG;
// };
// return type;
// }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment