here have some lua love: make parameter count error messages more helpful to lua devs
(also: some whitespace cleanups)
/*
* Hedgewars, a free turn based strategy game
* Copyright (c) 2013 Vittorio Giovara <vittorio.giovara@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
// TODO: keep on documenting all the weapons
//skip---------------------------------|
//structure------------------------------------------------------------------|
#define AMMOLINE_DEFAULT_QT "9391929422199121032235111001201000000211110101011111121"
#define AMMOLINE_DEFAULT_PROB "0405040541600655546554464776576666666155510101115411121"
#define AMMOLINE_DEFAULT_DELAY "0000000000000205500000040007004000000000220000000600020"
#define AMMOLINE_DEFAULT_CRATE "1311110312111111123114111111111111111211111101111111121"
#define AMMOLINE_CRAZY_QT "9999999999999999992999999999999999299999999909999992999"
#define AMMOLINE_CRAZY_PROB "1111110111111111111111111111111111111111111101111111111"
#define AMMOLINE_CRAZY_DELAY "0000000000000000000000000000000000000000000000000000000"
#define AMMOLINE_CRAZY_CRATE "1311110312111111123114111111111111111211110101111111121"
#define AMMOLINE_PROMODE_QT "9090009000000000000009000000000000000000000000000000000"
#define AMMOLINE_PROMODE_PROB "0000000000000000000000000000000000000000000000000000000"
#define AMMOLINE_PROMODE_DELAY "0000000000000205500000040007004000000000200000000000020"
#define AMMOLINE_PROMODE_CRATE "1111110111111111111111111111111111111111100101111111121"
#define AMMOLINE_SHOPPA_QT "0000009900000000000000000000000000000000000000000000000"
#define AMMOLINE_SHOPPA_PROB "4444410044244402210112121222422000000002000400010011001"
#define AMMOLINE_SHOPPA_DELAY "0000000000000000000000000000000000000000000000000000000"
#define AMMOLINE_SHOPPA_CRATE "1111110111111111111111111111111111111111101101111111121"
#define AMMOLINE_CLEAN_QT "1010009000010000011000000000000000000000000000001000000"
#define AMMOLINE_CLEAN_PROB "0405040541600655546554464776576666666155510101115411121"
#define AMMOLINE_CLEAN_DELAY "0000000000000000000000000000000000000000000000000000020"
#define AMMOLINE_CLEAN_CRATE "1311110312111111123114111111111111111211111101111111121"
#define AMMOLINE_MINES_QT "0000009900090000000300000000000000000000000000000000000"
#define AMMOLINE_MINES_PROB "0000000000000000000000000000000000000000000000000000000"
#define AMMOLINE_MINES_DELAY "0000000000000205500000040007004000000000200000000600020"
#define AMMOLINE_MINES_CRATE "1111110111111111111111111111111111111111111101111111121"
#define AMMOLINE_PORTALS_QT "9000009002000000002100000000000000110000090000000000000"
#define AMMOLINE_PORTALS_PROB "0405040541600655546554464776576666666155510101115411121"
#define AMMOLINE_PORTALS_DELAY "0000000000000205500000040007004000000000200000000600020"
#define AMMOLINE_PORTALS_CRATE "1311110312111111123114111111111111111211111101111111121"
#define AMMOLINE_ONEEVERY_QT "1111119111111111111111111111111111111111111111111111111"
#define AMMOLINE_ONEEVERY_PROB "1111110111111111111111111111111111111111111111111111111"
#define AMMOLINE_ONEEVERY_DELAY "0000000000000000000000000000000000000000000000000000000"
#define AMMOLINE_ONEEVERY_CRATE "1111110111111111111111111111111111111111111111111111111"
//When adding new weapons also insert one element in cDefaultAmmos list (hwconsts.cpp.in)