sorcery  Check-in [5fbd1ed57c]

Overview
Comment:remove debug statements durr
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 5fbd1ed57c43d06a4e09f46370c772a23bdaed41bd0297c1c84e95e2682cb7f5
User & Date: lexi on 2021-07-05 01:02:24
Other Links: manifest | tags
Context
2021-07-05
03:07
bug fixes, add spellshatter visuals, maybe finally defuckulate imbuement effect? check-in: b24c5f49c7 user: lexi tags: trunk
01:02
remove debug statements durr check-in: 5fbd1ed57c user: lexi tags: trunk
00:59
add Mundanity spell, bug fixes check-in: 1276138728 user: lexi tags: trunk
Changes

Modified data/runes.lua from [2dad4b5804] to [7cffae6fa3].

   563    563   										aspect_w = 16, aspect_h = 16;
   564    564   									};
   565    565   								}
   566    566   							end;
   567    567   						};
   568    568   						intervals = {
   569    569   							{period = tf; after = {secs=1.2}; fn = function(c)
   570         -								print('---- aff idx is now', c.spell._aff_idx)
   571         -								print(dump(c.spell.subjects))
   572    570   								local sub = c.spell.subjects[c.spell._aff_idx] 
   573    571   								if sub then 
   574         -									print('  -- sub found')
   575    572   									c.spell.visual {
   576    573   										amount = 100, time = 2, glow = 14;
   577    574   										attached = c.spell.subjects[c.spell._aff_idx].player;
   578    575   										texture = sorcery.lib.image('sorcery_sputter.png'):glow(sorcery.lib.color(160,255,80)):render();
   579    576   										minpos = { x = -0.3, y =  7.3, z = -0.3 };
   580    577   										maxpos = { x =  0.3, y =  5.7, z =  0.3 };
   581    578   										minvel = { x = -0.0, y = -7.5, z = -0.0 };
................................................................................
   592    589   									-- if c.spell._aff_idx > c.spell._ntgt then return false end
   593    590   								end
   594    591   							end};
   595    592   							{period = tf; after = {secs=2.1}; fn = function(c)
   596    593   								local sub = c.spell.subjects[c.spell._aff_idx] 
   597    594   								if sub then purge(sub.player) end
   598    595   								c.spell._aff_idx = c.spell._aff_idx + 1
   599         -								print('---> aff idx is now', c.spell._aff_idx)
   600         -								print(dump(c.spell.subjects))
   601    596   								-- if c.spell._aff_idx > c.spell._ntgt then return false end
   602    597   							end};
   603    598   						};
   604    599   					}
   605    600   				end;
   606    601   				frame = {
   607    602   					iridium = {
................................................................................
  1181   1176   								tl[wh] = function(s)
  1182   1177   									minetest.set_timeofday(time + delta*i)
  1183   1178   								end
  1184   1179   							end
  1185   1180   							sorcery.spell.cast {
  1186   1181   								name = 'sorcery:sunshine';
  1187   1182   								caster = ctx.caster;
         1183  +								anchor = 'caster';
  1188   1184   								timeline = tl;
  1189   1185   								duration = duration;
  1190   1186   							}
  1191   1187   						end;
  1192   1188   					};
  1193   1189   				};
  1194   1190   			};

Modified gems.lua from [12e0882fa3] to [68440cd05e].

    54     54   	end
    55     55   	if not gem.foreign_amulet then
    56     56   		local img = sorcery.lib.image
    57     57   		local img_stone = img('sorcery_amulet.png'):multiply(sorcery.lib.color(gem.tone))
    58     58   		local img_sparkle = img('sorcery_amulet_sparkle.png')
    59     59   		local useamulet = function(stack,user,target)
    60     60   			local sp = sorcery.amulet.getspell(stack)
    61         -			print('got spell',dump(sp))
    62     61   			if not sp or not sp.cast then return nil end
    63     62   
    64     63   			local usedamulet if stack:get_count() == 1 then
    65     64   				usedamulet = stack
    66     65   			else
    67     66   				usedamulet = ItemStack(stack)
    68     67   				usedamulet:set_count(1)