-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into werewolf-content
- Loading branch information
Showing
65 changed files
with
1,880 additions
and
662 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
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
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
11 changes: 11 additions & 0 deletions
11
maplestation_modules/code/__DEFINES/magic/magic_bitflags.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,11 @@ | ||
|
||
#define NO_MANA_POOL (1<<0) | ||
#define MANA_POOL_FULL (1<<1) | ||
|
||
#define MANA_POOL_TRANSFER_START (1<<2) | ||
#define MANA_POOL_TRANSFER_STOP (1<<3) | ||
|
||
#define MANA_POOL_ALREADY_TRANSFERRING (1<<4) | ||
#define MANA_POOL_CANNOT_TRANSFER (1<<5) | ||
|
||
#define MANA_POOL_TRANSFER_SKIP_ACTIVE (1<<6) |
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,2 @@ | ||
#define COMSIG_MANA_POOL_INTRINSIC_RECHARGE_UPDATE "mana_pool_intrinsic_recharge_update" | ||
#define COMSIG_ATOM_MANA_POOL_CHANGED "atom_mana_pool_changed" |
5 changes: 5 additions & 0 deletions
5
maplestation_modules/code/__DEFINES/magic/mana_charge_bitflags.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,5 @@ | ||
|
||
#define MANA_ALL_LEYLINES (1<<1) | ||
|
||
#define MANA_DISPERSE_EVENLY 1 | ||
#define MANA_SEQUENTIAL 2 |
2 changes: 2 additions & 0 deletions
2
maplestation_modules/code/__DEFINES/magic/mana_pool_process_bitflags.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,2 @@ | ||
#define MANA_POOL_SKIP_NEXT_TRANSFER (1<<0) | ||
#define MANA_POOL_INTRINSIC (1<<1) |
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
39 changes: 39 additions & 0 deletions
39
maplestation_modules/code/game/objects/items/devices/scanners/mana_lens.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,39 @@ | ||
// as of part one, this is just for the prototype. more will be added with higher report detail/verbosity | ||
/obj/item/mana_lens | ||
name = "Prototype Mana Lens" | ||
icon = 'maplestation_modules/icons/obj/devices.dmi' | ||
icon_state = "mana_lens" | ||
desc = "A prototypical device used to read out the current amount of mana within a subject. The ergonomics are terrible." | ||
item_flags = NOBLUDGEON | ||
throwforce = 3 | ||
w_class = WEIGHT_CLASS_TINY | ||
throw_speed = 3 | ||
throw_range = 7 | ||
drop_sound = 'maplestation_modules/sound/items/drop/device2.ogg' | ||
pickup_sound = 'maplestation_modules/sound/items/pickup/device.ogg' | ||
|
||
/obj/item/mana_lens/interact_with_atom(atom/movable/interacting_with, mob/living/user) | ||
if (isturf(interacting_with)) | ||
balloon_alert(user, "object has no mana pool!") // turfs should not ever have mana pools, doing this just so it doesn't error | ||
return | ||
if (!interacting_with.mana_pool) | ||
balloon_alert(user, "object has no mana pool!") | ||
return | ||
balloon_alert(user, "mana amount: [interacting_with.mana_pool.amount]") | ||
|
||
/datum/design/proto_mana_lens | ||
name = "Prototype Mana Lens" | ||
desc = "The first prototype of a device capable of reading the prescence of mana." | ||
id = "mana_lens" | ||
build_type = PROTOLATHE | ||
materials = list(/datum/material/iron =SHEET_MATERIAL_AMOUNT * 1.5, /datum/material/glass = SMALL_MATERIAL_AMOUNT * 2.5, /datum/material/gold = SMALL_MATERIAL_AMOUNT) | ||
build_path = /obj/item/mana_lens | ||
|
||
/datum/techweb_node/mana_base | ||
id = "mana_base" | ||
starting_node = TRUE | ||
display_name = "Early Magical Tech" | ||
description = "The first bits of technology surronding magic." | ||
design_ids = list( | ||
"mana_lens", // more will be added to this | ||
) |
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
Oops, something went wrong.