Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

someone left debug messages in the cloak vampire power #308

Open
ATH1909 opened this issue Apr 6, 2020 · 0 comments
Open

someone left debug messages in the cloak vampire power #308

ATH1909 opened this issue Apr 6, 2020 · 0 comments

Comments

@ATH1909
Copy link

ATH1909 commented Apr 6, 2020

/datum/action/bloodsucker/cloak/ContinueActive(mob/living/user, mob/living/target)
    if (!..())
        return FALSE
    // Must be CONSCIOUS
    if (user.stat > CONSCIOUS)
        to_chat(owner, "<span class='warning'>DEBUG: FAIL STAT </span>")
        return FALSE
    // Must be SAME LOCATION
    var/turf/T = owner.loc
    if (!upgrade_canMove && T != remember_start_loc)
        to_chat(owner, "<span class='warning'>DEBUG: FAIL MOVE [T] vs [remember_start_loc] </span>")
        return FALSE
    // Must be DARK
    if(istype(T) && T.get_lumcount() > light_min)
        to_chat(owner, "<span class='warning'>DEBUG: FAIL DARK</span>")
        return FALSE
    return TRUE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant