src/core/WeaponSystem.js
/**
	* Removes the specified weapon type from the bot's inventory.
	*
	* @param {WEAPON_TYPES} type - The weapon type.
	* @return {WeaponSystem} A reference to this weapon system.
	*/
Removes the specified weapon type from the bot's inventory.
@param {WEAPON_TYPES} type - The weapon type.
@return {WeaponSystem} A reference to this weapon system.
Removes the specified weapon type from the bot ' s inventory . @param { WEAPON_TYPES } type - The weapon type . @return { WeaponSystem } A reference to this weapon system .
removeWeapon( type ) {
		const weapon = this.weaponsMap.get( type );
		if ( weapon ) {
			this.weaponsMap.set( type, null );
			const index = this.weapons.indexOf( weapon );
			this.weapons.splice( index, 1 );
			this.owner.weaponContainer.remove( weapon );
		}
	}
removeWeapon ( type ) { const weapon = this . weaponsMap . get ( type ) ; if ( weapon ) { this . weaponsMap . set ( type , null ) ; const index = this . weapons . indexOf ( weapon ) ; this . weapons . splice ( index , 1 ) ; this . owner . weaponContainer . remove ( weapon ) ; } }
Removes the specified weapon type from the bot's inventory.
Removes the specified weapon type from the bot ' s inventory .