mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
Fixes xenoarch runtime
This commit is contained in:
@@ -545,13 +545,9 @@
|
|||||||
new_item.desc = src.desc
|
new_item.desc = src.desc
|
||||||
|
|
||||||
if(talkative)
|
if(talkative)
|
||||||
new_item.talking_atom = new()
|
new_item.talking_atom = new(new_item)
|
||||||
talking_atom.holder_atom = new_item
|
|
||||||
talking_atom.init()
|
|
||||||
|
|
||||||
del(src)
|
del(src)
|
||||||
|
|
||||||
else if(talkative)
|
else if(talkative)
|
||||||
src.talking_atom = new()
|
src.talking_atom = new(src)
|
||||||
talking_atom.holder_atom = src
|
|
||||||
talking_atom.init()
|
|
||||||
|
|||||||
@@ -14,6 +14,10 @@
|
|||||||
var/talk_interval = 50
|
var/talk_interval = 50
|
||||||
var/talk_chance = 10
|
var/talk_chance = 10
|
||||||
|
|
||||||
|
/datum/talking_atom/New(atom/holder)
|
||||||
|
holder_atom = holder
|
||||||
|
init()
|
||||||
|
|
||||||
/datum/talking_atom/proc/init()
|
/datum/talking_atom/proc/init()
|
||||||
if(holder_atom)
|
if(holder_atom)
|
||||||
processing_objects.Add(src)
|
processing_objects.Add(src)
|
||||||
@@ -55,7 +59,7 @@
|
|||||||
|
|
||||||
if(prob(30))
|
if(prob(30))
|
||||||
var/list/options = list("[holder_atom] seems to be listening intently to [source]...",\
|
var/list/options = list("[holder_atom] seems to be listening intently to [source]...",\
|
||||||
"[holder_atom] seems to be focussing on [source]...",\
|
"[holder_atom] seems to be focusing on [source]...",\
|
||||||
"[holder_atom] seems to turn it's attention to [source]...")
|
"[holder_atom] seems to turn it's attention to [source]...")
|
||||||
holder_atom.loc.visible_message("\blue \icon[holder_atom] [pick(options)]")
|
holder_atom.loc.visible_message("\blue \icon[holder_atom] [pick(options)]")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user