JSFiddle - React, Tailwind, and code Playground

by Susan Delgado

JavaScript

var ATTACKS = (function (self) {
    var attackList {
        push: {
            name: "Push",
            power: 20,
            physical: true,
            magic: false,
            atkdelay: 400,
            atkhold: 500,
            distance: touching,
            special: null
        },
        strike: {
            name: "Strike",
            power: 25,
            physical: true,
            magic: false,
            atkdelay: 400,
            atkhold: 0,
            distance: cross,
            special: true,
            finisher: SPECIAL_POWER.slashSubs
        },
        scream: {
            name: "Scream",
            power: 10,
            physical: false,
            magic: false,
            atkdelay: 400,
            atkhold: 500,
            distance: stay,
            special: null
        }
    }
        return {
            getAttack: function (attackName) {
                return attackList.attackName
            }
        }
    }(ATTACKS || {}));

var CHAR = {
    var moves = [];    
    getMoves = function () {
        
        this.moves.push(ATTACKS.getAttack('push'));
        
    }


}