~widelands-dev/widelands/trunk

« back to all changes in this revision

Viewing changes to src/scripting/lua_root.cc

  • Committer: The Widelands Bunnybot
  • Date: 2024-10-19 13:45:54 UTC
  • Revision ID: bunnybot@widelands.org-20241019134554-kz2gcbecf0y7bd7n
170 files were automatically formatted.

(by bunnybot)
5a9087b08ab9bbc48795ff0f7f1f370f60108b1a

Show diffs side-by-side

added added

removed removed

Lines of Context:
1142
1142
                worker_descr.set_becomes(descrs, luaL_checkstring(L, 5));
1143
1143
        } else if (property == "target_quantity") {
1144
1144
                worker_descr.set_default_target_quantity(lua_isnil(L, 5) ? Widelands::kInvalidWare :
1145
 
                                                                 luaL_checkuint32(L, 5));
 
1145
                                                                           luaL_checkuint32(L, 5));
1146
1146
        } else if (property == "preciousness") {
1147
1147
                worker_descr.set_preciousness(luaL_checkstring(L, 5), luaL_checkuint32(L, 6));
1148
1148
        } else if (property == "programs") {
1380
1380
 
1381
1381
        if (property == "target_quantity") {
1382
1382
                ware_descr.set_default_target_quantity(luaL_checkstring(L, 5), lua_isnil(L, 6) ?
1383
 
                                                                        Widelands::kInvalidWare :
1384
 
                                                                        luaL_checkuint32(L, 6));
 
1383
                                                                                  Widelands::kInvalidWare :
 
1384
                                                                                  luaL_checkuint32(L, 6));
1385
1385
        } else if (property == "preciousness") {
1386
1386
                ware_descr.set_preciousness(luaL_checkstring(L, 5), luaL_checkuint32(L, 6));
1387
1387
        } else {