Compare commits

22 Commits

Author SHA1 Message Date
a58ea2bc33 Merge remote-tracking branch 'upstream/master' 2024-09-15 09:00:06 +02:00
4a294c2f14 Update README.txt 2024-08-17 12:55:46 -05:00
87145f0634 Archive repository, update README.txt 2024-08-17 12:49:20 -05:00
749320358c Merge branch 'crabman77-translate_irc' 2022-07-09 16:13:01 +02:00
8abee494e3 fix typo and translate messages server-side before sending to irc(wrong formated due to translation expression included in message) 2022-07-04 21:47:34 +02:00
6201e8468b Delete depends.txt, description.txt 2022-06-28 19:55:16 +02:00
c3e233e7bf Fix french translations (again) 2020-07-18 20:46:26 +02:00
c7b597995e Update mod.conf, reformat init.lua, and add luacheckrc 2020-07-13 11:41:11 -04:00
509c036d94 Cleanup as well as adding screenshot and description 2016-01-14 19:34:10 -05:00
1579c47a58 Change drowning detection to player:get_breath() 2014-03-20 10:25:56 -04:00
f516e3904e Merge pull request #2 from webdesigner97/master
add support for groups lava and water
2014-03-20 08:44:47 -04:00
31aff1751a add support for groups lava and water 2014-03-20 12:32:08 +01:00
edd059747c Change license to GPL v3 2014-03-19 12:16:52 -04:00
24644bbb33 Bump version to 0.1.2 2014-03-19 10:50:44 -04:00
7bcdff90d9 Make random messages optional, and add more quips. 2014-03-19 10:48:40 -04:00
d2b31a3ffe Add random table of quips, and bump version to 0.1.1 2014-03-18 20:59:44 -04:00
02a8670823 Fix formatting in README (OCD much?) 2014-03-17 15:15:12 -04:00
327b43428c Clean up code a bit and use variables 2014-03-17 15:10:44 -04:00
0c6591fd0f Merge branch 'master' of https://github.com/4Evergreen4/death_messages 2014-03-17 13:52:03 -04:00
e78359248e Add depends.txt 2014-03-17 13:51:40 -04:00
bb2fe0f677 Fix README.md 2014-03-17 13:25:34 -04:00
163661c2b7 Add all files and bump version to 0.1 2014-03-17 13:23:56 -04:00
6 changed files with 21 additions and 7 deletions

0
LICENSE.txt Executable file → Normal file
View File

View File

@ -1,3 +1,13 @@
As of 2024-08-17, this mod will probably not be updated by me as I lost interest
in Minetest a long time ago and probably will not be coming back.
If you do want to make any changes, here was my list of TODO items that I never got around to:
- Update meta stuff (readme, version, mod.conf, etc.)
- Change settings file to not use do_file and add options for custom messages (with placement of player name(s) anywhere in the message)
- Add some kind of translation support (may be covered by custom messages)
- Use the new API features to poperly detect types of death that weren't feasible before
- Make a small API for registering custom messages for other mods (see dying by corium in technic)
____ _ _ __ __
| _ \ ___ __ _| |_| |__ | \/ | ___ ___ ___ __ _ __ _ ___ ___
| | | |/ _ \/ _` | __| '_ \ | |\/| |/ _ \/ __/ __|/ _` |/ _` |/ _ \/ __|

0
depends.txt Executable file → Normal file
View File

View File

@ -42,6 +42,9 @@ local sounds = {
-- Translation wrapper
local S = minetest.get_translator(mname)
-- To translate server-side in server language for irc
local lang = minetest.settings:get("language") or "fr"
-- Lava death messages
messages.lava = {
"@1 thought lava was cool.",
@ -61,10 +64,10 @@ messages.water = {
"@1 ran out of air.",
"@1 tried to impersonate an anchor.",
"@1 forgot (s)he was not a fish.",
"@1 forgot they needed to breath underwater.",
"@1 forgot (s)he needed to breath underwater.",
"@1 isn't good at swimming.",
"@1 looked for the secret of the Unicorn.",
"@1 forgot their scaphander.",
"@1 forgot his/her scaphander.",
"@1 failed at swimming lessons.",
"@1 blew one too many bubbles.",
}
@ -110,7 +113,7 @@ messages.other = {
"@1 died.",
"@1 left this world.",
"@1 reached miner's heaven.",
"@1 lost him/her life.",
"@1 lost his/her life.",
"@1 saw the light.",
"@1 fell from a bit too high.",
"@1 slipped on a banana skin.",
@ -141,7 +144,7 @@ messages.whacking = {
messages.monsters_whacking = {
"@1 got whacked by a @2.",
"Darwin said : @1 was less adapted than a @2.",
"Darwin said: @1 was less adapted than a @2.",
"@1 was transformed into a doormat by a @2.",
"@1 thought (s)he was stronger than a @2.",
"@1 got kicked up by a @2. Next up...",
@ -208,7 +211,8 @@ local function broadcast_death(msg)
logfilep:write(os.date("[%Y-%m-%d %H:%M:%S] ") .. msg .. "\n")
logfilep:close()
if irc then
irc.say(msg)
local tr_msg = minetest.get_translated_string(lang, msg)
irc.say(tr_msg)
end
end

View File

@ -21,7 +21,7 @@ You=Tu
@1 forgot (s)he needed to breath underwater.=@1 a oublié qu'il lui fallait respirer sous l'eau.
@1 isn't good at swimming.=@1 n'est pas bon(ne) en natation.
@1 looked for the secret of the Unicorn.=@1 a cherché le secret de la licorne.
@1 forgot their scaphander.=@1 a oublié son scaphandre.
@1 forgot his/her scaphander.=@1 a oublié son scaphandre.
@1 failed at swimming lessons.=@1 a raté ses cours de natation.
@1 blew one too many bubbles.=@1 a expiré une bulle de trop.

View File

@ -21,7 +21,7 @@ You=
@1 forgot (s)he needed to breath underwater.=
@1 isn't good at swimming.=
@1 looked for the secret of the Unicorn.=
@1 forgot their scaphander.=
@1 forgot his/her scaphander.=
@1 failed at swimming lessons.=
@1 blew one too many bubbles.=