-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port over mutations granting effects (and fix) #180
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,6 +149,68 @@ | |
"type": "transform" | ||
} | ||
}, | ||
{ | ||
"id": "debug_active_relic_test", | ||
"type": "TOOL", | ||
"name": { "str": "Cube of Shame", "str_pl": "Cubes of Shame" }, | ||
"description": "This is a debug-only item for testing relic properties, powered by batteries. Turn it on to lose intelligence and perception, but gain clairvoyance", | ||
"material": [ "steel" ], | ||
"symbol": ";", | ||
"color": "blue", | ||
"weight": "400 g", | ||
"volume": "500 ml", | ||
"charges_per_use": 1, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It doesn't seem to be introduced here, but there is a bug with the system: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Artifact from having based the item off a standard electronic item (fairly certain it was a flashlight), a lot of transforming items in the game have a charges per use but don't seem to respect it, seen in both DDA and BN. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh right: charge consumption occurs at the end of the function, but in transformation, this would consume charges from the transformed item, which may not work. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That could be it. Placing it earlier in the order would fix that, but it might be good to ensure that the check for |
||
"ammo": "battery", | ||
"use_action": { | ||
"type": "transform", | ||
"msg": "You inject yourself into the Cube of Shame.", | ||
"target": "debug_active_relic_test_on", | ||
"active": true, | ||
"need_charges": 1, | ||
"need_charges_msg": "Batteries not included." | ||
}, | ||
"magazines": [ | ||
[ | ||
"battery", | ||
[ | ||
"light_disposable_cell", | ||
"light_minus_disposable_cell", | ||
"light_battery_cell", | ||
"light_plus_battery_cell", | ||
"light_minus_battery_cell", | ||
"light_atomic_battery_cell", | ||
"light_minus_atomic_battery_cell" | ||
] | ||
] | ||
], | ||
"magazine_well": 1, | ||
"relic_data": { | ||
"passive_effects": [ | ||
{ "has": "HELD", "condition": "ALWAYS", "mutations": [ "SCHIZOPHRENIC" ] }, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. True, was a bit of waiting. Had picked it more for thematic purposes, but can change to Carnivore next time I alter its properties. |
||
{ | ||
"has": "HELD", | ||
"condition": "ACTIVE", | ||
"values": [ { "value": "INTELLIGENCE", "add": -4 }, { "value": "PERCEPTION", "add": -4 } ], | ||
"ench_effects": [ { "effect": "debug_clairvoyance", "intensity": 1 } ] | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "debug_active_relic_test_on", | ||
"copy-from": "debug_active_relic_test", | ||
"type": "TOOL", | ||
"name": { "str": "Cube of Shame (on)", "str_pl": "Cube of Shame (on)" }, | ||
"description": "This is a debug-only item for testing relic properties, powered by batteries. Drop it or turn it off to retrieve your mind.", | ||
"power_draw": 10000, | ||
"revert_to": "debug_active_relic_test", | ||
"use_action": { | ||
"menu_text": "Turn off", | ||
"type": "transform", | ||
"msg": "You extract yourself from the Cube of Shame.", | ||
"target": "debug_active_relic_test" | ||
} | ||
}, | ||
{ | ||
"id": "e_tool", | ||
"type": "TOOL", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plural string is "cubes of shame" which is not identical?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's for line 203 https://github.com/cataclysmbnteam/Cataclysm-BN/pull/180/files#diff-719e962e4193c09bda9e0a2f71d6946610bf808ed76e341be1cd18cbb4f6bbc8R203
Edit: nvm, you've found it