mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-11-06 09:09:26 +02:00
Fish Market update. Better description for boosts and train savior item (#389)
* Changed small-plane * Updated boost description * Clarified train savior item from market * Fixed SHIFT click on train savior item
This commit is contained in:
@@ -322,6 +322,12 @@ local function market_item_purchased(event)
|
||||
boost_player_miningspeed(player, market)
|
||||
end
|
||||
|
||||
if event.offer_index == 3 then -- train saviour item
|
||||
local player = Game.get_player_by_index(player_index)
|
||||
local train_savior_item = Market_items[offer_index].item
|
||||
player.insert{name=train_savior_item, count=event.count}
|
||||
end
|
||||
|
||||
--[[
|
||||
if event.offer_index == 2 then
|
||||
player.remove_item({name="small-plane", count=event.count})
|
||||
|
||||
@@ -10,8 +10,8 @@ local saviour_token_name = 'small-plane' -- item name for what saves players
|
||||
local saviour_timeout = 180 -- number of ticks players are train immune after getting hit (roughly)
|
||||
|
||||
table.insert(
|
||||
Market_items,
|
||||
{price = {{Market_items.market_item, 100}}, offer = {type = 'give-item', item = saviour_token_name}}
|
||||
Market_items, 3,
|
||||
{price = {{Market_items.market_item, 100}}, offer = {type = 'nothing', effect_description = 'Train Immunity (+1 ' .. saviour_token_name .. ')\nEach ' .. saviour_token_name .. ' in your inventory will save you\nfrom being killed by a train once\n\nPrice: 100 '..Market_items.market_item..'s'}, item = saviour_token_name}
|
||||
)
|
||||
|
||||
local remove_stack = {name = saviour_token_name, count = 1}
|
||||
|
||||
Reference in New Issue
Block a user