Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

Commit

Permalink
Prepare for YC118.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
Artefact2 committed Sep 18, 2016
1 parent a8fad9a commit a342e2c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/extra/capacitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ static inline int dogma_fill_entity(dogma_context_t* ctx, dogma_env_t* source,
));

DOGMA_ASSUME_OK(dogma_get_module_attribute(
ctx, source->index, ATT_EnergyDestabilizationAmount, &(ent->other_amount)
ctx, source->index, ATT_EnergyNeutralizerAmount, &(ent->other_amount)
));

ent->type = DOGMA_EENT_Neutralization;
Expand Down
10 changes: 9 additions & 1 deletion tools/bootstrap_from_json
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ foreach($json['effects'] as &$effect) {
info("overwriting expressions of effect ".$effect['effectName']." using modifierInfo");
$info = yaml_parse($effect['modifierInfo']);

foreach($info as &$modifier) {
foreach($info as $k => &$modifier) {
/* Lots of code to create, tediously, an expression that looks like:
For ItemModifiers:
Expand All @@ -531,6 +531,13 @@ foreach($json['effects'] as &$effect) {
[($skillTypeID.$modifiedAttributeID).($operator)].$func($modifyingAttributeID)
*/

if($modifier['func'] === 'EffectStopper') {
/* XXX: properly implement this */
warn("ignoring EffectStopper for effect ".$effect['effectID']);
unset($info[$k]);
continue;
}

$modifiedattribute = query_or_insert_expression($json, [
'operandID' => 22, /* DEFATTRIBUTE */
'expressionAttributeID' => $modifier['modifiedAttributeID'],
Expand Down Expand Up @@ -561,6 +568,7 @@ foreach($json['effects'] as &$effect) {
break;

case 'targetID':
case 'target': /* XXX? */
$domain = query_or_insert_expression($json, [
'operandID' => 24, /* DEFENVIDX */
'expressionValue' => 'Target',
Expand Down

0 comments on commit a342e2c

Please sign in to comment.