mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 20:17:15 +01:00
removes center of mass list (#17064)
* removes center of mass list * . * . * fix that icon * .
This commit is contained in:
@@ -1060,10 +1060,11 @@ closest to where the cursor has clicked on.
|
||||
Note: This proc can be overwritten to allow for different types of auto-alignment.
|
||||
*/
|
||||
|
||||
/obj/item/var/list/center_of_mass = list("x" = 16,"y" = 16)
|
||||
/obj/item/var/center_of_mass_x = 16
|
||||
/obj/item/var/center_of_mass_y = 16
|
||||
|
||||
/proc/auto_align(obj/item/W, click_parameters, var/animate = FALSE)
|
||||
if(!W.center_of_mass)
|
||||
if(!W.center_of_mass_x && !W.center_of_mass_y)
|
||||
W.randpixel_xy()
|
||||
return
|
||||
|
||||
@@ -1079,8 +1080,8 @@ Note: This proc can be overwritten to allow for different types of auto-alignmen
|
||||
var/cell_x = max(0, min(CELLS-1, round(mouse_x/CELLSIZE)))
|
||||
var/cell_y = max(0, min(CELLS-1, round(mouse_y/CELLSIZE)))
|
||||
|
||||
var/target_x = (CELLSIZE * (0.5 + cell_x)) - W.center_of_mass["x"]
|
||||
var/target_y = (CELLSIZE * (0.5 + cell_y)) - W.center_of_mass["y"]
|
||||
var/target_x = (CELLSIZE * (0.5 + cell_x)) - W.center_of_mass_x
|
||||
var/target_y = (CELLSIZE * (0.5 + cell_y)) - W.center_of_mass_y
|
||||
if(animate)
|
||||
var/dist_x = abs(W.pixel_x - target_x)
|
||||
var/dist_y = abs(W.pixel_y - target_y)
|
||||
|
||||
@@ -313,7 +313,8 @@
|
||||
desc = "A desk lamp with an adjustable mount."
|
||||
icon_state = "lamp"
|
||||
force = 10
|
||||
center_of_mass = list("x" = 13,"y" = 11)
|
||||
center_of_mass_x = 13
|
||||
center_of_mass_y = 11
|
||||
light_range = 5
|
||||
w_class = ITEMSIZE_LARGE
|
||||
power_use = 0
|
||||
@@ -332,14 +333,16 @@
|
||||
/obj/item/flashlight/lamp/green
|
||||
desc = "A classic green-shaded desk lamp."
|
||||
icon_state = "lampgreen"
|
||||
center_of_mass = list("x" = 15,"y" = 11)
|
||||
center_of_mass_x = 15
|
||||
center_of_mass_y = 11
|
||||
light_color = "#FFC58F"
|
||||
|
||||
// clown lamp
|
||||
/obj/item/flashlight/lamp/clown
|
||||
desc = "A whacky banana peel shaped lamp."
|
||||
icon_state = "bananalamp"
|
||||
center_of_mass = list("x" = 15,"y" = 11)
|
||||
center_of_mass_x = 15
|
||||
center_of_mass_y = 11
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -14,7 +14,8 @@
|
||||
origin_tech = list(TECH_MATERIAL = 1)
|
||||
icon = 'icons/obj/stacks.dmi'
|
||||
randpixel = 7
|
||||
center_of_mass = null
|
||||
center_of_mass_x = 0
|
||||
center_of_mass_y = 0
|
||||
var/list/datum/stack_recipe/recipes
|
||||
var/singular_name
|
||||
var/amount = 1
|
||||
|
||||
@@ -25,7 +25,8 @@
|
||||
icon = 'icons/obj/boxes.dmi'
|
||||
icon_state = "box"
|
||||
item_state = "syringe_kit"
|
||||
center_of_mass = list("x" = 13,"y" = 10)
|
||||
center_of_mass_x = 13
|
||||
center_of_mass_y = 10
|
||||
var/foldable = /obj/item/stack/material/cardboard // BubbleWrap - if set, can be folded (when empty) into a sheet of cardboard
|
||||
var/trash = null // if set, can be crushed into a trash item when empty
|
||||
max_w_class = ITEMSIZE_SMALL
|
||||
|
||||
@@ -52,7 +52,8 @@
|
||||
icon_state = "eggbox"
|
||||
icon_type = REAGENT_ID_EGG
|
||||
name = "egg box"
|
||||
center_of_mass = list("x" = 16,"y" = 7)
|
||||
center_of_mass_x = 16
|
||||
center_of_mass_y = 7
|
||||
storage_slots = 12
|
||||
can_hold = list(
|
||||
/obj/item/reagent_containers/food/snacks/egg,
|
||||
|
||||
@@ -33,7 +33,8 @@ var/list/random_weighted_donuts = list(
|
||||
icon_state = "donutbox"
|
||||
name = "donut box"
|
||||
desc = "A box that holds tasty donuts, if you're lucky."
|
||||
center_of_mass = list("x" = 16,"y" = 9)
|
||||
center_of_mass_x = 16
|
||||
center_of_mass_y = 9
|
||||
max_storage_space = ITEMSIZE_COST_SMALL * 6
|
||||
can_hold = list(/obj/item/reagent_containers/food/snacks/donut)
|
||||
foldable = /obj/item/stack/material/cardboard
|
||||
@@ -100,4 +101,4 @@ var/list/random_weighted_donuts = list(
|
||||
|
||||
/obj/item/storage/box/wormcan/deluxe/update_icon(var/itemremoved = 0)
|
||||
if (contents.len == 0)
|
||||
icon_state = "wormcan_empty_deluxe"
|
||||
icon_state = "wormcan_empty_deluxe"
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
icon = 'icons/obj/storage_vr.dmi'
|
||||
icon_state = "red"
|
||||
item_state_slots = list(slot_r_hand_str = "toolbox_red", slot_l_hand_str = "toolbox_red")
|
||||
center_of_mass = list("x" = 16,"y" = 11)
|
||||
center_of_mass_x = 16
|
||||
center_of_mass_y = 9
|
||||
force = 10
|
||||
throwforce = 10
|
||||
throw_speed = 1
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
description_fluff = "This could be used to engrave messages on suitable surfaces if you really put your mind to it! Alt-click a floor or wall to engrave with it." //This way it's not a completely hidden, arcane art to engrave.
|
||||
icon = 'icons/obj/tools.dmi'
|
||||
icon_state = "screwdriver"
|
||||
center_of_mass = list("x" = 13,"y" = 7)
|
||||
center_of_mass_x = 13
|
||||
center_of_mass_y = 7
|
||||
slot_flags = SLOT_BELT | SLOT_EARS
|
||||
force = 6
|
||||
w_class = ITEMSIZE_TINY
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
icon = 'icons/obj/tools.dmi'
|
||||
icon_state = "cutters"
|
||||
item_state = "cutters"
|
||||
center_of_mass = list("x" = 18,"y" = 10)
|
||||
center_of_mass_x = 18
|
||||
center_of_mass_y = 10
|
||||
slot_flags = SLOT_BELT
|
||||
force = 6
|
||||
throw_speed = 2
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
icon_state = "beartrap0"
|
||||
desc = "A mechanically activated leg trap. Low-tech, but reliable. Looks like it could really hurt if you set it off."
|
||||
randpixel = 0
|
||||
center_of_mass = null
|
||||
center_of_mass_x = 0
|
||||
center_of_mass_y = 0
|
||||
throwforce = 0
|
||||
w_class = ITEMSIZE_NORMAL
|
||||
origin_tech = list(TECH_MATERIAL = 1)
|
||||
|
||||
@@ -264,7 +264,8 @@
|
||||
desc = "A collapsed roller bed that can be carried around."
|
||||
icon = 'icons/obj/rollerbed.dmi'
|
||||
icon_state = "folded_rollerbed"
|
||||
center_of_mass = list("x" = 17,"y" = 7)
|
||||
center_of_mass_x = 17
|
||||
center_of_mass_y = 7
|
||||
slot_flags = SLOT_BACK
|
||||
w_class = ITEMSIZE_LARGE
|
||||
var/rollertype = /obj/item/roller
|
||||
|
||||
@@ -7,7 +7,8 @@ var/global/list/stool_cache = list() //haha stool
|
||||
icon = 'icons/obj/furniture_vr.dmi' //VOREStation Edit - new Icons
|
||||
icon_state = "stool_preview" //set for the map
|
||||
randpixel = 0
|
||||
center_of_mass = null
|
||||
center_of_mass_x = 0
|
||||
center_of_mass_y = 0
|
||||
force = 10
|
||||
throwforce = 10
|
||||
w_class = ITEMSIZE_HUGE
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
icon = 'icons/obj/furniture_vr.dmi' //VOREStation Edit - new Icons
|
||||
icon_state = "bar_stool_preview" //set for the map
|
||||
randpixel = 0
|
||||
center_of_mass = null
|
||||
center_of_mass_x = 0
|
||||
center_of_mass_y = 0
|
||||
force = 10
|
||||
throwforce = 10
|
||||
w_class = ITEMSIZE_HUGE
|
||||
|
||||
Reference in New Issue
Block a user