Update 'mods/gunslinger/api.lua'

This commit is contained in:
thunderdog1138 2020-10-08 00:46:13 +00:00
parent fae0bb4610
commit c47c87ddfc
1 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ local function sanitize_def(def)
def.sounds.ooa = def.sounds.ooa or "gunslinger_ooa"
def.textures = def.textures or {}
def.textures.projectile = def.projectile
def.projectile = def.projectile
-- Limit zoom to 8x; default to no zoom
def.zoom = def.zoom and rangelim(1, def.zoom, 8)
@ -275,7 +275,7 @@ local function fire(stack, player)
velocity = vector.multiply(dir, config.projectile_speed * def.speed_mult),
expirationtime = def.range / (config.projectile_speed * def.speed_mult),
size = 3,
texture = def.textures.projectile,
texture = def.projectile,
collisiondetection = true,
collision_removal = true,
object_collision = true,