POLARIS: Tooltip framework, and mob tooltips

This commit is contained in:
Arokha Sieyes
2018-03-12 18:25:53 -04:00
committed by Leshana
parent 70ac478aea
commit de6da4a86c
31 changed files with 531 additions and 0 deletions

View File

@@ -276,3 +276,16 @@ Proc for attack log creation, because really why not
humans += H
return humans
/proc/getviewsize(view)
var/viewX
var/viewY
if(isnum(view))
var/totalviewrange = 1 + 2 * view
viewX = totalviewrange
viewY = totalviewrange
else
var/list/viewrangelist = splittext(view,"x")
viewX = text2num(viewrangelist[1])
viewY = text2num(viewrangelist[2])
return list(viewX, viewY)