Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
Help
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessFairy committed Dec 15, 2023
1 parent 641b6e4 commit 5ad60f1
Show file tree
Hide file tree
Showing 5 changed files with 431 additions and 0 deletions.
315 changes: 315 additions & 0 deletions _maps/toolbox_arenas/bomberman.dmm
Original file line number Diff line number Diff line change
@@ -0,0 +1,315 @@
//MAP CONVERTED BY dmm2tgm.py THIS HEADER COMMENT PREVENTS RECONVERSION, DO NOT REMOVE
"a" = (
/turf/open/floor/grass,
/area/centcom/tdome/arena)
"f" = (
/obj/structure/barricade/bomberman/powerup/mirror{
mirror_distance = 4
},
/turf/open/floor/grass,
/area/centcom/tdome/arena)
"g" = (
/obj/structure/barricade/bomberman/powerup/mirror,
/turf/open/floor/grass,
/area/centcom/tdome/arena)
"h" = (
/obj/structure/barricade/bomberman/powerup/mirror{
mirror_distance = 14
},
/turf/open/misc/grass/jungle,
/area/centcom/tdome/arena)
"j" = (
/turf/open/misc/grass/jungle,
/area/centcom/tdome/arena)
"k" = (
/obj/structure/barricade/bomberman/powerup,
/turf/open/misc/grass/jungle,
/area/centcom/tdome/arena)
"m" = (
/obj/structure/barricade/bomberman/powerup/mirror{
mirror_distance = 10
},
/turf/open/misc/grass/jungle,
/area/centcom/tdome/arena)
"p" = (
/obj/structure/barricade/bomberman/powerup/mirror,
/turf/open/misc/grass/jungle,
/area/centcom/tdome/arena)
"x" = (
/obj/structure/barricade/bomberman/powerup/mirror{
mirror_distance = 6
},
/turf/open/misc/grass/jungle,
/area/centcom/tdome/arena)
"A" = (
/obj/structure/barricade/bomberman/powerup/mirror{
mirror_distance = 6
},
/turf/open/floor/grass,
/area/centcom/tdome/arena)
"B" = (
/obj/structure/barricade/bomberman/powerup/mirror{
mirror_distance = 16
},
/turf/open/floor/grass,
/area/centcom/tdome/arena)
"D" = (
/obj/structure/barricade/bomberman/powerup/mirror{
mirror_distance = 12
},
/turf/open/floor/grass,
/area/centcom/tdome/arena)
"E" = (
/obj/structure/barricade/bomberman/powerup/mirror{
mirror_distance = 10
},
/turf/open/floor/grass,
/area/centcom/tdome/arena)
"G" = (
/obj/structure/barricade/bomberman/powerup/mirror{
mirror_distance = 14
},
/turf/open/floor/grass,
/area/centcom/tdome/arena)
"J" = (
/obj/structure/barricade/bomberman/powerup/mirror{
mirror_distance = 8
},
/turf/open/misc/grass/jungle,
/area/centcom/tdome/arena)
"L" = (
/obj/structure/barricade/bomberman/powerup/mirror{
mirror_distance = 4
},
/turf/open/misc/grass/jungle,
/area/centcom/tdome/arena)
"M" = (
/turf/closed/indestructible/bombermanwall,
/area/centcom/tdome/arena)
"P" = (
/obj/structure/barricade/bomberman/powerup/mirror{
mirror_distance = 12
},
/turf/open/misc/grass/jungle,
/area/centcom/tdome/arena)
"Q" = (
/obj/structure/barricade/bomberman/powerup,
/turf/open/floor/grass,
/area/centcom/tdome/arena)
"W" = (
/obj/structure/barricade/bomberman/powerup/mirror{
mirror_distance = 16
},
/turf/open/misc/grass/jungle,
/area/centcom/tdome/arena)
"Z" = (
/obj/structure/barricade/bomberman/powerup/mirror{
mirror_distance = 8
},
/turf/open/floor/grass,
/area/centcom/tdome/arena)

