-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maneuvers are now handled by a screen element and must be prepared
before being used.
- Loading branch information
1 parent
d65e49b
commit eafb5c5
Showing
18 changed files
with
84 additions
and
12 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,7 @@ | ||
/obj/screen/proc/handle_click(mob/user, params) | ||
return | ||
|
||
/obj/screen/Click(location, control, params) | ||
if(ismob(usr) && usr.client && usr.canClick() && !usr.incapacitated()) | ||
return handle_click(usr, params) | ||
return FALSE |
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 @@ | ||
/obj/screen/maneuver | ||
name = "Prepare Maneuver" | ||
icon_state = "maneuver_off" | ||
screen_loc = ui_pull_resist | ||
|
||
/obj/screen/maneuver/handle_click(mob/user, params) | ||
if(isliving(user)) | ||
var/mob/living/user_living = user | ||
user_living.prepare_maneuver() | ||
|
||
/obj/screen/maneuver/examine(mob/user) | ||
. = ..() | ||
if(!isliving(user)) | ||
return | ||
var/mob/living/user_living = user | ||
if(user_living.prepared_maneuver) | ||
to_chat(src, SPAN_NOTICE("You are prepared to [user_living.prepared_maneuver.name].")) | ||
else | ||
to_chat(src, SPAN_NOTICE("You are not prepared to perform a maneuver.")) |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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