-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4761 from MistakeNot4892/devupdate
Dev update from staging.
- Loading branch information
Showing
24 changed files
with
152 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,30 @@ | ||
/obj/effect/decal/cleanable/crayon | ||
name = "rune" | ||
desc = "A rune drawn in crayon." | ||
icon = 'icons/obj/rune.dmi' | ||
name = "rune" | ||
desc = "A rune drawn in crayon." | ||
icon = 'icons/effects/crayondecal.dmi' | ||
icon_state = "rune1" | ||
weather_sensitive = FALSE | ||
var/shade_color = COLOR_BLACK | ||
|
||
/obj/effect/decal/cleanable/crayon/Initialize(mapload, main = "#ffffff", shade = "#000000", var/type = "rune") | ||
name = type | ||
desc = "\A [type] drawn in crayon." | ||
/obj/effect/decal/cleanable/crayon/Initialize(mapload, _color = COLOR_WHITE, _shade_color = COLOR_BLACK, _drawtype = CRAYON_DRAW_RUNE) | ||
. = ..() | ||
name = _drawtype | ||
desc = "\A [_drawtype], drawn in crayon." | ||
color = _color | ||
shade_color = _shade_color | ||
switch(_drawtype) | ||
if(CRAYON_DRAW_RUNE) | ||
icon_state = "rune[rand(1,6)]" | ||
if(CRAYON_DRAW_GRAFFITI) | ||
icon_state = pick("amyjon","face","matt","revolution","engie","guy","end","dwarf","uboa") | ||
else | ||
icon_state = _drawtype | ||
update_icon() | ||
|
||
switch(type) | ||
if("rune") | ||
type = "rune[rand(1,6)]" | ||
if("graffiti") | ||
type = pick("amyjon","face","matt","revolution","engie","guy","end","dwarf","uboa") | ||
|
||
var/icon/mainOverlay = new/icon('icons/effects/crayondecal.dmi',"[type]",2.1) | ||
var/icon/shadeOverlay = new/icon('icons/effects/crayondecal.dmi',"[type]s",2.1) | ||
|
||
mainOverlay.Blend(main,ICON_ADD) | ||
shadeOverlay.Blend(shade,ICON_ADD) | ||
|
||
overlays += mainOverlay | ||
overlays += shadeOverlay | ||
|
||
add_hiddenprint(usr) | ||
. = ..() | ||
/obj/effect/decal/cleanable/crayon/on_update_icon() | ||
. = ..() | ||
if(shade_color) | ||
var/overlay_state = "[icon_state]s" | ||
if(check_state_in_icon(overlay_state, icon)) | ||
add_overlay(overlay_image(icon, overlay_state, shade_color, RESET_COLOR)) | ||
compile_overlays() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
code/modules/materials/definitions/liquids/materials_liquid_solvents.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.