mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-17 13:42:44 +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>
94 lines
3.0 KiB
Plaintext
94 lines
3.0 KiB
Plaintext
/************
|
|
* Badassery *
|
|
************/
|
|
/datum/uplink_item/item/badassery
|
|
category = /datum/uplink_category/badassery
|
|
blacklisted = 1
|
|
|
|
/datum/uplink_item/item/badassery/balloon
|
|
name = "For showing that You Are The BOSS (Useless Balloon)"
|
|
item_cost = DEFAULT_TELECRYSTAL_AMOUNT
|
|
path = /obj/item/toy/syndicateballoon
|
|
|
|
/datum/uplink_item/item/badassery/balloon/NT
|
|
name = "For showing that you love NT SOO much (Useless Balloon)"
|
|
path = /obj/item/toy/nanotrasenballoon
|
|
|
|
/**************
|
|
* Random Item *
|
|
**************/
|
|
/datum/uplink_item/item/badassery/random_one
|
|
name = "Random Item"
|
|
desc = "Buys you one random item."
|
|
|
|
/datum/uplink_item/item/badassery/random_one/buy(var/obj/item/device/uplink/U, var/mob/user)
|
|
var/datum/uplink_item/item = default_uplink_selection.get_random_item(U.uses)
|
|
return item.buy(U, user)
|
|
|
|
/datum/uplink_item/item/badassery/random_one/can_buy(obj/item/device/uplink/U)
|
|
return default_uplink_selection.get_random_item(U.uses, U) != null
|
|
|
|
/datum/uplink_item/item/badassery/random_many
|
|
name = "Random Items"
|
|
desc = "Buys you as many random items you can afford. Convenient packaging NOT included."
|
|
|
|
/datum/uplink_item/item/badassery/random_many/cost(var/telecrystals)
|
|
return max(1, telecrystals)
|
|
|
|
/datum/uplink_item/item/badassery/random_many/get_goods(var/obj/item/device/uplink/U, var/loc)
|
|
var/list/bought_items = list()
|
|
for(var/datum/uplink_item/UI in get_random_uplink_items(U, U.uses, loc))
|
|
UI.purchase_log(U)
|
|
var/obj/item/I = UI.get_goods(U, loc)
|
|
if(istype(I))
|
|
bought_items += I
|
|
|
|
return bought_items
|
|
|
|
/datum/uplink_item/item/badassery/random_many/purchase_log(obj/item/device/uplink/U)
|
|
feedback_add_details("traitor_uplink_items_bought", "[src]")
|
|
log_and_message_admins("used \the [U.loc] to buy \a [src]")
|
|
|
|
/****************
|
|
* Surplus Crate *
|
|
****************/
|
|
/datum/uplink_item/item/badassery/surplus
|
|
name = "Surplus Crate"
|
|
item_cost = DEFAULT_TELECRYSTAL_AMOUNT
|
|
var/item_worth = 240
|
|
var/icon
|
|
|
|
/datum/uplink_item/item/badassery/surplus/merc2
|
|
name = "Surplus Crate - 240 TC"
|
|
item_cost = DEFAULT_TELECRYSTAL_AMOUNT * 2
|
|
item_worth = 540
|
|
|
|
/datum/uplink_item/item/badassery/surplus/merc4
|
|
name = "Surplus Crate - 480 TC"
|
|
item_cost = DEFAULT_TELECRYSTAL_AMOUNT * 4
|
|
item_worth = 1200
|
|
|
|
/datum/uplink_item/item/badassery/surplus/merc6
|
|
name = "Surplus Crate - 720 TC"
|
|
item_cost = DEFAULT_TELECRYSTAL_AMOUNT * 6
|
|
item_worth = 1980
|
|
|
|
/datum/uplink_item/item/badassery/surplus/New()
|
|
..()
|
|
desc = "A crate containing [item_worth] telecrystal\s worth of surplus leftovers."
|
|
|
|
/datum/uplink_item/item/badassery/surplus/get_goods(var/obj/item/device/uplink/U, var/loc)
|
|
var/obj/structure/largecrate/C = new(loc)
|
|
var/random_items = get_surplus_items(null, item_worth, C)
|
|
for(var/datum/uplink_item/I in random_items)
|
|
I.purchase_log(U)
|
|
I.get_goods(U, C)
|
|
|
|
return C
|
|
|
|
/datum/uplink_item/item/badassery/surplus/log_icon()
|
|
if(!icon)
|
|
var/obj/structure/largecrate/C = /obj/structure/largecrate
|
|
icon = image(initial(C.icon), initial(C.icon_state))
|
|
|
|
return "[bicon(icon)]" |