mirror of
https://github.com/evilew/GS13-Citadel.git
synced 2026-08-30 16:48:23 +01:00
* sync (#3) * shuttle auto call * Merge /vore into /master (#39) * progress * Compile errors fixed No idea if it's test worthy tho as conflicts with race overhaul and narky removal. * Update admins.txt * efforts continue Fuck grab code, seriously * grab code is cancer * Execute the Narkism Do not hesitate. Show no mercy. * holy shit grab code is awful * have I bitched about grab code My bitching, let me show you it * código de agarre es una mierda No really it is * yeah I don't even know anymore. * Lolnope. Fuck grab code * I'm not even sure what to fix anymore * Self eating is not an acceptable fate * Taste the void, son. * My code doesn't pass it's own sanity check. Maybe it's a sign of things to come. * uncommented and notes * It Works and I Don't Know Why (#38) * shuttle auto call * it works and I don't know why * Subsystem 12/21 Most Recent TG subsystem folder * globalvars 12/21 Tossed out the flavor_misc and parallax files * Onclick 12/21 as well as .dme updates * _defines 12/21 ommited old _MC.dm * _HELPERS 12/21 Preserved snowflake placement of furry sprites * _defeines/genetics reapplied narkism holdover for snowflake races. * Oops forgot mutant colors * modules porting 12/21 + Sounds/icons Admin, Client and most of mob life files ommitted * enviroment file * Admin optimizations ahelp log system kept * Mob ports 12/21 Flavor text preserved * datums ported 12/21 * Game ported 12/21 * batch of duplicate fixes/dogborg work Dogborgs need to be modernized to refractored borg standards. * moar fixes * Maps and futher compile fixes
76 lines
2.5 KiB
Plaintext
76 lines
2.5 KiB
Plaintext
var/global/list/datum/stack_recipe/rod_recipes = list ( \
|
|
new/datum/stack_recipe("grille", /obj/structure/grille, 2, time = 10, one_per_turf = 1, on_floor = 1), \
|
|
new/datum/stack_recipe("table frame", /obj/structure/table_frame, 2, time = 10, one_per_turf = 1, on_floor = 1), \
|
|
new/datum/stack_recipe("scooter frame", /obj/item/scooter_frame, 10, time = 25, one_per_turf = 0), \
|
|
)
|
|
|
|
/obj/item/stack/rods
|
|
name = "metal rod"
|
|
desc = "Some rods. Can be used for building, or something."
|
|
singular_name = "metal rod"
|
|
icon_state = "rods"
|
|
item_state = "rods"
|
|
flags = CONDUCT
|
|
w_class = WEIGHT_CLASS_NORMAL
|
|
force = 9
|
|
throwforce = 10
|
|
throw_speed = 3
|
|
throw_range = 7
|
|
materials = list(MAT_METAL=1000)
|
|
max_amount = 50
|
|
attack_verb = list("hit", "bludgeoned", "whacked")
|
|
hitsound = 'sound/weapons/grenadelaunch.ogg'
|
|
|
|
/obj/item/stack/rods/New(var/loc, var/amount=null)
|
|
..()
|
|
|
|
recipes = rod_recipes
|
|
update_icon()
|
|
|
|
/obj/item/stack/rods/update_icon()
|
|
var/amount = get_amount()
|
|
if((amount <= 5) && (amount > 0))
|
|
icon_state = "rods-[amount]"
|
|
else
|
|
icon_state = "rods"
|
|
|
|
/obj/item/stack/rods/attackby(obj/item/W, mob/user, params)
|
|
if (istype(W, /obj/item/weapon/weldingtool))
|
|
var/obj/item/weapon/weldingtool/WT = W
|
|
|
|
if(get_amount() < 2)
|
|
user << "<span class='warning'>You need at least two rods to do this!</span>"
|
|
return
|
|
|
|
if(WT.remove_fuel(0,user))
|
|
var/obj/item/stack/sheet/metal/new_item = new(usr.loc)
|
|
user.visible_message("[user.name] shaped [src] into metal with the welding tool.", \
|
|
"<span class='notice'>You shape [src] into metal with the welding tool.</span>", \
|
|
"<span class='italics'>You hear welding.</span>")
|
|
var/obj/item/stack/rods/R = src
|
|
src = null
|
|
var/replace = (user.get_inactive_held_item()==R)
|
|
R.use(2)
|
|
if (!R && replace)
|
|
user.put_in_hands(new_item)
|
|
|
|
else if(istype(W,/obj/item/weapon/reagent_containers/food/snacks))
|
|
var/obj/item/weapon/reagent_containers/food/snacks/S = W
|
|
if(amount != 1)
|
|
user << "<span class='warning'>You must use a single rod!</span>"
|
|
else if(S.w_class > WEIGHT_CLASS_SMALL)
|
|
user << "<span class='warning'>The ingredient is too big for [src]!</span>"
|
|
else
|
|
var/obj/item/weapon/reagent_containers/food/snacks/customizable/A = new/obj/item/weapon/reagent_containers/food/snacks/customizable/kebab(get_turf(src))
|
|
A.initialize_custom_food(src, S, user)
|
|
else
|
|
return ..()
|
|
|
|
/obj/item/stack/rods/cyborg
|
|
materials = list()
|
|
is_cyborg = 1
|
|
cost = 250
|
|
|
|
/obj/item/stack/rods/cyborg/update_icon()
|
|
return
|