adds the relevant things (#5402)

This commit is contained in:
Heretical Lizard
2022-12-17 18:59:53 -05:00
committed by GitHub
parent 98a9921c4f
commit 0113a34738
17 changed files with 115 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
//Ratvarian spear: A relatively fragile spear from the Celestial Derelict. Deals extreme damage to silicons and enemy cultists, but doesn't last long when summoned.
/obj/item/weapon/ratvarian_spear
name = "ratvarian spear"
desc = "A razor-sharp spear made of brass. It thrums with barely-contained energy."
icon = 'modular_chomp/icons/obj/clockwork_objects.dmi'
icon_state = "ratvarian_spear"
item_state = "ratvarian_spear"
item_icons = list(slot_l_hand_str = 'modular_chomp/icons/mob/items/clockwork_lefthand.dmi', slot_r_hand_str = 'modular_chomp/icons/mob/items/clockwork_righthand.dmi')
force = 20
throwforce = 30
armor_penetration = 10
sharp = TRUE
edge = TRUE
attack_verb = list("stabbed", "poked", "slashed")
hitsound = 'sound/weapons/bladeslice.ogg'
w_class = ITEMSIZE_HUGE

View File

@@ -20,7 +20,10 @@
boot_type = /obj/item/clothing/shoes/magboots/rig/ch/clockwork
cell_type = /obj/item/weapon/cell/clockwork
allowed = list(
allowed = list(/obj/item/device/flashlight,
/obj/item/weapon/tank,/obj/item/device/suit_cooling_unit,/obj/item/weapon/storage/bag/ore,
/obj/item/device/t_scanner,/obj/item/weapon/pickaxe, /obj/item/weapon/rcd,/obj/item/weapon/storage/backpack,
/obj/item/device/bluespaceradio, /obj/item/device/defib_kit, /obj/item/weapon/ratvarian_spear
)
initial_modules = list(
@@ -57,7 +60,7 @@
name = "hierophant ansible"
desc = "A curiously cold brass doodad. It seems as though it really doesn't appreciate being held. Due to it's size and the apparent electrical arc, it might be useful as a battery?"
origin_tech = list(TECH_POWER = 8, TECH_ENGINEERING = 6)
icon = 'icons/obj/clockwork_objects.dmi'
icon = 'modular_chomp/icons/obj/clockwork_objects.dmi'
icon_state = "hierophant_ansible"
maxcharge = 4800 //same stats as a void cell, but slower at recharging itself
charge_amount = 120

View File

@@ -0,0 +1,91 @@
//clockcult gun
/obj/item/weapon/gun/energy/clockwork
name = "clockwork rifle"
desc = "A rifle that looks to be made entirely out of brass. It has a charging handle on the side, but doesn't seem to have a way to eject the magazine underneath."
icon = 'modular_chomp/icons/obj/guns/clockwork/guns_ch.dmi'
icon_state = "clockrifle"
item_state = "clockrifle"
wielded_item_state = "clockrifle-wielded"
slot_flags = SLOT_BACK
item_icons = list(slot_l_hand_str = 'modular_chomp/icons/mob/items/lefthand_guns_ch.dmi', slot_r_hand_str = 'modular_chomp/icons/mob/items/righthand_guns_ch.dmi', "slot_back" = 'modular_chomp/icons/mob/guns_back_ch.dmi')
origin_tech = list(TECH_COMBAT = 4, TECH_MAGNET = 2, TECH_POWER = 4)
projectile_type = /obj/item/projectile/bullet/rifle/clockwork
w_class = ITEMSIZE_HUGE
one_handed_penalty = 90
accuracy = 45
charge_cost = 300
battery_lock = 1
unacidable = TRUE
var/recharging = 0
var/phase_power = 2400
firemodes = list(
list(mode_name="burst", burst=3, fire_delay=8, projectile_type=/obj/item/projectile/bullet/rifle/clockwork, charge_cost = 80),
list(mode_name="volt beam", fire_delay=12, projectile_type=/obj/item/projectile/beam/shock/clockwork, charge_cost = 2400),
)
cell_type = /obj/item/weapon/cell/device/weapon/empproof
/obj/item/weapon/gun/energy/clockwork/unload_ammo(var/mob/user)
if(recharging)
return
recharging = 1
update_icon()
playsound(src,'modular_chomp/sound/weapons/clockwork/clockwork_cock.ogg',25,1)
user.visible_message("<span class='notice'>[user] pulls the charging handle on \the [src] and it whirrs to life!</span>", \
"<span class='notice'>You pull the charging handle on \the [src] and begin the reloading sequence.</span>")
playsound(src,'modular_chomp/sound/weapons/clockwork/cwc_rifle_fabricate.ogg',25,5)
while(recharging)
if(!do_after(user, 50, src))
break
user.hud_used.update_ammo_hud(user, src)
if(power_supply.give(phase_power) < phase_power)
break
recharging = 0
update_icon()
user.hud_used.update_ammo_hud(user, src) // Update one last time once we're finished!
/obj/item/projectile/bullet/rifle/clockwork
fire_sound = 'modular_chomp/sound/weapons/clockwork/cwc_rifle_fire.ogg'
damage = 20
hud_state = "rifle_heavy"
/obj/item/projectile/beam/shock/clockwork
name = "shock beam"
fire_sound = 'modular_chomp/sound/weapons/clockwork/voltbeam_fire.ogg'
icon_state = "lightning"
damage_type = ELECTROCUTE
muzzle_type = /obj/effect/projectile/muzzle/voltbeam
tracer_type = /obj/effect/projectile/tracer/voltbeam
impact_type = /obj/effect/projectile/impact/voltbeam
damage = 40
agony = 15
eyeblur = 2
hitsound = 'sound/effects/lightningshock.ogg'
hitsound_wall = 'modular_chomp/sound/weapons/clockwork/voltbeamsearwall.ogg'
hud_state = "taser"
/obj/effect/projectile/muzzle/voltbeam
icon = 'modular_chomp/icons/obj/guns/clockwork/projectiles_tracer_ch.dmi'
icon_state = "muzzle_volt_ray"
light_range = 2
light_power = 1
light_color = "#DAAA18"
/obj/effect/projectile/tracer/voltbeam
icon = 'modular_chomp/icons/obj/guns/clockwork/projectiles_tracer_ch.dmi'
icon_state = "volt_ray"
light_range = 2
light_power = 1
light_color = "#DAAA18"
/obj/effect/projectile/impact/voltbeam
icon = 'modular_chomp/icons/obj/guns/clockwork/projectiles_tracer_ch.dmi'
icon_state = "impact_volt_ray"
light_range = 2
light_power = 1
light_color = "#DAAA18"