Make amGirder invisible in construction mode since it allows placing anywhere in fortress. Print "insufficient power" if placement was blocked due to that, to avoid confusing noobs.
authornemo
Sat, 20 Dec 2014 16:20:37 -0500
changeset 10696 173069dd7b17
parent 10694 d2ffce60769a
child 10698 aa3dfb4df603
Make amGirder invisible in construction mode since it allows placing anywhere in fortress. Print "insufficient power" if placement was blocked due to that, to avoid confusing noobs.
share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.hwp
share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua
Binary file share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.hwp has changed
--- a/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua	Fri Dec 19 22:56:28 2014 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua	Sat Dec 20 16:20:37 2014 -0500
@@ -1345,7 +1345,11 @@
 		placedCount = placedCount + 1
 
 	else
-		AddCaption("Invalid Placement",0xffba00ff,capgrpVolume)
+	    if (clanPower[GetHogClan(CurrentHedgehog)] >= placedExpense) then
+            AddCaption(loc("Invalid Placement"),0xffba00ff,capgrpVolume)
+        else
+            AddCaption(loc("Insufficient Power"),0xffba00ff,capgrpVolume)
+        end
 		PlaySound(sndDenied)
 	end