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:
parent
05828cba29
commit
6bce1ad294
@ -170,10 +170,10 @@ local function spy(args, player)
|
||||
else
|
||||
local xpos=coords[1]
|
||||
local ypos=coords[2]
|
||||
local xrad=16 yrad=16
|
||||
game.player.force.chart(game.player.surface, {{xpos-xrad, ypos-yrad}, {xpos+xrad, ypos+yrad}})
|
||||
local rad=16
|
||||
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]")
|
||||
inv = game.player.get_inventory(1)
|
||||
local inv = game.player.get_inventory(1)
|
||||
inv.remove("coin")
|
||||
player.insert({name="coin", count=coin_count-1000})
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user