# HG changeset patch # User nemo # Date 1419110437 18000 # Node ID 173069dd7b17d24eeb0fcc27ad6d7b81edb188d2 # Parent d2ffce60769abde9882e35225e343f5370e461f3 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. diff -r d2ffce60769a -r 173069dd7b17 share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.hwp Binary file share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.hwp has changed diff -r d2ffce60769a -r 173069dd7b17 share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua --- 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