-
Notifications
You must be signed in to change notification settings - Fork 232
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 #152 from wraith-54321/stream-events
- Loading branch information
Showing
6 changed files
with
76 additions
and
2 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
monkestation/code/modules/twitch_bits/events/australia_mode.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/datum/twitch_event/australia_mode | ||
event_name = "Australia Mode" | ||
event_duration = 15 MINUTES //effect is very minor so it lasts for a while | ||
event_flags = TWITCH_AFFECTS_ALL | ||
id_tag = "australia-mode" | ||
|
||
/datum/twitch_event/australia_mode/run_event(name) | ||
. = ..() | ||
|
||
for(var/mob/living/target in targets) | ||
var/matrix/m180 = matrix(target.transform) | ||
m180.Turn(180) | ||
animate(target, transform = m180, time = 3) | ||
|
||
/datum/twitch_event/australia_mode/end_event() | ||
for(var/mob/living/target in targets) //I would like to figure out a way to make this check first but this should work for now | ||
var/matrix/m180 = matrix(target.transform) | ||
m180.Turn(180) | ||
animate(target, transform = m180, time = 3) |
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,21 @@ | ||
/datum/twitch_event/free_wiz | ||
event_name = "Change Ook's Fate" | ||
event_duration = 1 SECONDS | ||
event_flags = TWITCH_AFFECTS_STREAMER | ||
id_tag = "ook-die-fate" | ||
|
||
/datum/twitch_event/free_wiz/run_event(name) | ||
. = ..() | ||
|
||
for(var/target in targets) | ||
var/mob/living/future_wiz = target | ||
var/obj/item/dice/d20/fate/one_use/the_die = new(get_turf(future_wiz)) | ||
future_wiz.put_in_hands(the_die) | ||
to_chat(future_wiz, span_warning("Something apears in your hand and- oh no you fumbled it. That can't be good.")) | ||
the_die.diceroll(future_wiz) | ||
|
||
//this is more of a joke, could maybe cost 100k bits or something | ||
/datum/twitch_event/free_wiz/everyone | ||
event_name = "Change Everyone's Fate" | ||
event_flags = TWITCH_AFFECTS_ALL | ||
id_tag = "everyone-die-fate" |
14 changes: 14 additions & 0 deletions
14
monkestation/code/modules/twitch_bits/events/random_item.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/datum/twitch_event/give_smsword | ||
event_name = "Give Ook Random Item" | ||
event_duration = 1 SECONDS | ||
event_flags = TWITCH_AFFECTS_STREAMER | ||
id_tag = "give-ook-item" | ||
|
||
/datum/twitch_event/give_smsword/run_event(name) | ||
. = ..() | ||
|
||
for(var/target in targets) | ||
var/mob/living/debug_uplink_reciever = target | ||
var/obj/item/gamer_item = pick(subtypesof(/obj/item)) | ||
gamer_item = new gamer_item() | ||
debug_uplink_reciever.put_in_hands(gamer_item) |
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,13 @@ | ||
/datum/twitch_event/clang | ||
event_name = "Immovable Rod Ook" | ||
event_duration = 1 SECONDS | ||
event_flags = TWITCH_AFFECTS_STREAMER | ||
id_tag = "rod-ook" | ||
announce = FALSE //takes a while to reach its target so dont announce it | ||
|
||
/datum/twitch_event/clang/run_event(name) | ||
. = ..() | ||
|
||
for(var/target in targets) //send a rod at the turf of all targets, not making it target them directly because thats just death | ||
var/turf/target_turf = get_turf(target) | ||
new /obj/effect/immovablerod(spaceDebrisStartLoc(pick(GLOB.cardinals), target_turf.z), target) |
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