1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-02-13 13:49:33 +02:00

debug messages out

This commit is contained in:
hanakocz 2020-04-08 21:31:34 +02:00
parent 0dd0a232bc
commit 12f826762a

View File

@ -12,8 +12,6 @@ local function on_entity_damaged(event)
if player.shooting_state.state == defines.shooting.not_shooting then return end
local weapon = player.get_inventory(defines.inventory.character_guns)[player.selected_gun_index]
local ammo = player.get_inventory(defines.inventory.character_ammo)[player.selected_gun_index]
game.print(weapon.valid_for_read)
game.print(ammo.valid_for_read)
if not weapon.valid_for_read or not ammo.valid_for_read then return end
if weapon.name ~= "pistol" then return end
if ammo.name ~= "firearm-magazine" and ammo ~= "piercing-rounds-magazine" and ammo ~= "uranium-rounds-magazine" then return end