mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 13:05:44 +01:00
Bun, Inferno->React migration (#22529)
Re-creation of https://github.com/Aurorastation/Aurora.3/pull/21046 to skip merge conflict hell. Brings us modern TGUI. **ALTERNATE TITLE: TGUI HELLSCAPE PR ABANDON ALL HOPE YE WHO ENTER HERE** - [x] Migrate build tools (javascript -> typescript, bun for package management). - [x] Upgrade all TGUI dependencies and associated root files to TG-congruent versions (axios, babel, dompurify, eslint, highlight, marked, prettier, sass, source-map, stacktrace-parser, typescript). - [x] InfernoJS -> React migrations - [x] React cleanup and polish (migrate all remaining .js files to appropriate .ts or .tsx filetype, all remaining hooks, linting, error corrections, etc.) - [ ] Test all remaining TGUI interfaces
This commit is contained in:
@@ -6,16 +6,20 @@
|
||||
pass_flags_self = PASSSTRUCTURE
|
||||
should_use_health = TRUE
|
||||
|
||||
var/material_alteration = MATERIAL_ALTERATION_ALL // Overrides for material shit. Set them manually if you don't want colors etc. See wood chairs/office chairs.
|
||||
/// Overrides for material shit. Set them manually if you don't want colors etc. See wood chairs/office chairs.
|
||||
var/material_alteration = MATERIAL_ALTERATION_ALL
|
||||
var/climbable
|
||||
var/parts
|
||||
var/list/climbers
|
||||
var/list/footstep_sound //footstep sounds when stepped on
|
||||
/// Footstep sounds when stepped on
|
||||
var/list/footstep_sound
|
||||
|
||||
var/material/material
|
||||
var/build_amt = 2 // used by some structures to determine into how many pieces they should disassemble into or be made with
|
||||
/// Used by some structures to determine into how many pieces they should disassemble into or be made with
|
||||
var/build_amt = 2
|
||||
|
||||
var/slowdown = 0 //amount that pulling mobs have their movement delayed by
|
||||
/// Amount that pulling mobs have their movement delayed by
|
||||
var/slowdown = 0
|
||||
|
||||
/obj/structure/Initialize(mapload)
|
||||
. = ..()
|
||||
@@ -40,6 +44,14 @@
|
||||
material = null
|
||||
return ..()
|
||||
|
||||
/obj/structure/examine_descriptor(mob/user)
|
||||
return "structure"
|
||||
|
||||
/obj/structure/examine_tags(atom/source, mob/user, list/examine_list)
|
||||
. = ..()
|
||||
if(climbable)
|
||||
.["climbable"] = "It can be climbed on, either by dragging your mob onto it or middle-clicking it."
|
||||
|
||||
/obj/structure/attackby(obj/item/attacking_item, mob/user, params)
|
||||
. = ..()
|
||||
if(user?.a_intent == I_HURT && maxhealth)
|
||||
|
||||
Reference in New Issue
Block a user