(1,1,1) = {"
a
j
B
W
B
W
B
W
a
j
"}
(2,1,1) = {"
j
M
h
M
h
G
M
G
M
a
"}
(3,1,1) = {"
D
P
D
P
D
P
D
P
D
P
"}
(4,1,1) = {"
m
M
m
M
m
E
M
E
M
E
"}
(5,1,1) = {"
Z
J
Z
J
Z
J
Z
J
Z
J
"}
(6,1,1) = {"
x
M
x
M
x
A
M
A
M
A
"}
(7,1,1) = {"
f
L
f
L
a
j
f
L
f
L
"}
(8,1,1) = {"
p
M
p
a
j
a
j
g
M
g
"}
(9,1,1) = {"
Q
k
Q
j
a
j
a
k
Q
k
"}
(10,1,1) = {"
j
M
j
a
j
a
j
a
M
a
"}
(11,1,1) = {"
a
j
a
j
a
j
a
j
a
j
"}
(12,1,1) = {"
j
M
j
M
j
a
M
a
M
a
"}
(13,1,1) = {"
a
j
a
j
a
j
a
j
a
j
"}
(14,1,1) = {"
j
M
j
M
j
a
M
a
M
a
"}
(15,1,1) = {"
a
j
a
j
a
j
a
j
a
j
"}
(16,1,1) = {"
j
M
j
M
j
a
M
a
M
a
"}
(17,1,1) = {"
a
j
a
j
a
j
a
j
a
j
"}
Binary file added modular_event/bomberman/bomberman_icons.dmi
Binary file not shown.
75 changes: 75 additions & 0 deletions modular_event/bomberman/powerup.dmm
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
/obj/effect/powerup/bomberman
icon = 'modular_event/bomberman/bomberman_icons.dmi'
pickup_sound = 'sound/machines/synth_yes.ogg'

/obj/effect/powerup/bomberman/trigger(mob/living/target)
. = ..()
if(!.)
return
target.balloon_alert_to_viewers(name)

/obj/effect/powerup/bomberman/speed
name = "speed up"
desc = "Makes you slightly faster."
icon_state = "speedup"

/obj/effect/powerup/bomberman/speed/trigger(mob/living/target)
. = ..()
if(!.)
return
if (target.has_movespeed_modifier(/datum/movespeed_modifier/bomberman_speed/fourth))
return
if (target.has_movespeed_modifier(/datum/movespeed_modifier/bomberman_speed/third))
target.remove_movespeed_modifier(/datum/movespeed_modifier/bomberman_speed/third)
target.add_movespeed_modifier(/datum/movespeed_modifier/bomberman_speed/fourth)
return
if (target.has_movespeed_modifier(/datum/movespeed_modifier/bomberman_speed/second))
target.remove_movespeed_modifier(/datum/movespeed_modifier/bomberman_speed/second)
target.add_movespeed_modifier(/datum/movespeed_modifier/bomberman_speed/third)
return
if (target.has_movespeed_modifier(/datum/movespeed_modifier/bomberman_speed/first))
target.remove_movespeed_modifier(/datum/movespeed_modifier/bomberman_speed/first)
target.add_movespeed_modifier(/datum/movespeed_modifier/bomberman_speed/second)
return
target.add_movespeed_modifier(/datum/movespeed_modifier/bomberman_speed/first)//WHO ON EARTH LET ME COOK

/datum/movespeed_modifier/bomberman_speed

/datum/movespeed_modifier/bomberman_speed/first //Turning tracking how many boosts you have into a component would be better but too bad.
multiplicative_slowdown = -0.15

/datum/movespeed_modifier/bomberman_speed/second
multiplicative_slowdown = -0.3

/datum/movespeed_modifier/bomberman_speed/third
multiplicative_slowdown = -0.45

/datum/movespeed_modifier/bomberman_speed/fourth
multiplicative_slowdown = -0.6

/obj/effect/powerup/bomberman/fire
name = "robustness up"
desc = "Makes your toolboxes stronger."
icon_state = "fireup"

/obj/effect/powerup/bomberman/fire/trigger(mob/living/target)
. = ..()
if(!.)
return
for(var/obj/item/storage/toolbox/toolbox in target)
if(toolbox.force < 16)
toolbox.force++
toolbox.throwforce++
toolbox.transform = toolbox.transform.Scale(1.25, 1.25)

/obj/effect/powerup/bomberman/bomb
name = "toolbox up"
desc = "Gives you another toolbox."
icon_state = "toolboxup"

/obj/effect/powerup/bomberman/bomb/trigger(mob/living/target)
. = ..()
if(!.)
return
var/toolbox = new /obj/item/storage/toolbox(target.loc)
target.put_in_hands(toolbox)
Loading

0 comments on commit 5ad60f1

Please sign in to comment.