Overview
Comment: | really unbreak imbue this time, also fix dumb rune bug |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
f9d8ede806d69389f4c0c7f841d61941 |
User & Date: | lexi on 2021-07-05 03:24:04 |
Other Links: | manifest | tags |
Context
2021-07-05
| ||
16:47 | add new god, add idol crafting recipes, fix bugs check-in: 6e7b450ec7 user: lexi tags: trunk | |
03:24 | really unbreak imbue this time, also fix dumb rune bug check-in: f9d8ede806 user: lexi tags: trunk | |
03:07 | bug fixes, add spellshatter visuals, maybe finally defuckulate imbuement effect? check-in: b24c5f49c7 user: lexi tags: trunk | |
Changes
Modified data/runes.lua from [6661143040] to [829a9ad70b].
1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 |
-- end
minetest.get_meta(npos):from_table(origmeta)
return npos, true
else
local nstack = ItemStack(ty)
nstack:get_meta():from_table(origmeta)
local leftover = ctx.caster:get_inventory():add_item('main',nstack)
if leftover and not leftover.is_empty() then
minetest.add_item(ctx.caster:get_pos(), leftover)
end
end
end
else
return false
end
|
| |
1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 |
-- end
minetest.get_meta(npos):from_table(origmeta)
return npos, true
else
local nstack = ItemStack(ty)
nstack:get_meta():from_table(origmeta)
local leftover = ctx.caster:get_inventory():add_item('main',nstack)
if leftover and not leftover:is_empty() then
minetest.add_item(ctx.caster:get_pos(), leftover)
end
end
end
else
return false
end
|
Modified vfx.lua from [d83b2a6c69] to [659d5f0d60].
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
local ppos = vector.add(po,tpos) local dir = vector.direction(ppos,scenter) local vel = math.random() * 0.8 + 0.4 local col if type(color) == 'function' then col = color(i, {high = high, far = far, dir = dir, vel = vel, pos = po}) else col = color end minetest.add_particle { pos = ppos; velocity = vector.multiply(dir,vel); expirationtime = far / vel; size = math.random()*2.4 + 0.6; texture = sorcery.lib.image('sorcery_sputter.png'):glow(col):render(); glow = 14; animation = { type = 'vertical_frames', length = math.floor((far/vel)*10)*.10; aspect_w = 16, aspect_h = 16 }; } end end function sorcery.vfx.drip(liquid, noz, amt, time, exp) |
> | | |
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
local ppos = vector.add(po,tpos) local dir = vector.direction(ppos,scenter) local vel = math.random() * 0.8 + 0.4 local col if type(color) == 'function' then col = color(i, {high = high, far = far, dir = dir, vel = vel, pos = po}) else col = color end local et = math.floor((far/vel)*10)*.1 minetest.add_particle { pos = ppos; velocity = vector.multiply(dir,vel); expirationtime = 0.4; size = math.random()*2.4 + 0.6; texture = sorcery.lib.image('sorcery_sputter.png'):glow(col):render(); glow = 14; animation = { type = 'vertical_frames', length = 0.4; aspect_w = 16, aspect_h = 16 }; } end end function sorcery.vfx.drip(liquid, noz, amt, time, exp) |