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

Weed update #5924

Closed
Closed

Conversation

PhantomEpicness
Copy link
Contributor

@PhantomEpicness PhantomEpicness commented Mar 11, 2024

About the pull request

Makes space weed recognizable with new sprites and actually more impactful to the game.

Space weed now has some charm as users can puff a cloud of smoke, causing people around them to suffer from secondhand smoke at the cost of a large cooldown and significantly shortening the life of their boof.

Explain why it's good for the game

MPs now can actually spot and see space weed being used by marines as it's sprite is unique now. Drug users can puff smoke which gives a small second hand smoke effect to people nearby while significantly impacting the smoke time.

It actually makes so MPs can actively look for the devil's plant rather than slapping it as an add-on charge when someone is already in custody.

Testing Photographs and Procedure

image

Screenshots & Videos ![image](https://github.com/cmss13-devs/cmss13/assets/42422230/89feed62-c88c-4a5e-9db2-3083e50e9f73)

Put screenshots and videos here with an empty line between the screenshots and the <details> tags.

Changelog

🆑 totalepicness5
add: New ability for space weed smokers to puff a cloud of smoke at the cost of burning a lot of the blunt. Watch out MPs!
imageadd: Space weed now actually has it's own sprites
/:cl:

@github-actions github-actions bot added Sprites Remove the soul from the game. Feature Feature coder badge labels Mar 11, 2024
Copy link
Contributor

@Birdtalon Birdtalon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a full review just a few things noticed.

code/game/objects/effects/effect_system/smoke.dm Outdated Show resolved Hide resolved
code/game/objects/items/tools/flame_tools.dm Outdated Show resolved Hide resolved
code/game/objects/items/tools/flame_tools.dm Show resolved Hide resolved
Copy link
Contributor

@sleepynecrons sleepynecrons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blunt_on and blunt_off have swapped animations in righthand_0.dmi
everything else (sprite-wise) is fine

code/game/objects/effects/effect_system/smoke.dm Outdated Show resolved Hide resolved
else
affected.updatehealth()
if(prob(15) && (affected.coughedtime < world.time))
affected.coughedtime = 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

world.time will always be < 1
also use a COOLDOWN_ macro

Comment on lines +444 to +446
var/puff_cooldown = 10 SECONDS
var/can_puff = TRUE
var/datum/effect_system/smoke_spread/smoke
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code doc

code/game/objects/items/tools/flame_tools.dm Outdated Show resolved Hide resolved
set category = "Smoke"
set src in usr
var/mob/living/carbon/human/smoker = usr
var/datum/effect_system/smoke_spread/smoke = new /datum/effect_system/smoke_spread/weed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why create a new var when smoke is already on the object?

if(smoker.wear_mask != src)
return
if(!can_puff)
to_chat(smoker,SPAN_NOTICE("Your lungs lack fresh air, chill man."))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add spacing between a comma and the next entry

to_chat(smoker,SPAN_NOTICE("Your lungs lack fresh air, chill man."))
return

if(icon_on == "blunt_off")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is gross and you shouldn't be checking icon states to see if something is true/false

Comment on lines +503 to +504
var/image/IMG = image('icons/mob/hud/actions_xeno.dmi', button, "shift_spit_acid_glob")
button.overlays += IMG
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you not set this on the action itself?


/datum/action/item_action/hotbox/New(mob/living/user, obj/item/holder)
..()
name = "Puff"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are you setting this in New() instead of on the action?

code/game/objects/items/trash.dm Outdated Show resolved Hide resolved
@Zonespace27 Zonespace27 marked this pull request as draft March 12, 2024 02:48
PhantomEpicness and others added 2 commits March 12, 2024 22:54
Copy link
Contributor

This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being auto closed in ~ 7 days, please address any outstanding review items and ensure your PR is finished, if these are all true and you are auto-staled anyway, you need to actively ask maintainers if your PR will be merged. Once you have done any of the previous actions then you should request a maintainer remove the stale label on your PR, to reset the stale timer. If you feel no maintainer will respond in that time, you may wish to close this PR youself, while you seek maintainer comment, as you will then be able to reopen the PR yourself

@github-actions github-actions bot added the Stale beg a maintainer to review your PR label Mar 26, 2024
@cm13-github
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@cm13-github cm13-github added the Merge Conflict PR can't be merged because it touched too much code label Apr 1, 2024
@github-actions github-actions bot removed the Stale beg a maintainer to review your PR label Apr 2, 2024
Copy link
Contributor

This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being auto closed in ~ 7 days, please address any outstanding review items and ensure your PR is finished, if these are all true and you are auto-staled anyway, you need to actively ask maintainers if your PR will be merged. Once you have done any of the previous actions then you should request a maintainer remove the stale label on your PR, to reset the stale timer. If you feel no maintainer will respond in that time, you may wish to close this PR youself, while you seek maintainer comment, as you will then be able to reopen the PR yourself

@github-actions github-actions bot added the Stale beg a maintainer to review your PR label Apr 10, 2024
@github-actions github-actions bot closed this Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Feature coder badge Merge Conflict PR can't be merged because it touched too much code Sprites Remove the soul from the game. Stale beg a maintainer to review your PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants