sorcery  Diff

Differences From Artifact [bc18a463a6]:

To Artifact [110b3cfc3f]:


   223    223   	if matprops.bond then
   224    224   		local userct, found = 0, false
   225    225   		for i=1,matprops.bond do
   226    226   			local prop = 'bound_user_' .. tostring(i)
   227    227   			if meta:contains(prop) then
   228    228   				userct = i
   229    229   				local name = meta:get_string(prop)
   230         -				print('wand bound to',name,i)
          230  +				-- print('wand bound to',name,i)
   231    231   				if name == user:get_player_name() then found = true break end
   232    232   			else break end
   233    233   		end
   234    234   		
   235    235   		if not found then
   236    236   			if userct < matprops.bond then
   237         -				print('binding wand to caster')
          237  +				-- print('binding wand to caster')
   238    238   				minetest.sound_play("xdecor_enchanting", { --FIXME make own sounds
   239    239   					pos = user:get_pos();
   240    240   					gain = 0.8;
   241    241   				})
   242    242   				sorcery.vfx.cast_sparkle(user, sorcery.lib.color(25,129,255), 2)
   243    243   				meta:set_string('bound_user_' .. tostring(userct+1), user:get_player_name())
   244    244   				return stack