Skip to content

Commit

Permalink
The Inhandening PR + Some organization (#1552)
Browse files Browse the repository at this point in the history
* Adds 62 unique inhands

* quick alignment fix
  • Loading branch information
TaculoTaculo authored Oct 18, 2023
1 parent 89d6ec3 commit 095e2b5
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 6 deletions.
Binary file modified ModularTegustation/Teguicons/lc13_left.dmi
Binary file not shown.
Binary file modified ModularTegustation/Teguicons/lc13_right.dmi
Binary file not shown.
Binary file modified ModularTegustation/Teguicons/lc13_weapons.dmi
Binary file not shown.
11 changes: 11 additions & 0 deletions code/game/objects/items/ego_weapons/aleph.dm
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@
/obj/item/ego_weapon/soulmate/Initialize()
RegisterSignal(src, COMSIG_PROJECTILE_ON_HIT, .proc/projectile_hit)
..()
AddElement(/datum/element/update_icon_updates_onmob)

/obj/item/ego_weapon/soulmate/attack(mob/living/target, mob/living/user)
..()
Expand All @@ -470,6 +471,7 @@
gunmark_targets = list()
bladebuff = TRUE
icon_state = "soulmate_blade"
update_icon_state()
update_icon()
attack_speed = 0.4
gunmark_cooldown = world.time + mark_cooldown_time
Expand Down Expand Up @@ -506,6 +508,7 @@
blademark_targets = list()
gunbuff = TRUE
icon_state = "soulmate_gun"
update_icon_state()
update_icon()
blademark_cooldown = world.time + mark_cooldown_time
addtimer(CALLBACK(src, .proc/GunRevert), 80)
Expand All @@ -517,13 +520,15 @@
/obj/item/ego_weapon/soulmate/proc/BladeRevert()
if(bladebuff)
icon_state = "soulmate"
update_icon_state()
update_icon()
attack_speed = 0.8
bladebuff = FALSE

/obj/item/ego_weapon/soulmate/proc/GunRevert()
if(gunbuff)
icon_state = "soulmate"
update_icon_state()
update_icon()
gunbuff = FALSE

Expand Down Expand Up @@ -553,6 +558,10 @@
)
var/canaoe

/obj/item/ego_weapon/space/Initialize()
..()
AddElement(/datum/element/update_icon_updates_onmob)

/obj/item/ego_weapon/space/attack_self(mob/living/carbon/user)
if(!CanUseEgo(user))
return
Expand All @@ -571,6 +580,7 @@
return

icon_state = "space_aoe"
update_icon_state()
user.density = FALSE
user.adjustStaminaLoss(15, TRUE, TRUE)
user.throw_at(dodgelanding, 3, 2, spin = FALSE) // This still collides with people, by the way.
Expand Down Expand Up @@ -601,6 +611,7 @@
L.apply_damage(aoe, BLACK_DAMAGE, null, L.run_armor_check(null, BLACK_DAMAGE), spread_damage = TRUE)
L.apply_damage(aoe, WHITE_DAMAGE, null, L.run_armor_check(null, WHITE_DAMAGE), spread_damage = TRUE)
icon_state = "space"
update_icon_state()
canaoe = FALSE

/obj/item/ego_weapon/space/EgoAttackInfo(mob/user)
Expand Down
6 changes: 6 additions & 0 deletions code/game/objects/items/ego_weapons/special.dm
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@
var/ramping_speed = 0 //maximum of 20
var/ramping_damage = 0 //no maximum, will stack as long as people are attacking with it.

/obj/item/ego_weapon/iron_maiden/Initialize()
..()
AddElement(/datum/element/update_icon_updates_onmob)

/obj/item/ego_weapon/iron_maiden/proc/Multihit(mob/living/target, mob/living/user, attack_amount)
sleep(1)
for(var/i = 1 to attack_amount)
Expand Down Expand Up @@ -179,6 +183,7 @@
if(icon_state != "iron_maiden_open")
playsound(src, 'sound/abnormalities/we_can_change_anything/change_gas.ogg', 50, TRUE)
icon_state = "iron_maiden_open"
update_icon_state()
Multihit(target, user, 3)
return

