mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-11 17:35:05 +00:00
* basic antag items hey based game is on ree e brings back good sprites eueuuee eeeeeeeeeeeeeeeeeeee more tgui baby FINALLY e Small changes adds better point s Finishing touch! FINISHED ANTAG FINISHED. FUCKING. FINALLY grammer E E? * rebuilt tgui * gamemode fixes * i love inconsistent var names * sprootes * ath review Co-authored-by: ATH1909 <42606352+ATH1909@users.noreply.github.com> * Automatic changelog compile [ci skip] * a shit ton of changes * Apply suggestions from code review Co-authored-by: Qustinnus <Floydje123@hotmail.com> Co-authored-by: ATH1909 <42606352+ATH1909@users.noreply.github.com> * sprootes * more changes ree * Fixes and upgrades * sprootes done * dmdoc compliance * Apply suggestions from code review Co-authored-by: Rohesie <rohesie@gmail.com> * Apply suggestions from code review Co-authored-by: Rohesie <rohesie@gmail.com> * mewtewnew revieww ~~ * e * Automatic changelog compile [ci skip] * e * Apply suggestions from code review Co-authored-by: Rohesie <rohesie@gmail.com> * E * autodoc * E * Apply suggestions from code review Co-authored-by: Rohesie <rohesie@gmail.com> * removed Destroy() * * 0.5 * bugsquash * e * changes to ashlord's rite * e e * e? * the fuck * adds station wide alerts for ascension events * fixes an autodoc * tgui * e e * removes a redundant line of code * sickly blade is now normal size item * changes a line of code in flesh * no revives for ghouls! * uwu * Update code/modules/antagonists/eldritch_cult/eldritch_knowledge.dm Co-authored-by: nemvar <47324920+nemvar@users.noreply.github.com> * E * E2 * Automatic changelog compile [ci skip] * Makes eldritch cult into HERETICS * Apply suggestions from code review Co-authored-by: Rohesie <rohesie@gmail.com> * E * unfucks medallions code * long live list loops * E * E * i love my git crashing * Magics * E * removes TRAIT_GHOUL since it was redundant * Update code/modules/mob/living/carbon/inventory.dm Co-authored-by: Rohesie <rohesie@gmail.com> * Update code/modules/mob/living/carbon/inventory.dm Co-authored-by: Rohesie <rohesie@gmail.com> * Update code/modules/mob/living/carbon/human/species.dm Co-authored-by: Rohesie <rohesie@gmail.com> * Update code/modules/mob/living/carbon/human/species.dm Co-authored-by: Rohesie <rohesie@gmail.com> * Update code/modules/mob/living/carbon/human/human_update_icons.dm Co-authored-by: Rohesie <rohesie@gmail.com> * fixies uwu * hopefully i fixed all return ..() * E * EEEEEEE * wormie now is refactored * removes destroy * Update code/modules/surgery/bodyparts/bodyparts.dm Co-authored-by: Rohesie <rohesie@gmail.com> * Automatic changelog compile [ci skip] * Update code/modules/mob/living/simple_animal/eldritch_demons.dm Co-authored-by: Rohesie <rohesie@gmail.com> * Update code/modules/antagonists/eldritch_cult/knowledge/rust_lore.dm Co-authored-by: Rohesie <rohesie@gmail.com> * Update code/modules/antagonists/eldritch_cult/knowledge/rust_lore.dm Co-authored-by: Rohesie <rohesie@gmail.com> * E * E * Update code/modules/mob/living/simple_animal/eldritch_demons.dm Co-authored-by: Rohesie <rohesie@gmail.com> * Update code/modules/antagonists/eldritch_cult/knowledge/rust_lore.dm Co-authored-by: Rohesie <rohesie@gmail.com> * Update code/modules/mob/living/simple_animal/eldritch_demons.dm Co-authored-by: Rohesie <rohesie@gmail.com> * Update code/modules/mob/living/simple_animal/eldritch_demons.dm Co-authored-by: Rohesie <rohesie@gmail.com> * E * E? * E * one more * k * OH SHIT OH FUCK * replaces ROLE_ECULT with ROLE_HERETIC and fixes preferences * REE * fleshy fixes * fixes summonings * REE * texture fix * fixes a stupid fucking runtime that i noticed coz i forgot people can be borged. FUCK * grammer * nullrods can now remove runes * HOLY SHIT, HOTFIX NERF * E * E * TEMPORARY SOLUTION TO MAKE HERETICS SPAWN NATURALLY * Update code/modules/antagonists/eldritch_cult/eldritch_antag.dm Co-authored-by: Rohesie <rohesie@gmail.com> * Update code/modules/antagonists/eldritch_cult/eldritch_book.dm Co-authored-by: Rohesie <rohesie@gmail.com> * Update code/modules/antagonists/eldritch_cult/eldritch_effects.dm Co-authored-by: Rohesie <rohesie@gmail.com> * Update code/modules/antagonists/eldritch_cult/eldritch_items.dm Co-authored-by: Rohesie <rohesie@gmail.com> * SECOND TEMPORARY FIX * fixes fixes fixes fixes * i hope this no longer will qdel summons * E * please push this asap * E * buffs sickly blade to 17 damage and only allowes culties to use it * Explanations uwu * examine changes ree * e * E * ) * E * E * Ash fix * changes to mad touch * replaces e_cult with heretics and fixes protect objective to suceed when someone suicides * E * makes worm code use COMSIG_MOVABLE_MOVED * replaces bad var names * makes eldritch knowledge an assoc list * E * Update code/modules/mob/living/simple_animal/eldritch_demons.dm Co-authored-by: Rohesie <rohesie@gmail.com> * what the fuck * the fuck * fixies * EEE * fixes * e * fixes * mansus grasp slight buff * changes overall changes * E * logging * changes the eldritch armor into a nicer looking kryson robes * tgui bundle * QOL sprites and a spell to contract armsy * SPRITES * readds rust floors * Fixes pointed out by anturk * E * E * E * Apply suggestions from code review Co-authored-by: Rohesie <rohesie@gmail.com> * Cleanup * Fixes * E * EEEEEEEEEEE * makes heretics a little bit more common * Update code/modules/antagonists/eldritch_cult/knowledge/flesh_lore.dm Co-authored-by: Rohesie <rohesie@gmail.com> * EEE * eee * E * E * Init * Makes shit more readable * h * e * E * wounds compatibility patch * hnng * rusty better sprite * turn * Apply suggestions from code review Co-authored-by: Aleksej Komarov <stylemistake@gmail.com> * E * further renames e * E * JS side * changes reee * e * E * yeesh * e * E * pr * e * E * changes re * AAAAAAAAAAAAAA * e * antag huud * e * e * hnnng * hnng * HNNNNG final patch - LAST TESTMERGABLE COMMIT * HNNG NEVERMIND THIS IS THE LAST TESTMERGABLE COMMIT DONT LISTEN TO LIES BELOW * e * FINAL PATCH - MERGE READY Adds defines, buffs blood siphon a bit so it can utilize wounds and replaces ROLE_CULTIST with ROLE_HERETIC * forgot about a single debug line aaa * hnnnhng * hng * a! * aaa * applies code review * e Co-authored-by: ATH1909 <42606352+ATH1909@users.noreply.github.com> Co-authored-by: Changelogs <action@github.com> Co-authored-by: Qustinnus <Floydje123@hotmail.com> Co-authored-by: Rohesie <rohesie@gmail.com> Co-authored-by: nemvar <47324920+nemvar@users.noreply.github.com> Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
135 lines
4.2 KiB
Plaintext
135 lines
4.2 KiB
Plaintext
/obj/structure
|
|
icon = 'icons/obj/structures.dmi'
|
|
pressure_resistance = 8
|
|
max_integrity = 300
|
|
interaction_flags_atom = INTERACT_ATOM_ATTACK_HAND | INTERACT_ATOM_UI_INTERACT
|
|
layer = BELOW_OBJ_LAYER
|
|
flags_ricochet = RICOCHET_HARD
|
|
ricochet_chance_mod = 0.5
|
|
|
|
var/climb_time = 20
|
|
var/climb_stun = 20
|
|
var/climbable = FALSE
|
|
var/mob/living/structureclimber
|
|
var/broken = 0 //similar to machinery's stat BROKEN
|
|
|
|
|
|
/obj/structure/Initialize()
|
|
if (!armor)
|
|
armor = list("melee" = 0, "bullet" = 0, "laser" = 0, "energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 50, "acid" = 50)
|
|
. = ..()
|
|
if(smooth)
|
|
queue_smooth(src)
|
|
queue_smooth_neighbors(src)
|
|
icon_state = ""
|
|
GLOB.cameranet.updateVisibility(src)
|
|
|
|
/obj/structure/Destroy()
|
|
GLOB.cameranet.updateVisibility(src)
|
|
if(smooth)
|
|
queue_smooth_neighbors(src)
|
|
return ..()
|
|
|
|
/obj/structure/attack_hand(mob/user)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
if(structureclimber && structureclimber != user)
|
|
user.changeNext_move(CLICK_CD_MELEE)
|
|
user.do_attack_animation(src)
|
|
structureclimber.Paralyze(40)
|
|
structureclimber.visible_message("<span class='warning'>[structureclimber] is knocked off [src].</span>", "<span class='warning'>You're knocked off [src]!</span>", "<span class='warning'>You see [structureclimber] get knocked off [src].</span>")
|
|
|
|
/obj/structure/ui_act(action, params)
|
|
. = ..()
|
|
add_fingerprint(usr)
|
|
|
|
/obj/structure/MouseDrop_T(atom/movable/O, mob/user)
|
|
. = ..()
|
|
if(!climbable)
|
|
return
|
|
if(user == O && isliving(O))
|
|
var/mob/living/L = O
|
|
if(isanimal(L))
|
|
var/mob/living/simple_animal/A = L
|
|
if (!A.dextrous)
|
|
return
|
|
if(L.mobility_flags & MOBILITY_MOVE)
|
|
climb_structure(user)
|
|
return
|
|
if(!istype(O, /obj/item) || user.get_active_held_item() != O)
|
|
return
|
|
if(iscyborg(user))
|
|
return
|
|
if(!user.dropItemToGround(O))
|
|
return
|
|
if (O.loc != src.loc)
|
|
step(O, get_dir(O, src))
|
|
|
|
/obj/structure/proc/do_climb(atom/movable/A)
|
|
if(climbable)
|
|
if(A.loc == src.loc)
|
|
var/where_to_climb = get_step(A,dir)
|
|
if(!(is_blocked_turf(where_to_climb)))
|
|
A.forceMove(where_to_climb)
|
|
return TRUE
|
|
density = FALSE
|
|
. = step(A,get_dir(A,src.loc))
|
|
density = TRUE
|
|
|
|
/obj/structure/proc/climb_structure(mob/living/user)
|
|
src.add_fingerprint(user)
|
|
user.visible_message("<span class='warning'>[user] starts climbing onto [src].</span>", \
|
|
"<span class='notice'>You start climbing onto [src]...</span>")
|
|
var/adjusted_climb_time = climb_time
|
|
if(user.restrained()) //climbing takes twice as long when restrained.
|
|
adjusted_climb_time *= 2
|
|
if(isalien(user))
|
|
adjusted_climb_time *= 0.25 //aliens are terrifyingly fast
|
|
if(HAS_TRAIT(user, TRAIT_FREERUNNING)) //do you have any idea how fast I am???
|
|
adjusted_climb_time *= 0.8
|
|
structureclimber = user
|
|
if(do_mob(user, user, adjusted_climb_time))
|
|
if(src.loc) //Checking if structure has been destroyed
|
|
if(do_climb(user))
|
|
user.visible_message("<span class='warning'>[user] climbs onto [src].</span>", \
|
|
"<span class='notice'>You climb onto [src].</span>")
|
|
log_combat(user, src, "climbed onto")
|
|
if(climb_stun)
|
|
user.Stun(climb_stun)
|
|
. = 1
|
|
else
|
|
to_chat(user, "<span class='warning'>You fail to climb onto [src].</span>")
|
|
structureclimber = null
|
|
|
|
/obj/structure/examine(mob/user)
|
|
. = ..()
|
|
if(!(resistance_flags & INDESTRUCTIBLE))
|
|
if(resistance_flags & ON_FIRE)
|
|
. += "<span class='warning'>It's on fire!</span>"
|
|
if(broken)
|
|
. += "<span class='notice'>It appears to be broken.</span>"
|
|
var/examine_status = examine_status(user)
|
|
if(examine_status)
|
|
. += examine_status
|
|
|
|
/obj/structure/CanAllowThrough(atom/movable/mover, turf/target)
|
|
. = ..()
|
|
|
|
if(mover.pass_flags & PASSSTRUCTURE)
|
|
return TRUE
|
|
|
|
/obj/structure/proc/examine_status(mob/user) //An overridable proc, mostly for falsewalls.
|
|
var/healthpercent = (obj_integrity/max_integrity) * 100
|
|
switch(healthpercent)
|
|
if(50 to 99)
|
|
return "It looks slightly damaged."
|
|
if(25 to 50)
|
|
return "It appears heavily damaged."
|
|
if(0 to 25)
|
|
if(!broken)
|
|
return "<span class='warning'>It's falling apart!</span>"
|
|
|
|
/obj/structure/rust_heretic_act()
|
|
take_damage(500, BRUTE, "melee", 1)
|