mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
- Moved byjax callback processing to JS part. - Disabled exosuits verbs from showing when RMButtoning. - Added radios to exosuits. Setting can be found in 'Electronics' menu. - Exosuit maintenance can be initiated even if it's occupied. The pilot must permit maintenance through 'Permissions & Logging' - 'Permit maintenance protocols'. For combat exosuits it's disabled by default. While in maintenance mode, exosuit can't move or use equipment. - Nerfed EMP effect on mechs. - Fixed build_path for atmospheric monitor circuitboard design - Bugfixing and bugmaking. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2343 316c924e-a436-60f5-8080-3fe189b3f50e
56 lines
1.0 KiB
Plaintext
56 lines
1.0 KiB
Plaintext
/datum/topic_input
|
|
var/href
|
|
var/list/href_list
|
|
|
|
New(thref,list/thref_list)
|
|
href = thref
|
|
href_list = thref_list.Copy()
|
|
return
|
|
|
|
proc/get(i)
|
|
return listgetindex(href_list,i)
|
|
|
|
proc/getAndLocate(i)
|
|
var/t = get(i)
|
|
if(t)
|
|
t = locate(t)
|
|
return t || null
|
|
|
|
proc/getNum(i)
|
|
var/t = get(i)
|
|
if(t)
|
|
t = text2num(t)
|
|
return isnum(t) ? t : null
|
|
|
|
proc/getObj(i)
|
|
var/t = getAndLocate(i)
|
|
return isobj(t) ? t : null
|
|
|
|
proc/getMob(i)
|
|
var/t = getAndLocate(i)
|
|
return ismob(t) ? t : null
|
|
|
|
proc/getTurf(i)
|
|
var/t = getAndLocate(i)
|
|
return isturf(t) ? t : null
|
|
|
|
proc/getAtom(i)
|
|
return getType(i,/atom)
|
|
|
|
proc/getArea(i)
|
|
var/t = getAndLocate(i)
|
|
return isarea(t) ? t : null
|
|
|
|
proc/getStr(i)//params should always be text, but...
|
|
var/t = get(i)
|
|
return istext(t) ? t : null
|
|
|
|
proc/getType(i,type)
|
|
var/t = getAndLocate(i)
|
|
return istype(t,type) ? t : null
|
|
|
|
proc/getPath(i)
|
|
var/t = get(i)
|
|
if(t)
|
|
t = text2path(t)
|
|
return ispath(t) ? t : null |