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

Commit

Permalink
Update effect name of capacitor transmitters
Browse files Browse the repository at this point in the history
  • Loading branch information
Artefact2 committed Sep 17, 2017
1 parent 493a7c9 commit 09cc589
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/extra/capacitor.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* libdogma
* Copyright (C) 2013, 2015 Romain "Artefact2" Dalmaso <artefact2@gmail.com>
* Copyright (C) 2013, 2015, 2017 Romain "Artefact2" Dalmaso <artefact2@gmail.com>
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License
Expand Down Expand Up @@ -48,7 +48,7 @@

#define EFFECT_TOUCHES_ENERGY(e) ( \
(e)->id == EFFECT_PowerBooster \
|| (e)->id == EFFECT_RemoteEnergyTransferFalloff \
|| (e)->id == EFFECT_ShipModuleRemoteCapacitorTransmitter \
|| (e)->id == EFFECT_EnergyNeutralizerFalloff \
|| (e)->id == EFFECT_EnergyNosferatuFalloff \
|| ((e)->dischargeattributeid != 0 && (e)->durationattributeid != 0) \
Expand Down Expand Up @@ -166,7 +166,7 @@ static inline int dogma_fill_entity(dogma_context_t* ctx, dogma_env_t* source,
ent->location->delta -= ent->other_amount / skewed_cycle_time;
break;

case EFFECT_RemoteEnergyTransferFalloff:
case EFFECT_ShipModuleRemoteCapacitorTransmitter:
DOGMA_ASSUME_OK(dogma_get_module_attribute(
ctx, source->index, e->dischargeattributeid, &(ent->amount_used)
));
Expand Down

0 comments on commit 09cc589

Please sign in to comment.