sorcery  Diff

Differences From Artifact [f718356661]:

To Artifact [71f6a713cb]:


     1      1   local altar_item_offset = {
     2      2   	x = 0, y = -0.3, z = 0
     3      3   }
            4  +local log = function(...) sorcery.log('altar',...) end
     4      5   
     5      6   local range = function(min, max)
     6      7   	local span = max - min
     7      8   	local val = math.random() * span
     8      9   	return val + min
     9     10   end
    10     11   
................................................................................
   166    167   					-- we pick a random gift and roll against its rarity
   167    168   					-- to determine if the god is feeling generous
   168    169   					local gift = sorcery.lib.tbl.pick(god.gifts)
   169    170   					local data = god.gifts[gift]
   170    171   					local value, rarity = data[1], data[2]
   171    172   					if value <= divine_favor and math.random(rarity) == 1 then
   172    173   						bestow(gift)
   173         -						print(god.name .. ' has produced ' .. gift .. ' upon an altar as a gift')
          174  +						log(god.name .. ' has produced ' .. gift .. ' upon an altar as a gift')
   174    175   						if math.random(god.generosity) == 1 then
   175    176   							-- unappreciated gifts may incur divine
   176    177   							-- irritation
   177    178   							divine_favor = divine_favor - 1
   178    179   						end
   179    180   					end
   180    181   				end