1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00

Fixed failed checks.

This commit is contained in:
Jayefuu 2020-11-04 16:24:14 +00:00
parent 05828cba29
commit 6bce1ad294

View File

@ -170,10 +170,10 @@ local function spy(args, player)
else else
local xpos=coords[1] local xpos=coords[1]
local ypos=coords[2] local ypos=coords[2]
local xrad=16 yrad=16 local rad=16
game.player.force.chart(game.player.surface, {{xpos-xrad, ypos-yrad}, {xpos+xrad, ypos+yrad}}) game.player.force.chart(game.player.surface, {{xpos-rad, ypos-rad}, {xpos+rad, ypos+rad}})
game.print("[color=red]Jayefuu used the /spy command and spent 1000 coins to train a fish to spy on the enemy [gps=" .. xpos .. "," .. ypos .. ",redmew][/color]") game.print("[color=red]Jayefuu used the /spy command and spent 1000 coins to train a fish to spy on the enemy [gps=" .. xpos .. "," .. ypos .. ",redmew][/color]")
inv = game.player.get_inventory(1) local inv = game.player.get_inventory(1)
inv.remove("coin") inv.remove("coin")
player.insert({name="coin", count=coin_count-1000}) player.insert({name="coin", count=coin_count-1000})
end end