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
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
...
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
....
1181
1182
1183
1184
1185
1186
1187

1188
1189
1190
1191
1192
1193
1194
										aspect_w = 16, aspect_h = 16;
									};
								}
							end;
						};
						intervals = {
							{period = tf; after = {secs=1.2}; fn = function(c)
								print('---- aff idx is now', c.spell._aff_idx)
								print(dump(c.spell.subjects))
								local sub = c.spell.subjects[c.spell._aff_idx] 
								if sub then 
									print('  -- sub found')
									c.spell.visual {
										amount = 100, time = 2, glow = 14;
										attached = c.spell.subjects[c.spell._aff_idx].player;
										texture = sorcery.lib.image('sorcery_sputter.png'):glow(sorcery.lib.color(160,255,80)):render();
										minpos = { x = -0.3, y =  7.3, z = -0.3 };
										maxpos = { x =  0.3, y =  5.7, z =  0.3 };
										minvel = { x = -0.0, y = -7.5, z = -0.0 };
................................................................................
									-- if c.spell._aff_idx > c.spell._ntgt then return false end
								end
							end};
							{period = tf; after = {secs=2.1}; fn = function(c)
								local sub = c.spell.subjects[c.spell._aff_idx] 
								if sub then purge(sub.player) end
								c.spell._aff_idx = c.spell._aff_idx + 1
								print('---> aff idx is now', c.spell._aff_idx)
								print(dump(c.spell.subjects))
								-- if c.spell._aff_idx > c.spell._ntgt then return false end
							end};
						};
					}
				end;
				frame = {
					iridium = {
................................................................................
								tl[wh] = function(s)
									minetest.set_timeofday(time + delta*i)
								end
							end
							sorcery.spell.cast {
								name = 'sorcery:sunshine';
								caster = ctx.caster;

								timeline = tl;
								duration = duration;
							}
						end;
					};
				};
			};







<
<


<







 







<
<







 







>







563
564
565
566
567
568
569


570
571

572
573
574
575
576
577
578
...
589
590
591
592
593
594
595


596
597
598
599
600
601
602
....
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
										aspect_w = 16, aspect_h = 16;
									};
								}
							end;
						};
						intervals = {
							{period = tf; after = {secs=1.2}; fn = function(c)


								local sub = c.spell.subjects[c.spell._aff_idx] 
								if sub then 

									c.spell.visual {
										amount = 100, time = 2, glow = 14;
										attached = c.spell.subjects[c.spell._aff_idx].player;
										texture = sorcery.lib.image('sorcery_sputter.png'):glow(sorcery.lib.color(160,255,80)):render();
										minpos = { x = -0.3, y =  7.3, z = -0.3 };
										maxpos = { x =  0.3, y =  5.7, z =  0.3 };
										minvel = { x = -0.0, y = -7.5, z = -0.0 };
................................................................................
									-- if c.spell._aff_idx > c.spell._ntgt then return false end
								end
							end};
							{period = tf; after = {secs=2.1}; fn = function(c)
								local sub = c.spell.subjects[c.spell._aff_idx] 
								if sub then purge(sub.player) end
								c.spell._aff_idx = c.spell._aff_idx + 1


								-- if c.spell._aff_idx > c.spell._ntgt then return false end
							end};
						};
					}
				end;
				frame = {
					iridium = {
................................................................................
								tl[wh] = function(s)
									minetest.set_timeofday(time + delta*i)
								end
							end
							sorcery.spell.cast {
								name = 'sorcery:sunshine';
								caster = ctx.caster;
								anchor = 'caster';
								timeline = tl;
								duration = duration;
							}
						end;
					};
				};
			};

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

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

			local usedamulet if stack:get_count() == 1 then
				usedamulet = stack
			else
				usedamulet = ItemStack(stack)
				usedamulet:set_count(1)







<







54
55
56
57
58
59
60

61
62
63
64
65
66
67
	end
	if not gem.foreign_amulet then
		local img = sorcery.lib.image
		local img_stone = img('sorcery_amulet.png'):multiply(sorcery.lib.color(gem.tone))
		local img_sparkle = img('sorcery_amulet_sparkle.png')
		local useamulet = function(stack,user,target)
			local sp = sorcery.amulet.getspell(stack)

			if not sp or not sp.cast then return nil end

			local usedamulet if stack:get_count() == 1 then
				usedamulet = stack
			else
				usedamulet = ItemStack(stack)
				usedamulet:set_count(1)