Update boss fight

This commit is contained in:
Chris Chen
2024-03-29 08:04:07 -07:00
parent 6a031ca478
commit d486fe9594
55 changed files with 1809 additions and 799 deletions
@@ -0,0 +1,20 @@
import { ObjectUtils } from "../../../utilities/object-utils";
import { IDrawingItem, MobInfo, TreasureItem } from "../massive-darkness2.model";
export class MD2Clone {
public static CloneDrawingItem(obj: IDrawingItem) {
let type = obj.constructor.name;
let cloneObj = null;
switch (type) {
case "TreasureItem":
return new TreasureItem(obj['type'], 1);
break;
case "MobInfo":
return new MobInfo(obj);
break;
default: break;
}
return ObjectUtils.CloneValue(obj);
}
}