Skip to content

Commit

Permalink
fix: roid split, loot speeds
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Glaser committed Sep 15, 2020
1 parent b09ccc4 commit 3cb8a4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mod/nuu/common/asteroid.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Asteroid::hit = (perp,weapon)->
NET.mods.write @, ( if @armour is 0 then 'destroyed' else 'hit' ), 0, @armour
return unless @armour is 0
if @resource.length > 1 then for r in @resource
v = @v.slice(); v[0]+=-.2+random()*.4; v[1]+=-.2+random()*.4
v = @v.slice(); v[0]+=-.02+random()*.04; v[1]+=-.02+random()*.04
Weapon.hostility perp, new Asteroid
hostile: []
resource: r
Expand Down
2 changes: 1 addition & 1 deletion mod/nuu/server/objects.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Ship::dropLoot = ->
S: $moving
x: @x + -@size/2 + Math.random()*@size
y: @y + -@size/2 + Math.random()*@size
v: [ @v[0] + Math.random()*2 - 1, @v[1] + Math.random()*2 - 1 ]
v: [ @v[0] + Math.random() * .2 - .1, @v[1] + Math.random()* .2 - .1 ]
newRandom Cargo for i in [0...10]
newRandom Debris for i in [0...10]
return
Expand Down

0 comments on commit 3cb8a4b

Please sign in to comment.