mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-27 23:28:10 +01:00
to_chat replacing stream operator
This commit is contained in:
@@ -36,8 +36,8 @@ var/global/datum/locations/milky_way/all_locations = new()
|
||||
choice = input(user, "Please choose a location.","Locations") as null|anything in choice.contents
|
||||
else
|
||||
break
|
||||
user << choice.name
|
||||
user << choice.desc
|
||||
to_chat(user,choice.name)
|
||||
to_chat(user,choice.desc)
|
||||
return choice
|
||||
|
||||
// var/datum/locations/choice = input(user, "Please choose a location.","Locations") as null|anything in all_locations
|
||||
@@ -46,11 +46,11 @@ var/global/datum/locations/milky_way/all_locations = new()
|
||||
|
||||
/*
|
||||
/datum/locations/proc/show_contents()
|
||||
// world << "[src]\n[desc]"
|
||||
// to_world("[src]\n[desc]")
|
||||
for(var/datum/locations/a in contents)
|
||||
world << "[a]\n[a.parent ? "Located in [a.parent]\n" : ""][a.desc]"
|
||||
to_world("[a]\n[a.parent ? "Located in [a.parent]\n" : ""][a.desc]")
|
||||
a.show_contents()
|
||||
world << "\n"
|
||||
to_world("\n")
|
||||
|
||||
/datum/locations/proc/count_locations()
|
||||
var/i = 0
|
||||
@@ -72,5 +72,5 @@ var/global/datum/locations/milky_way/all_locations = new()
|
||||
set name = "Count Locations"
|
||||
set category = "Debug"
|
||||
var/location_number = locations.count_locations()
|
||||
world << location_number
|
||||
to_world(location_number)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user