Expand All @@ -190,6 +195,7 @@
playsound(src, 'sound/abnormalities/we_can_change_anything/change_gas.ogg', 50, TRUE)
if(do_after(user, 2.5 SECONDS, src))
icon_state = "iron_maiden"
update_icon_state()
playsound(src, 'sound/abnormalities/we_can_change_anything/change_start.ogg', 50, FALSE)
ramping_speed = 0
ramping_damage = 0
Expand Down
4 changes: 4 additions & 0 deletions code/game/objects/items/ego_weapons/teth.dm
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@
desc = "Home sweet home. Warmth and safety aplenty."
special = "This weapon has a ranged attack."
icon_state = "hearth"
lefthand_file = 'icons/mob/inhands/64x64_lefthand.dmi'
righthand_file = 'icons/mob/inhands/64x64_righthand.dmi'
inhand_x_dimension = 64
inhand_y_dimension = 64
var/icon_on = "hearth_glow"
var/icon_off = "hearth"
force = 18
Expand Down
3 changes: 2 additions & 1 deletion code/modules/projectiles/guns/ego_gun/he.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
name = "gaze"
desc = "A magnum pistol featuring excellent burst firing potential."
icon_state = "gaze"
inhand_icon_state = "executive"
inhand_icon_state = "gaze"
ammo_type = /obj/item/ammo_casing/caseless/ego_gaze
fire_delay = 20
fire_sound = 'sound/weapons/gun/pistol/deagle.ogg'
Expand Down Expand Up @@ -137,6 +137,7 @@
name = "harmony"
desc = "A massive blocky launcher with some suspicious stains on it."
icon_state = "harmony"
inhand_icon_state = "harmony"
special = "This weapon fires bouncing, piercing shots."
ammo_type = /obj/item/ammo_casing/caseless/ego_harmony
fire_sound = 'sound/weapons/ego/harmony1.ogg'
Expand Down
2 changes: 1 addition & 1 deletion code/modules/projectiles/guns/ego_gun/teth.dm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
name = "beak mk2"
desc = "A heavy revolver that fires at a surprisingly fast rate, and is deadly accurate."
icon_state = "beakmagnum"
inhand_icon_state = "beak"
inhand_icon_state = "beakmagnum"
special = "This weapon has pinpoint accuracy when dual wielded."
ammo_type = /obj/item/ammo_casing/caseless/ego_beakmagnum
fire_delay = 20
Expand Down
5 changes: 1 addition & 4 deletions code/modules/projectiles/guns/ego_gun/zayin.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
desc = "A glock reminiscent of a certain detective who fought evil for 25 years, losing hair as time went by."
special = "Use this weapon in your hand when wearing matching armor to turn others nearby bald."
icon_state = "bald"
inhand_icon_state = "gun"
worn_icon_state = "gun"
lefthand_file = 'icons/mob/inhands/weapons/guns_lefthand.dmi'
righthand_file = 'icons/mob/inhands/weapons/guns_righthand.dmi'
inhand_icon_state = "bald"
ammo_type = /obj/item/ammo_casing/caseless/ego_tough
burst_size = 1
fire_delay = 10
Expand Down
Binary file modified icons/mob/inhands/64x64_lefthand.dmi
Binary file not shown.
Binary file modified icons/mob/inhands/64x64_righthand.dmi
Binary file not shown.
Binary file modified icons/mob/inhands/weapons/ego_lefthand.dmi
Binary file not shown.
Binary file modified icons/mob/inhands/weapons/ego_righthand.dmi
Binary file not shown.
Binary file modified icons/obj/ego_weapons.dmi
Binary file not shown.

0 comments on commit 095e2b5

Please sign in to comment.