4cbd9e8f-96e9-4dbd-9a76-7428a882899a.js 1.75 KB
"use strict";
cc._RF.push(module, '4cbd96PlulNvZp2dCiogoma', 'PlusOneObj');
// scripts/kernel/battle/map/PlusOneObj.ts

"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.PlusOneObj = void 0;
var ObjData_1 = require("./ObjData");
var PlusOneObj = /** @class */ (function (_super) {
    __extends(PlusOneObj, _super);
    function PlusOneObj() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    PlusOneObj.prototype.init = function (map, type, gridX, gridY) {
        _super.prototype.init.call(this, map, type, gridX, gridY);
        this._imgName = 'UI_yxz_tsfk_+1q';
    };
    PlusOneObj.prototype.onCollisonToBall = function (collider) {
        _super.prototype.onCollisonToBall.call(this, collider);
        if (!this._droped) {
            this.map.battle.profit.marbles++;
            this.map.battle.addToRoundClear(this);
            this.dropDown();
        }
    };
    PlusOneObj.prototype.clone = function () {
        var ret = new PlusOneObj();
        this.cloneValue(ret);
        return ret;
    };
    return PlusOneObj;
}(ObjData_1.ObjData));
exports.PlusOneObj = PlusOneObj;

cc._RF.pop();