Advertisement
Guest User

REEEE chairs

a guest
Dec 8th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.50 KB | None | 0 0
  1. obj/structure/bed/chair //YES, chairs are a type of bed, which are a type of stool. This works, believe me. -Pete
  2. name = "chair"
  3. desc = "You sit in this, either by will or force."
  4. icon_state = "chair_preview"
  5. color = "#666666"
  6. base_icon = "chair"
  7. buckle_dir = 0
  8. buckle_lying = 0 //force people to sit up in chairs when buckled
  9. obj_flags = OBJ_FLAG_ROTATABLE
  10. var/propelled = 0 // Check for fire-extinguisher-driven chairs
  11. /obj/structure/bed/chair/do_simple_ranged_interaction(var/mob/user)
  12. if(!buckled_mob && user)
  13. rotate(user)
  14. return TRUE
  15. /obj/structure/bed/chair/attackby(obj/item/weapon/W as obj, mob/user as mob)
  16. ..()
  17. if(!padding_material && istype(W, /obj/item/assembly/shock_kit))
  18. var/obj/item/assembly/shock_kit/SK = W
  19. if(!SK.status)
  20. to_chat(user, "<span class='notice'>\The [SK] is not ready to be attached!</span>")
  21. return
  22. if(!user.unEquip(SK))
  23. return
  24. var/obj/structure/bed/chair/e_chair/E = new (src.loc, material.name)
  25. playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
  26. base_icon = "e_chair"
  27. E.set_dir(dir)
  28. E.part = SK
  29. SK.forceMove(E)
  30. SK.master = E
  31. qdel(src)
  32. /obj/structure/bed/chair/post_buckle_mob()
  33. update_icon()
  34. return ..()
  35.  
  36. /obj/structure/bed/chair/on_update_icon()
  37. ..()
  38.  
  39. var/cache_key = "[base_icon]-[material.name]-over"
  40. if(isnull(stool_cache[cache_key]))
  41. var/image/I = image('icons/obj/furniture.dmi', "[base_icon]_over")
  42. if(material_alteration & MATERIAL_ALTERATION_COLOR)
  43. I.color = material.icon_colour
  44. I.plane = ABOVE_HUMAN_PLANE
  45. I.layer = ABOVE_HUMAN_LAYER
  46. stool_cache[cache_key] = I
  47. overlays |= stool_cache[cache_key]
  48. // Padding overlay.
  49. if(padding_material)
  50. var/padding_cache_key = "[base_icon]-padding-[padding_material.name]-over"
  51. if(isnull(stool_cache[padding_cache_key]))
  52. var/image/I = image(icon, "[base_icon]_padding_over")
  53. if(material_alteration & MATERIAL_ALTERATION_COLOR)
  54. I.color = padding_material.icon_colour
  55. I.plane = ABOVE_HUMAN_PLANE
  56. I.layer = ABOVE_HUMAN_LAYER
  57. stool_cache[padding_cache_key] = I
  58. overlays |= stool_cache[padding_cache_key]
  59.  
  60. if(buckled_mob)
  61. if(padding_material)
  62. cache_key = "[base_icon]-armrest-[padding_material.name]"
  63. if(isnull(stool_cache[cache_key]))
  64. var/image/I = image(icon, "[base_icon]_armrest")
  65. I.plane = ABOVE_HUMAN_PLANE
  66. I.layer = ABOVE_HUMAN_LAYER
  67. if(material_alteration & MATERIAL_ALTERATION_COLOR)
  68. I.color = material.icon_colour
  69. stool_cache[cache_key] = I
  70. overlays |= stool_cache[cache_key]
  71. if(padding_material)
  72. cache_key = "[base_icon]-padding-armrest-[padding_material.name]"
  73. if(isnull(stool_cache[cache_key]))
  74. var/image/I = image(icon, "[base_icon]_padding_armrest")
  75. I.plane = ABOVE_HUMAN_PLANE
  76. I.layer = ABOVE_HUMAN_LAYER
  77. if(material_alteration & MATERIAL_ALTERATION_COLOR)
  78. I.color = padding_material.icon_colour
  79. stool_cache[cache_key] = I
  80. overlays |= stool_cache[cache_key]
  81.  
  82. /obj/structure/bed/chair/rotate(mob/user)
  83. if(!CanPhysicallyInteract(user))
  84. to_chat(user, SPAN_NOTICE("You can't interact with \the [src] right now!"))
  85. return
  86.  
  87. set_dir(turn(dir, 90))
  88. update_icon()
  89.  
  90. /obj/structure/bed/chair/set_dir()
  91. ..()
  92. if(buckled_mob)
  93. buckled_mob.set_dir(dir)
  94.  
  95. /obj/structure/bed/chair/padded/red/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  96. ..(newloc, newmaterial, MATERIAL_CARPET)
  97.  
  98. /obj/structure/bed/chair/padded/brown/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  99. ..(newloc, newmaterial, MATERIAL_LEATHER_GENERIC)
  100.  
  101. /obj/structure/bed/chair/padded/teal/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  102. ..(newloc, newmaterial, "teal")
  103.  
  104. /obj/structure/bed/chair/padded/black/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  105. ..(newloc, newmaterial, "black")
  106.  
  107. /obj/structure/bed/chair/padded/green/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  108. ..(newloc, newmaterial, "green")
  109.  
  110. /obj/structure/bed/chair/padded/purple/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  111. ..(newloc, newmaterial, "purple")
  112.  
  113. /obj/structure/bed/chair/padded/blue/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  114. ..(newloc, newmaterial, "blue")
  115.  
  116. /obj/structure/bed/chair/padded/beige/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  117. ..(newloc, newmaterial, "beige")
  118.  
  119. /obj/structure/bed/chair/padded/lime/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  120. ..(newloc, newmaterial, "lime")
  121.  
  122. /obj/structure/bed/chair/padded/yellow/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  123. ..(newloc, newmaterial, "yellow")
  124. //[INF]
  125. /obj/structure/bed/chair/padded/light/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  126. ..(newloc, newmaterial, MATERIAL_CLOTH)
  127. //[/INF]
  128. // Leaving this in for the sake of compilation.
  129. /obj/structure/bed/chair/comfy
  130. name = "comfy chair"
  131. desc = "It's a chair. It looks comfy."
  132. icon_state = "comfychair_preview"
  133. base_icon = "comfychair"
  134.  
  135. /obj/structure/bed/chair/comfy/brown/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  136. ..(newloc, newmaterial, MATERIAL_LEATHER_GENERIC)
  137.  
  138. /obj/structure/bed/chair/comfy/red/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  139. ..(newloc, newmaterial, MATERIAL_CARPET)
  140.  
  141. /obj/structure/bed/chair/comfy/teal/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  142. ..(newloc, newmaterial, "teal")
  143.  
  144. /obj/structure/bed/chair/comfy/black/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  145. ..(newloc, newmaterial, "black")
  146.  
  147. /obj/structure/bed/chair/comfy/green/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  148. ..(newloc, newmaterial, "green")
  149.  
  150. /obj/structure/bed/chair/comfy/purple/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  151. ..(newloc, newmaterial, "purple")
  152.  
  153. /obj/structure/bed/chair/comfy/blue/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  154. ..(newloc, newmaterial, "blue")
  155.  
  156. /obj/structure/bed/chair/comfy/beige/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  157. ..(newloc, newmaterial, "beige")
  158.  
  159. /obj/structure/bed/chair/comfy/lime/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  160. ..(newloc, newmaterial, "lime")
  161.  
  162. /obj/structure/bed/chair/comfy/yellow/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  163. ..(newloc, newmaterial, "yellow")
  164.  
  165. /obj/structure/bed/chair/comfy/captain
  166. name = "captain chair"
  167. desc = "It's a chair. Only for the highest ranked asses."
  168. icon_state = "capchair_preview"
  169. base_icon = "capchair"
  170. buckle_movable = 1
  171.  
  172. /obj/structure/bed/chair/comfy/captain/on_update_icon()
  173. ..()
  174. var/image/I = image(icon, "[base_icon]_special")
  175. I.plane = ABOVE_HUMAN_PLANE
  176. I.layer = ABOVE_HUMAN_LAYER
  177. overlays |= I
  178.  
  179. /obj/structure/bed/chair/comfy/captain/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  180. ..(newloc,MATERIAL_STEEL,"blue")
  181.  
  182. /obj/structure/bed/chair/armchair
  183. name = "armchair"
  184. desc = "It's an armchair. It looks comfy."
  185. icon_state = "armchair_preview"
  186. base_icon = "armchair"
  187.  
  188. /obj/structure/bed/chair/armchair/brown/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  189. ..(newloc, newmaterial, MATERIAL_LEATHER_GENERIC)
  190.  
  191. /obj/structure/bed/chair/armchair/red/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  192. ..(newloc, newmaterial, MATERIAL_CARPET)
  193.  
  194. /obj/structure/bed/chair/armchair/teal/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  195. ..(newloc, newmaterial, "teal")
  196.  
  197. /obj/structure/bed/chair/armchair/black/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  198. ..(newloc, newmaterial, "black")
  199.  
  200. /obj/structure/bed/chair/armchair/green/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  201. ..(newloc, newmaterial, "green")
  202.  
  203. /obj/structure/bed/chair/armchair/purple/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  204. ..(newloc, newmaterial, "purple")
  205.  
  206. /obj/structure/bed/chair/armchair/blue/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  207. ..(newloc, newmaterial, "blue")
  208.  
  209. /obj/structure/bed/chair/armchair/beige/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  210. ..(newloc, newmaterial, "beige")
  211.  
  212. /obj/structure/bed/chair/armchair/lime/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  213. ..(newloc, newmaterial, "lime")
  214.  
  215. /obj/structure/bed/chair/armchair/yellow/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  216. ..(newloc, newmaterial, "yellow")
  217.  
  218. /obj/structure/bed/chair/office
  219. name = "office chair"
  220. icon_state = "officechair_preview"
  221. base_icon = "officechair"
  222. anchored = 0
  223. buckle_movable = 1
  224.  
  225. /obj/structure/bed/chair/office/Move()
  226. . = ..()
  227. if(buckled_mob)
  228. var/mob/living/occupant = buckled_mob
  229. if (occupant && (src.loc != occupant.loc))
  230. if (propelled)
  231. for (var/mob/O in src.loc)
  232. if (O != occupant)
  233. Bump(O)
  234. else
  235. unbuckle_mob()
  236.  
  237. /obj/structure/bed/chair/office/Bump(atom/A)
  238. ..()
  239. if(!buckled_mob) return
  240.  
  241. if(propelled)
  242. var/mob/living/occupant = unbuckle_mob()
  243.  
  244. var/def_zone = ran_zone()
  245. var/blocked = 100 * occupant.get_blocked_ratio(def_zone, BRUTE)
  246. occupant.throw_at(A, 3, propelled)
  247. occupant.apply_effect(6, STUN, blocked)
  248. occupant.apply_effect(6, WEAKEN, blocked)
  249. occupant.apply_effect(6, STUTTER, blocked)
  250. occupant.apply_damage(10, BRUTE, def_zone)
  251. playsound(src.loc, 'sound/weapons/punch1.ogg', 50, 1, -1)
  252. if(istype(A, /mob/living))
  253. var/mob/living/victim = A
  254. def_zone = ran_zone()
  255. blocked = 100 * victim.get_blocked_ratio(def_zone, BRUTE)
  256. victim.apply_effect(6, STUN, blocked)
  257. victim.apply_effect(6, WEAKEN, blocked)
  258. victim.apply_effect(6, STUTTER, blocked)
  259. victim.apply_damage(10, BRUTE, def_zone)
  260. occupant.visible_message("<span class='danger'>[occupant] crashed into \the [A]!</span>")
  261.  
  262. /obj/structure/bed/chair/office/light/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  263. ..(newloc, newmaterial, MATERIAL_CLOTH)
  264.  
  265. //[INF]
  266. /obj/structure/bed/chair/office/yellow/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  267. ..(newloc, newmaterial, "yellow")
  268.  
  269. /obj/structure/bed/chair/office/brown/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  270. ..(newloc, newmaterial, "leather")
  271.  
  272. /obj/structure/bed/chair/office/teal/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  273. ..(newloc, newmaterial, "teal")
  274.  
  275. /obj/structure/bed/chair/office/red/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  276. ..(newloc, newmaterial, "carpet")
  277.  
  278. /obj/structure/bed/chair/office/blue/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  279. ..(newloc, newmaterial, "blue")
  280.  
  281. /obj/structure/bed/chair/office/purple/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  282. ..(newloc, newmaterial, "purple")
  283. //[/INF]
  284. /obj/structure/bed/chair/office/dark/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  285. ..(newloc, newmaterial, "black")
  286.  
  287. /obj/structure/bed/chair/office/comfy
  288. name = "comfy office chair"
  289. desc = "It's an office chair. It looks comfy."
  290. icon_state = "comfyofficechair_preview"
  291. base_icon = "comfyofficechair"
  292.  
  293. /obj/structure/bed/chair/office/comfy/brown/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  294. ..(newloc, newmaterial, MATERIAL_LEATHER_GENERIC)
  295.  
  296. /obj/structure/bed/chair/office/comfy/red/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  297. ..(newloc, newmaterial, MATERIAL_CARPET)
  298.  
  299. /obj/structure/bed/chair/office/comfy/teal/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  300. ..(newloc, newmaterial, "teal")
  301.  
  302. /obj/structure/bed/chair/office/comfy/black/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  303. ..(newloc, newmaterial, "black")
  304.  
  305. /obj/structure/bed/chair/office/comfy/green/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  306. ..(newloc, newmaterial, "green")
  307.  
  308. /obj/structure/bed/chair/office/comfy/purple/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  309. ..(newloc, newmaterial, "purple")
  310.  
  311. /obj/structure/bed/chair/office/comfy/blue/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  312. ..(newloc, newmaterial, "blue")
  313.  
  314. /obj/structure/bed/chair/office/comfy/beige/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  315. ..(newloc, newmaterial, "beige")
  316.  
  317. /obj/structure/bed/chair/office/comfy/lime/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  318. ..(newloc, newmaterial, "lime")
  319.  
  320. /obj/structure/bed/chair/office/comfy/yellow/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  321. ..(newloc, newmaterial, "yellow")
  322.  
  323. /obj/structure/bed/chair/shuttle
  324. name = "shuttle seat"
  325. desc = "A comfortable, secure seat. It has a sturdy-looking buckling system for smoother flights."
  326. base_icon = "shuttle_chair"
  327. icon_state = "shuttle_chair_preview"
  328. buckling_sound = 'sound/effects/metal_close.ogg'
  329.  
  330. /obj/structure/bed/chair/shuttle/post_buckle_mob()
  331. if(buckled_mob)
  332. base_icon = "shuttle_chair-b"
  333. else
  334. base_icon = "shuttle_chair"
  335. ..()
  336.  
  337. /obj/structure/bed/chair/shuttle/on_update_icon()
  338. ..()
  339. if(!buckled_mob)
  340. var/image/I = image(icon, "[base_icon]_special")
  341. I.plane = ABOVE_HUMAN_PLANE
  342. I.layer = ABOVE_HUMAN_LAYER
  343. if(material_alteration & MATERIAL_ALTERATION_COLOR)
  344. I.color = material.icon_colour
  345. overlays |= I
  346.  
  347. /obj/structure/bed/chair/shuttle/blue/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  348. ..(newloc,MATERIAL_STEEL,"blue")
  349.  
  350. /obj/structure/bed/chair/shuttle/black/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  351. ..(newloc,MATERIAL_STEEL,"black")
  352.  
  353. /obj/structure/bed/chair/shuttle/white/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  354. ..(newloc,MATERIAL_STEEL,MATERIAL_CLOTH)
  355. //[INF]
  356. /obj/structure/bed/chair/shuttle/red/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  357. ..(newloc, MATERIAL_STEEL, MATERIAL_CARPET)
  358.  
  359. /obj/structure/bed/chair/shuttle/green/New(newloc, newmaterial = DEFAULT_FURNITURE_MATERIAL)
  360. ..(newloc, MATERIAL_STEEL, "green")
  361. //[/INF]
  362. /obj/structure/bed/chair/wood
  363. name = "classic chair"
  364. desc = "Old is never too old to not be in fashion."
  365. base_icon = "wooden_chair"
  366. icon_state = "wooden_chair_preview"
  367. color = WOOD_COLOR_GENERIC
  368. var/chair_material = MATERIAL_WOOD
  369.  
  370. /obj/structure/bed/chair/wood/attackby(obj/item/weapon/W as obj, mob/user as mob)
  371. if(istype(W,/obj/item/stack) || istype(W, /obj/item/weapon/wirecutters))
  372. return
  373. ..()
  374.  
  375. /obj/structure/bed/chair/wood/New(var/newloc)
  376. ..(newloc, chair_material)
  377.  
  378. /obj/structure/bed/chair/wood/mahogany
  379. color = WOOD_COLOR_RICH
  380. chair_material = MATERIAL_MAHOGANY
  381.  
  382. /obj/structure/bed/chair/wood/maple
  383. color = WOOD_COLOR_PALE
  384. chair_material = MATERIAL_MAPLE
  385.  
  386. /obj/structure/bed/chair/wood/ebony
  387. color = WOOD_COLOR_BLACK
  388. chair_material = MATERIAL_EBONY
  389.  
  390. /obj/structure/bed/chair/wood/walnut
  391. color = WOOD_COLOR_CHOCOLATE
  392. chair_material = MATERIAL_WALNUT
  393.  
  394. /obj/structure/bed/chair/wood/wings
  395. name = "winged chair"
  396. base_icon = "wooden_chair_wings"
  397. icon_state = "wooden_chair_wings_preview"
  398.  
  399. /obj/structure/bed/chair/wood/wings/mahogany
  400. color = WOOD_COLOR_RICH
  401. chair_material = MATERIAL_MAHOGANY
  402.  
  403. /obj/structure/bed/chair/wood/wings/maple
  404. color = WOOD_COLOR_PALE
  405. chair_material = MATERIAL_MAPLE
  406.  
  407. /obj/structure/bed/chair/wood/wings/ebony
  408. color = WOOD_COLOR_BLACK
  409. chair_material = MATERIAL_EBONY
  410.  
  411. /obj/structure/bed/chair/wood/wings/walnut
  412. color = WOOD_COLOR_CHOCOLATE
  413. chair_material = MATERIAL_WALNUT
  414.  
  415. /obj/structure/bed/chair/pew
  416. name = "pew"
  417. desc = "A long, simple bench with a backboard, commonly found in places of worship, courtrooms and so on. Not known for being particularly comfortable."
  418. icon_state = "pew"
  419. base_icon = "pew"
  420. color = WOOD_COLOR_GENERIC
  421. var/material/pew_material = MATERIAL_WOOD
  422. obj_flags = 0
  423.  
  424. /obj/structure/bed/chair/pew/left
  425. icon_state = "pew_left"
  426. base_icon = "pew_left"
  427.  
  428. /obj/structure/bed/chair/pew/New(var/newloc)
  429. ..(newloc, pew_material)
  430.  
  431. /obj/structure/bed/chair/pew/mahogany
  432. color = WOOD_COLOR_RICH
  433. pew_material = MATERIAL_MAHOGANY
  434.  
  435. /obj/structure/bed/chair/pew/left/mahogany
  436. color = WOOD_COLOR_RICH
  437. pew_material = MATERIAL_MAHOGANY
  438.  
  439. //[INF]
  440. //Deconstruct
  441. /obj/structure/bed/chair/comfy/attackby(obj/item/weapon/W as obj, mob/user as mob)
  442. if(isWrench(W))
  443. playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1)
  444. to_chat(user, "<span class='notice'>You deconstruct comfy chair</span>")
  445. new /obj/item/stack/material/steel(src.loc, 3)
  446. qdel(src)
  447.  
  448. /obj/structure/bed/chair/office/attackby(obj/item/weapon/W as obj, mob/user as mob)
  449. if(isWrench(W))
  450. playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1)
  451. to_chat(user, "<span class='notice'>You deconstruct office chair</span>")
  452. new /obj/item/stack/material/steel(src.loc, 5)
  453. qdel(src)
  454.  
  455. /obj/structure/bed/chair/office/comfy/attackby(obj/item/weapon/W as obj, mob/user as mob)
  456. if(isWrench(W))
  457. playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1)
  458. to_chat(user, "<span class='notice'>You deconstruct office comfy chair</span>")
  459. new /obj/item/stack/material/steel(src.loc, 7)
  460. qdel(src)
  461.  
  462. /obj/structure/bed/chair/padded/attackby(obj/item/weapon/W as obj, mob/user as mob)
  463. if(isWrench(W))
  464. playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1)
  465. to_chat(user, "<span class='notice'>You deconstruct padded chair</span>")
  466. new /obj/item/stack/material/steel(src.loc, 2)
  467. qdel(src)
  468.  
  469. /obj/structure/bed/chair/armchair/attackby(obj/item/weapon/W as obj, mob/user as mob)
  470. if(isWrench(W))
  471. playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1)
  472. to_chat(user, "<span class='notice'>You deconstruct comfy chair</span>")
  473. new /obj/item/stack/material/steel(src.loc, 4)
  474. qdel(src)
  475.  
  476. /obj/structure/bed/chair/wood/attackby(obj/item/weapon/W as obj, mob/user as mob)
  477. if(isWrench(W))
  478. playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1)
  479. to_chat(user, "<span class='notice'>You deconstruct wood chair</span>")
  480. new /obj/item/stack/material/wood(src.loc, 3)
  481. qdel(src)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement