Fixes never being able to light molotovs and makes throwing them less crap

This commit is contained in:
Yoshax
2016-05-21 15:10:49 +01:00
parent b44011a646
commit 3044f6c080
2 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@
if(!isGlass || !smash_duration)
return 0
var/list/chance_table = list(90, 90, 85, 85, 60, 35, 15) //starting from distance 0
var/list/chance_table = list(100, 95, 90, 85, 75, 55, 35) //starting from distance 0
var/idx = max(distance + 1, 1) //since list indices start at 1
if(idx > chance_table.len)
return 0