mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-21 23:52:48 +00:00
* Better notifications * Add buttons to del/move tabs in edit mode * Add a <span> to emotes * Fix duplicate IDs in VChat and add more logging * VChat: Redone chat output in Vue.js * Ported tg asset cache * VChat DME Update * Replace \image macro with bicon() * NanoUI Subsystem Fixes Don't do this, the asset subsystem does this for you * Allow narrate/globalnarrate shenanigans Allows HTML if your entire thing is HTML * Disable bicon() icon object cache, and create text tag cache * Ore Scanner is written incorrectly Only revealed by vchat * Fixes 2 VChat bugs * Underline links in VChat * Fix LOOC color * VChat Improvements Hopefully, anyway. - Arbitrary font size setting - Line height setting - Multiple crush settings - Rewrote how tabs work hopefully for performance - Hidden messages are actually put elsewhere - Attempts to correct chat backlog restore on rejoin * Surgery steps to use <span> * Some VChat Tweaks - Chat remains between client reconnects if your client didn't close (so things like using the reconnect button, or autoreconnects at round end when that feels like working) - The client doesn't send pings to the server, the server sends pings to the client. This fixes AFK measurements for AFK kick purposes. - Turn latency indicator into a green/red indicator to show if you're connected, and when clicked will perform a one-time ping (and block doing it again for 10 seconds). It will display '?ms' if it never got a reply, or '999ms' if it did, but it was over 1s. * Include date in filename for VChat log save * Merge pull request #6767 from Cyantime/patch-2 Change chat export naming scheme * Adds VChat tab saving Saves every time you enter/exit edit mode. Persists between rounds, VChat reloads via verb, etc. * Fix chat exporting when someone has used unicode Only affects clients still using 512 * Use CLIENT_FROM_VAR for ease of code reading * Update code/modules/client/asset_cache.dm Co-Authored-By: Novacat <35587478+Novacat@users.noreply.github.com> * Fix runtime when client disconnects before vchat loads * Fix polaris version of command reports * Fix LOOC color in oldchat * Put some styles in various adminpm messages * Round info and advanced who spans * Fix missing tag-end * Maybe fix images for linux and statpanel but also doom everyone Co-authored-by: ShadowLarkens <ShadowLarkens@users.noreply.github.com> Co-authored-by: Novacat <35587478+Novacat@users.noreply.github.com>
102 lines
3.3 KiB
Plaintext
102 lines
3.3 KiB
Plaintext
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
// fossils
|
|
|
|
/obj/item/weapon/fossil
|
|
name = "Fossil"
|
|
icon = 'icons/obj/xenoarchaeology.dmi'
|
|
icon_state = "bone"
|
|
desc = "It's a fossil."
|
|
var/animal = 1
|
|
|
|
/obj/item/weapon/fossil/base/New()
|
|
var/list/l = list(/obj/item/weapon/fossil/bone = 9,/obj/item/weapon/fossil/skull = 3,
|
|
/obj/item/weapon/fossil/skull/horned = 2)
|
|
var/t = pickweight(l)
|
|
new t(src.loc)
|
|
qdel(src)
|
|
|
|
/obj/item/weapon/fossil/bone
|
|
name = "Fossilised bone"
|
|
icon_state = "bone"
|
|
desc = "It's a fossilised bone."
|
|
|
|
/obj/item/weapon/fossil/skull
|
|
name = "Fossilised skull"
|
|
icon_state = "skull"
|
|
desc = "It's a fossilised skull."
|
|
|
|
/obj/item/weapon/fossil/skull/horned
|
|
icon_state = "hskull"
|
|
desc = "It's a fossilised, horned skull."
|
|
|
|
/obj/item/weapon/fossil/skull/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
|
if(istype(W,/obj/item/weapon/fossil/bone))
|
|
var/obj/o = new /obj/skeleton(get_turf(src))
|
|
var/a = new /obj/item/weapon/fossil/bone
|
|
var/b = new src.type
|
|
o.contents.Add(a)
|
|
o.contents.Add(b)
|
|
qdel(W)
|
|
qdel(src)
|
|
|
|
/obj/skeleton
|
|
name = "Incomplete skeleton"
|
|
icon = 'icons/obj/xenoarchaeology.dmi'
|
|
icon_state = "uskel"
|
|
desc = "Incomplete skeleton."
|
|
var/bnum = 1
|
|
var/breq
|
|
var/bstate = 0
|
|
var/plaque_contents = "Unnamed alien creature"
|
|
|
|
/obj/skeleton/New()
|
|
src.breq = rand(6)+3
|
|
src.desc = "An incomplete skeleton, looks like it could use [src.breq-src.bnum] more bones."
|
|
|
|
/obj/skeleton/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
|
if(istype(W,/obj/item/weapon/fossil/bone))
|
|
if(!bstate)
|
|
bnum++
|
|
src.contents.Add(new/obj/item/weapon/fossil/bone)
|
|
qdel(W)
|
|
if(bnum==breq)
|
|
usr = user
|
|
icon_state = "skel"
|
|
src.bstate = 1
|
|
src.density = 1
|
|
src.name = "alien skeleton display"
|
|
if(src.contents.Find(/obj/item/weapon/fossil/skull/horned))
|
|
src.desc = "A creature made of [src.contents.len-1] assorted bones and a horned skull. The plaque reads \'[plaque_contents]\'."
|
|
else
|
|
src.desc = "A creature made of [src.contents.len-1] assorted bones and a skull. The plaque reads \'[plaque_contents]\'."
|
|
else
|
|
src.desc = "Incomplete skeleton, looks like it could use [src.breq-src.bnum] more bones."
|
|
to_chat(user, "Looks like it could use [src.breq-src.bnum] more bones.")
|
|
else
|
|
..()
|
|
else if(istype(W,/obj/item/weapon/pen))
|
|
plaque_contents = sanitize(input("What would you like to write on the plaque:","Skeleton plaque",""))
|
|
user.visible_message("[user] writes something on the base of [src].","You relabel the plaque on the base of [bicon(src)] [src].")
|
|
if(src.contents.Find(/obj/item/weapon/fossil/skull/horned))
|
|
src.desc = "A creature made of [src.contents.len-1] assorted bones and a horned skull. The plaque reads \'[plaque_contents]\'."
|
|
else
|
|
src.desc = "A creature made of [src.contents.len-1] assorted bones and a skull. The plaque reads \'[plaque_contents]\'."
|
|
else
|
|
..()
|
|
|
|
//shells and plants do not make skeletons
|
|
/obj/item/weapon/fossil/shell
|
|
name = "Fossilised shell"
|
|
icon_state = "shell"
|
|
desc = "It's a fossilised shell."
|
|
|
|
/obj/item/weapon/fossil/plant
|
|
name = "Fossilised plant"
|
|
icon_state = "plant1"
|
|
desc = "It's fossilised plant remains."
|
|
animal = 0
|
|
|
|
/obj/item/weapon/fossil/plant/New()
|
|
icon_state = "plant[rand(1,4)]"
|