-
Notifications
You must be signed in to change notification settings - Fork 935
Sharp Resharpening: Safety PR Split #12748
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
base: master
Are you sure you want to change the base?
Changes from 15 commits
052c4eb
c714ff4
2895a91
634589e
78bf415
18a6ae1
0422e2d
f682b6d
c7d1483
a27fbcb
d23feaf
9c107ca
3d6f705
2586d07
3bcc2d2
74be4dc
61730d8
915aaa0
5c85948
79b1c07
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -257,6 +257,38 @@ | |
| if(F.to_call) | ||
| F.to_call.Invoke() | ||
|
|
||
| /datum/flameshape/square | ||
| name = "Square" | ||
| id = FLAMESHAPE_SQUARE | ||
|
|
||
| /datum/flameshape/square/handle_fire_spread(obj/flamer_fire/F, fire_spread_amount, burn_dam, fuel_pressure = 1) | ||
| var/turf/source_turf = get_turf(F.loc) | ||
| var/radius = fire_spread_amount - 1 | ||
|
|
||
| for(var/turf/T in range(radius, source_turf)) | ||
|
MPhonks marked this conversation as resolved.
Outdated
|
||
| if(T == source_turf) | ||
| continue | ||
| if(istype(T, /turf/open/space)) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume you meant
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Copied it from the other flameshape codes. :P (Could change it if it's an issue, although I didn't notice any impact) |
||
| continue | ||
|
|
||
| var/obj/flamer_fire/foundflame = locate() in T | ||
| if(foundflame && foundflame.tied_reagent == F.tied_reagent) | ||
| continue | ||
|
|
||
| if(T.density) | ||
| T.flamer_fire_act(burn_dam, F.weapon_cause_data) | ||
| continue | ||
|
|
||
| var/obj/flamer_fire/temp = new() | ||
| var/atom/A = LinkBlocked(temp, source_turf, T) | ||
|
|
||
| if(A) | ||
| A.flamer_fire_act(burn_dam, F.weapon_cause_data) | ||
| if(A.flags_atom & ON_BORDER) | ||
| continue | ||
|
MPhonks marked this conversation as resolved.
|
||
|
|
||
| var/ring = get_dist(source_turf, T) | ||
| addtimer(CALLBACK(src, PROC_REF(generate_fire), T, F, 0, FLAMESHAPE_SQUARE, null, FALSE, fuel_pressure), ring) | ||
|
|
||
| GLOBAL_LIST_INIT(flameshapes, list( | ||
| FLAMESHAPE_DEFAULT = new /datum/flameshape/default(), | ||
|
|
@@ -265,4 +297,5 @@ GLOBAL_LIST_INIT(flameshapes, list( | |
| FLAMESHAPE_MINORSTAR = new /datum/flameshape/star/minor(), | ||
| FLAMESHAPE_TRIANGLE = new /datum/flameshape/triangle(), | ||
| FLAMESHAPE_LINE = new /datum/flameshape/line(), | ||
| FLAMESHAPE_SQUARE = new /datum/flameshape/square() | ||
| )) | ||
Uh oh!
There was an error while loading. Please reload this page.