AliYousuf / hedgewars

Automatically exported from code.google.com/p/hedgewars
GNU General Public License v2.0
0 stars 0 forks source link

Show mine timer in Highlander games #949

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What problem are you currently facing?
The mine timer is not shown in Highlander games, but the game scheme editor can 
be used to change it.

How do you think the situation should be improved?
By showing the mine timer in the mission "window".

What version of the product are you using? On what operating system?
0.9.21 on GNU/Linux.

Don't forget that patches are welcome ;)
Here's a diff below the X-es:

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXX
*** Highlander_orig.lua 2015-07-28 13:45:23.592437298 +0200
--- Highlander.lua  2015-07-28 13:44:56.399161253 +0200
***************
*** 1,6 ****
  --------------------------------
  -- HIGHLANDER / HOGS OF WAR
! -- version 0.4b
  -- by mikade
  --------------------------------

--- 1,6 ----
  --------------------------------
  -- HIGHLANDER / HOGS OF WAR
! -- version 0.4c
  -- by mikade
  --------------------------------

***************
*** 68,73 ****
--- 68,78 ----
  -----------
  -- as per request, add ice-gun

+ -----------
+ --0.4c
+ -----------
+ -- Show mine timer
+ 
  -------------------------
  -- ideas for the future
  -------------------------
***************
*** 270,275 ****
--- 275,289 ----
      end

      --WriteLnToConsole('utiltot:'..utiltot..' atktot:'..atktot)
+   local mineStr
+   local timer = MinesTime/1000
+   if timer < 0 then
+       mineStr = loc("Mines explode after 0-3 seconds.")
+   elseif timer == 0 then
+       mineStr = loc("Mines explode instantly.")
+   else
+       mineStr = string.format(loc("Mines explode after %ds."), math.floor(timer))
+   end

    ShowMission (
                loc("HIGHLANDER"),
***************
*** 279,285 ****
                "- " .. loc("Per-Hog Ammo") .. "|" ..
                "- " .. loc("Weapons reset.") .. "|" ..
                "- " .. loc("Unlimited Attacks") .. "|" ..
!               "", 4, 4000
                )

    runOnGears(StartingSetUp)
--- 293,299 ----
                "- " .. loc("Per-Hog Ammo") .. "|" ..
                "- " .. loc("Weapons reset.") .. "|" ..
                "- " .. loc("Unlimited Attacks") .. "|" ..
!               "- " .. mineStr .. "|", 4, 4000
                )

    runOnGears(StartingSetUp)

Original issue reported on code.google.com by almikes@aol.com on 28 Jul 2015 at 11:49

GoogleCodeExporter commented 8 years ago
This issue (issue 949) is made obsolete by issue 980. Please close issue 949.

Original comment by almikes@aol.com on 12 Aug 2015 at 2:43