forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a Bicycle to the game (tgstation#24431)
* 自転車をゲームに追加する * adds file * dfssdffds * cdvsffsg * fixes * Update bicycle.dm
- Loading branch information
1 parent
f32834f
commit 93f9b71
Showing
8 changed files
with
44 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/obj/vehicle/bicycle | ||
name = "bicycle" | ||
desc = "Keep away from electricity." | ||
icon_state = "bicycle" | ||
var/easter_egg_chance = 1 | ||
|
||
var/static/list/bike_music = list('sound/misc/bike1.mid', | ||
'sound/misc/bike2.mid', | ||
'sound/misc/bike3.mid') | ||
/obj/vehicle/bicycle/New() | ||
..() | ||
riding_datum = new/datum/riding/bicycle | ||
/obj/vehicle/bicycle/buckle_mob(mob/living/M, force = 0, check_loc = 1) | ||
if(prob(easter_egg_chance) || (SSevent.holidays && SSevent.holidays[APRIL_FOOLS])) | ||
M << sound(pick(bike_music), repeat = 1, wait = 0, volume = 80, channel = 42) | ||
. = ..() | ||
|
||
/obj/vehicle/bicycle/unbuckle_mob(mob/living/buckled_mob,force = 0) | ||
if(buckled_mob) | ||
buckled_mob << sound(null, repeat = 0, wait = 0, volume = 80, channel = 42) | ||
. =..() | ||
|
||
/obj/vehicle/bicycle/tesla_act() // :::^^^))) | ||
name = "fried bicycle" | ||
desc = "Well spent." | ||
riding_datum = null | ||
color = rgb(63, 23, 4) | ||
for(var/m in buckled_mobs) | ||
unbuckle_mob(m,1) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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