Differences From
Artifact [62888214aa]:
- File
cookbook.lua
— part of check-in
[3f6a913e4e]
at
2020-09-29 12:40:28
on branch trunk
— * remove former hacky registration system, replace with consistent and flexible API; rewrite metal/gem generation to take advantage of this new API; tweaks to init system to enable world-local tweaks to lore and sorcery behavior
* initial documentation commit
* initial steps towards calendar - add default date format, astrolabe; prepare infra for division/melding/transmutation spells, various tweaks and fixes
(user:
lexi,
size: 19568)
[annotate]
[blame]
[check-ins using]
- File
cookbook.lua
— part of check-in
[ea6e475e44]
at
2020-10-19 09:52:11
on branch trunk
— continue dev on celestial mechanics, add melding+division spells (resonance), refine itemclasses, add keypunch and punchcards, add paper pulp, add a shitload of visuals, add convenience scripts for working with the wiki, make the flamebolt spell actually useful instead of just a pretty lightshow, add essences, inferno crystal, and other goodies; iterate on wands, lots of shit i can't remember, various bugfixes
(user:
lexi,
size: 19858)
[annotate]
[blame]
[check-ins using]
458 458 minetest.show_formspec(user:get_player_name(), 'sorcery:recipe', string.format([[
459 459 size[%f,%f]
460 460 container[1,1] %s container_end[]
461 461 ]], w + 4,h + 2,
462 462 spec))
463 463 return itemstack
464 464 end;
465 + _sorcery = {
466 + material = {
467 + powder = 'sorcery:pulp_inky';
468 + grindvalue = 2; hardness = 1;
469 + };
470 + };
465 471 })
466 472
467 473 dungeon_loot.register {
468 474 name = 'sorcery:recipe';
469 475 chance = 0.9;
470 476 count = {1,7};
471 477 }
................................................................................
489 495 minetest.register_craft {
490 496 type = 'shapeless';
491 497 recipe = {
492 498 'sorcery:cookbook';
493 499 'default:book';
494 500 };
495 501 output = 'sorcery:cookbook';
502 + _sorcery = {
503 + material = {
504 + powder = 'sorcery:pulp_inky';
505 + grindvalue = 2*3; hardness = 1;
506 + };
507 + };
496 508 };
497 509
498 510 -- erase cookbooks in the usual way
499 511 minetest.register_craft {
500 512 type = 'shapeless';
501 513 recipe = {
502 514 'sorcery:cookbook';
503 515 'bucket:bucket_water';
516 + 'sorcery:erasure_fluid';
504 517 };
505 518 output = 'default:book';
506 519 replacements = {
507 520 {'bucket:bucket_water','bucket:bucket_empty'};
521 + {'sorcery:erasure_fluid', 'vessels:glass_bottle'};
508 522 };
509 523 };
510 524
511 525 local m = sorcery.lib.marshal
512 526 local encbook, decbook = m.transcoder {
513 527 pages = m.g.array(8, m.g.struct {
514 528 kind = m.t.str;