mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-05 14:32:52 +00:00
Converts most spans into span procs. Mostly used regex for this and sorted out any compile time errors afterwards so there could be some bugs. Was initially going to do defines, but ninja said to make it into a proc, and if there's any overhead, they can easily be changed to defines. Makes it easier to control the formatting and prevents typos when creating spans as it'll runtime if you misspell instead of silently failing. Reduces the code you need to write when writing spans, as you don't need to close the span as that's automatically handled by the proc. (Note from Lemon: This should be converted to defines once we update the minimum version to 514. Didn't do it now because byond pain and such)
79 lines
2.9 KiB
Plaintext
79 lines
2.9 KiB
Plaintext
/obj/structure/chess
|
|
anchored = FALSE
|
|
density = FALSE
|
|
icon = 'icons/obj/chess.dmi'
|
|
icon_state = "white_pawn"
|
|
name = "\improper Probably a White Pawn"
|
|
desc = "This is weird. Please inform adminstration on how you managed to get the parent chess piece. Thanks!"
|
|
max_integrity = 100
|
|
|
|
/obj/structure/chess/wrench_act(mob/user, obj/item/tool)
|
|
to_chat(user, span_notice("You start to take apart the chess piece."))
|
|
if(!do_after(user, 0.5 SECONDS, target = src))
|
|
return TRUE
|
|
var/obj/item/stack/sheet/iron/metal_sheets = new (drop_location(), 2)
|
|
metal_sheets.add_fingerprint(user)
|
|
tool.play_tool_sound(src)
|
|
qdel(src)
|
|
return TRUE
|
|
|
|
/obj/structure/chess/whitepawn
|
|
name = "\improper White Pawn"
|
|
desc = "A white pawn chess piece. Get accused of cheating when executing a sick En Passant."
|
|
icon_state = "white_pawn"
|
|
|
|
/obj/structure/chess/whiterook
|
|
name = "\improper White Rook"
|
|
desc = "A white rook chess piece. Also known as a castle. Can move any number of tiles in a straight line. It has a special move called castling."
|
|
icon_state = "white_rook"
|
|
|
|
/obj/structure/chess/whiteknight
|
|
name = "\improper White Knight"
|
|
desc = "A white knight chess piece. It can hop over other pieces, moving in L shapes. A white kni- oh. Hah!"
|
|
icon_state = "white_knight"
|
|
|
|
/obj/structure/chess/whitebishop
|
|
name = "\improper White Bishop"
|
|
desc = "A white bishop chess piece. It can move any number of tiles in a diagonal line."
|
|
icon_state = "white_bishop"
|
|
|
|
/obj/structure/chess/whitequeen
|
|
name = "\improper White Queen"
|
|
desc = "A white queen chess piece. It can move any number of tiles in diagonal and straight lines."
|
|
icon_state = "white_queen"
|
|
|
|
/obj/structure/chess/whiteking
|
|
name = "\improper White King"
|
|
desc = "A white king chess piece. It can move any tile in one direction."
|
|
icon_state = "white_king"
|
|
|
|
/obj/structure/chess/blackpawn
|
|
name = "\improper Black Pawn"
|
|
desc = "A black pawn chess piece. Get accused of cheating when executing a sick En Passant."
|
|
icon_state = "black_pawn"
|
|
|
|
/obj/structure/chess/blackrook
|
|
name = "\improper Black Rook"
|
|
desc = "A black rook chess piece. Also known as a castle. Can move any number of tiles in a straight line. It has a special move called castling."
|
|
icon_state = "black_rook"
|
|
|
|
/obj/structure/chess/blackknight
|
|
name = "\improper Black Knight"
|
|
desc = "A black knight chess piece. It can hop over other pieces, moving in L shapes."
|
|
icon_state = "black_knight"
|
|
|
|
/obj/structure/chess/blackbishop
|
|
name = "\improper Black Bishop"
|
|
desc = "A black bishop chess piece. It can move any number of tiles in a diagonal line."
|
|
icon_state = "black_bishop"
|
|
|
|
/obj/structure/chess/blackqueen
|
|
name = "\improper Black Queen"
|
|
desc = "A black queen chess piece. It can move any number of tiles in diagonal and straight lines."
|
|
icon_state = "black_queen"
|
|
|
|
/obj/structure/chess/blackking
|
|
name = "\improper Black King"
|
|
desc = "A black king chess piece. It can move one tile in any direction."
|
|
icon_state = "black_king"
|