removing redundant interface "Visible"

Former-commit-id: 3ecfd08eef27d9035bcc98a4f2a6a2f4f89bab01
Former-commit-id: 08dad158f609d0aaf6f999ea17c120a966f1ada5
This commit is contained in:
Song Minjae
2016-11-14 12:23:39 +09:00
parent 4dd74381a8
commit 0b20869fa4
6 changed files with 39 additions and 40 deletions

View File

@@ -46,6 +46,12 @@ internal class AILuaAPI(g: Globals, actor: ActorWithBody) {
t["width"] = actor.hitbox.width
t["height"] = actor.hitbox.height
t["mass"] = actor.mass
t["collision_type"] = actor.collisionType
t["strength"] = actor.actorValue.getAsInt(AVKey.STRENGTH) ?: 0
val lumrgb: Int = actor.actorValue.getAsInt(AVKey.LUMINOSITY) ?: 0
val MUL_2 = LightmapRenderer.MUL_2
val MUL = LightmapRenderer.MUL
@@ -53,7 +59,7 @@ internal class AILuaAPI(g: Globals, actor: ActorWithBody) {
t["luminosity_rgb"] = lumrgb
t["luminosity"] = (lumrgb.div(MUL_2).and(CHMAX).times(3) +
lumrgb.div(MUL).and(CHMAX).times(4) +
lumrgb.and(1023)) / 8
lumrgb.and(1023)) / 8 // quick luminosity calculation
return t
}