sorcery  Diff

Differences From Artifact [2dad4b5804]:

To Artifact [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;
					};
				};
			};