aboutsummaryrefslogtreecommitdiff
path: root/builtin
Commit message (Collapse)AuthorAge
...
* added (optional) support for 6d facedir in dir_to_facedir and added ↵hdastwb2013-07-24
| | | | facedir_to_dir
* Fix enable mod/enable button not shown on entering world config dialogsapier2013-07-22
|
* Fix bug in world creationsapier2013-07-22
| | | | Add old style mod selection in worldconfig dialog
* Add missing header/footer for singleplayer tabsapier2013-07-22
|
* Remove debug outputsapier2013-07-22
|
* Fix Bug in modname guessing resulting in undefined modnamesapier2013-07-22
|
* merge mainmenu_helper.lua to misc_helpers.luasapier2013-07-22
|
* Fix background/overlay/footer/header handlingsapier2013-07-22
| | | | Add missing file headers
* Add playernumber to favorites listsapier2013-07-22
|
* filterlist api cleanupsapier2013-07-22
|
* Add port to favorites if not 30000sapier2013-07-22
| | | | | Major modmgr overhaul Add missing formspec checkbox doc
* Replace worldlist by generic filterlist implementationsapier2013-07-22
|
* Add support for modstore screenshotssapier2013-07-22
| | | | Add error output on invalid mmdb entries
* Swap name/password <-> server descriptionsapier2013-07-22
|
* Revert "Fix serverdescription and name not beeing saved to local serverlist"sapier2013-07-22
| | | | | This reverts commit 7dbbbfc665e285cc9eb9d750c3a449d7da178d4f. (was added twice)
* Remove unused required by list in worldconfigsapier2013-07-22
|
* Add an option to disable object <-> object collision for Lua entitiesPilzAdam2013-07-20
|
* Don't show flags in local favoritessapier2013-07-12
|
* Fix bug server name set to address field when using up/down keyssapier2013-07-12
| | | | Show server description above connect button instead of in favorites list
* Add missing server flags in public serverlistsapier2013-07-12
|
* Remove lots of debug output from modmgrsapier2013-07-12
| | | | | Fix RUN_IN_PLACE=0 mod install (now mods are saved in user folder in that case) Fix text of field element not unescaped correctly
* Fix serverdescription and name not beeing saved to local serverlistsapier2013-07-12
|
* Add VoxelArea:position, VoxelArea:iter and VoxelArea:iterpKahrl2013-07-11
|
* Worldlist fixessapier2013-07-11
| | | | | | | | Add alphabeticaly sorted worldlists Select world after creation Move worldlist handling to separate file Merge world selection of singleplayer/server tab Remove some useless code
* Fix serverlistsapier2013-07-09
|
* Public server checkboxproller2013-07-10
|
* Revert "Fix serverlist not beeing escaped correctly"kwolekr2013-07-08
| | | | This reverts commit 39d03148e5d98ef5f9a31b131a79ff2bbd71a877.
* Fix header not beeing shown except on singleplayer tabsapier2013-07-08
|
* Fix serverlist not beeing escaped correctlysapier2013-07-08
| | | | | Always use address for server Fix first (empty) element beeing selected after deleting last world
* fix crash on play/start with empty world listsapier2013-07-08
| | | | make enter button work in create world dialog
* Make sure that coordinates passed to /teleport are actual numbersPilzAdam2013-07-08
|
* Move math.hypot() to misc_helpers.lua and fix zero-division errorShadowNinja2013-07-07
|
* Lua main menu: Fix world creation dialogkwolekr2013-07-07
|
* Set numeric locale in Lua in main menuPilzAdam2013-07-08
|
* Fix many formspec menu bugssapier2013-07-07
|
* Fix parseColor, change remaining colorkeys to new format, fix Contributor listSfan52013-07-07
|
* Handle 0 vectors in vector.normalize()ShadowNinja2013-07-07
|
* Add vector helpersShadowNinja2013-07-07
|
* Use hexadecimal RRGGBB instead of colorkeys, rename getColor to parseColorSfan52013-07-06
|
* Lua main menu: Fix crash on init lua error, mapgen dropdown index, and new ↵kwolekr2013-07-03
| | | | worlds not saving index
* Replace C++ mainmenu by formspec powered onesapier2013-07-02
|
* Remove unnecessary debug output in node_dig()PilzAdam2013-07-02
|
* Infinite tools in creative modeLord89James2013-07-02
|
* Add Lua VoxelArea methods: contains, containsp, containsikwolekr2013-06-28
|
* Add voxelarea.lua helper to builtinkwolekr2013-06-28
|
* Add Lua on_mapgen_init callback, and minetest.set_mapgen_params APIkwolekr2013-06-27
|
* Restore old output format of dump()Diego Martínez2013-06-18
|
* Fix crash in dump() when index is a tablekhonkhortisan2013-06-15
|
* Move scriptapi to separate folder (by sapier)sapier2013-05-25
| | | | | | | | | | | On the lua side, notably minetest.env:<function>(<args>) should now be replaced by minetest.<function>(<args>). The old way is and will stay supported for a long time. Also: Update and clean up lua_api.txt (by celeron55) Move EnvRef to lua and remove add_rat and add_firefly (by kahrl) Add separate src/util/CMakeLists.txt, other minor fixes (by kahrl)
* Fix minetest.featuresPilzAdam2013-05-01
|
">= 0; result_main_group = name; } } } //infostream<<"result_diggable="<<result_diggable<<std::endl; //infostream<<"result_time="<<result_time<<std::endl; //infostream<<"result_wear="<<result_wear<<std::endl; if(time_from_last_punch < tp->full_punch_interval){ float f = time_from_last_punch / tp->full_punch_interval; //infostream<<"f="<<f<<std::endl; result_time /= f; result_wear /= f; } u16 wear_i = 65535.*result_wear; return DigParams(result_diggable, result_time, wear_i, result_main_group); } DigParams getDigParams(const ItemGroupList &groups, const ToolCapabilities *tp) { return getDigParams(groups, tp, 1000000); } HitParams getHitParams(const ItemGroupList &armor_groups, const ToolCapabilities *tp, float time_from_last_punch) { s16 damage = 0; float full_punch_interval = tp->full_punch_interval; for(std::map<std::string, s16>::const_iterator i = tp->damageGroups.begin(); i != tp->damageGroups.end(); i++){ s16 armor = itemgroup_get(armor_groups, i->first); damage += i->second * rangelim(time_from_last_punch * full_punch_interval, 0.0, 1.0) * armor / 100.0; } return HitParams(damage, 0); } HitParams getHitParams(const ItemGroupList &armor_groups, const ToolCapabilities *tp) { return getHitParams(armor_groups, tp, 1000000); } PunchDamageResult getPunchDamage( const ItemGroupList &armor_groups, const ToolCapabilities *toolcap, const ItemStack *punchitem, float time_from_last_punch ){ bool do_hit = true; { if(do_hit && punchitem){ if(itemgroup_get(armor_groups, "punch_operable") && (toolcap == NULL || punchitem->name == "")) do_hit = false; } if(do_hit){ if(itemgroup_get(armor_groups, "immortal")) do_hit = false; } } PunchDamageResult result; if(do_hit) { HitParams hitparams = getHitParams(armor_groups, toolcap, time_from_last_punch); result.did_punch = true; result.wear = hitparams.wear; result.damage = hitparams.hp; } return result; }