From 3eec6f18634de223c5d7ad32f01ff089a6900192 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Thu, 13 Jun 2019 18:17:37 +0100 Subject: [PATCH] Added output for /bonus --- locale/en/commands.cfg | 4 ++++ modules/commands/bonus.lua | 2 ++ 2 files changed, 6 insertions(+) diff --git a/locale/en/commands.cfg b/locale/en/commands.cfg index 3e218eca..bd4725c9 100644 --- a/locale/en/commands.cfg +++ b/locale/en/commands.cfg @@ -55,6 +55,10 @@ unavailable=They was a problem getting you to spawn, please try again later. [expcom-repair] result=__1__ entites were revived and __2__ were healed to max health. +[expcom-bonus] +set=Your bonus has been set to __1__. +wip=This command is tempary and will be replaced at some point in the future. + [expcom-home] no-home=You have no home set. no-return=You cant return when home has not yet been used. diff --git a/modules/commands/bonus.lua b/modules/commands/bonus.lua index 2e02b706..6b15c242 100644 --- a/modules/commands/bonus.lua +++ b/modules/commands/bonus.lua @@ -20,6 +20,8 @@ Commands.new_command('bonus','Changes the amount of bonus you receive') :register(function(player,amount) local percent = amount/100 Store.set(bonus_store,player.name,percent) + Commands.print{'expcom-bonus.set',amount} + Commands.print({'expcom-bonus.wip'},'orange') end) Event.add(defines.events.on_player_respawned,function(event)