More map work
This commit is contained in:
@@ -223,7 +223,7 @@
|
|||||||
"color_stop":"rgba(246, 152, 62, 0.0)",
|
"color_stop":"rgba(246, 152, 62, 0.0)",
|
||||||
"fade":"0.15",
|
"fade":"0.15",
|
||||||
"flicker":"true",
|
"flicker":"true",
|
||||||
"light_meter":"1.5",
|
"light_meter":"0.75",
|
||||||
"radius":"128"
|
"radius":"128"
|
||||||
},
|
},
|
||||||
"type":"Lights",
|
"type":"Lights",
|
||||||
@@ -242,7 +242,7 @@
|
|||||||
"color_stop":"rgba(246, 152, 62, 0.0)",
|
"color_stop":"rgba(246, 152, 62, 0.0)",
|
||||||
"fade":"0.15",
|
"fade":"0.15",
|
||||||
"flicker":"true",
|
"flicker":"true",
|
||||||
"light_meter":"1.5",
|
"light_meter":"0.75",
|
||||||
"radius":"128"
|
"radius":"128"
|
||||||
},
|
},
|
||||||
"type":"Lights",
|
"type":"Lights",
|
||||||
|
|||||||
@@ -1290,7 +1290,7 @@ GameState.prototype.update_player_lightmeter = function() {
|
|||||||
if ( line.length > light.rendered_radius)
|
if ( line.length > light.rendered_radius)
|
||||||
return;
|
return;
|
||||||
var length = line.length;
|
var length = line.length;
|
||||||
var lv = ((Number(length) * light.light_meter) / Number(light.rendered_radius));
|
var lv = light.light_meter - (Number(length) / Number(light.rendered_radius));
|
||||||
if ( lv > lightValue ) {
|
if ( lv > lightValue ) {
|
||||||
lightValue = lv;
|
lightValue = lv;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user