forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 43
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 #28 from Paxilmaniac/plant
far sight and floor mats
- Loading branch information
Showing
12 changed files
with
145 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Base fantasystation organic floor types, like mats and whatnot, basetype is dried grass | ||
|
||
/turf/open/floor/fantasy_organic | ||
name = "grass floor mat" | ||
desc = "A woven mat made of dried grass." | ||
icon = 'icons/obj/fantasystation_obj/floors/grassmat.dmi' | ||
icon_state = "grassmat-0" | ||
base_icon_state = "grassmat" | ||
baseturfs = /turf/baseturf_bottom // These shouldnt be map placed ever but just in case | ||
floor_tile = null | ||
smoothing_flags = SMOOTH_BITMASK | ||
smoothing_groups = SMOOTH_GROUP_TURF_OPEN | ||
canSmoothWith = null | ||
flags_1 = NONE | ||
footstep = FOOTSTEP_GRASS | ||
barefootstep = FOOTSTEP_GRASS | ||
clawfootstep = FOOTSTEP_GRASS | ||
heavyfootstep = FOOTSTEP_GENERIC_HEAVY | ||
/// What we make when we're torn up | ||
var/obj/torn_up_result = /obj/item/fantasy_cut_grass | ||
|
||
/turf/open/floor/fantasy_organic/broken_states() | ||
return | ||
|
||
/turf/open/floor/fantasy_organic/crowbar_act(mob/living/user, obj/item/I) | ||
return FALSE | ||
|
||
/turf/open/floor/fantasy_organic/attackby(obj/item/object, mob/living/user, params) | ||
if(!object.tool_behaviour == TOOL_KNIFE) | ||
return ..() | ||
if(!do_after(user, 3 SECONDS, src)) | ||
return | ||
playsound(src, 'sound/items/poster_ripped.ogg', 20, TRUE) | ||
new torn_up_result(src) | ||
src.ScrapeAway(flags = CHANGETURF_INHERIT_AIR) | ||
|
||
// Reed mats | ||
|
||
/turf/open/floor/fantasy_organic/reed | ||
name = "reed floor mat" | ||
desc = "A woven mat made of river reeds." | ||
icon = 'icons/obj/fantasystation_obj/floors/reedmat.dmi' | ||
icon_state = "reedmat-0" | ||
base_icon_state = "reedmat" | ||
torn_up_result = /obj/item/fantasy_cut_cattail |
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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
output_name = "grassmat" | ||
template = "bitmask/diagonal_32x32.toml" | ||
|
||
[icon_size] | ||
x = 32 | ||
y = 32 | ||
|
||
[output_icon_size] | ||
x = 32 | ||
y = 32 | ||
|
||
[cut_pos] | ||
x = 16 | ||
y = 16 |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
output_name = "reedmat" | ||
template = "bitmask/diagonal_32x32.toml" | ||
|
||
[icon_size] | ||
x = 32 | ||
y = 32 | ||
|
||
[output_icon_size] | ||
x = 32 | ||
y = 32 | ||
|
||
[cut_pos] | ||
x = 16 | ||
y = 16 |
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