Handles the healing effects
| 5293 | |
| 5294 | // Handles the healing effects |
| 5295 | void Lifter::UpdateLiftBeam(int me) { |
| 5296 | // See if it's time to create the next energy effect |
| 5297 | if (memory->next_lift_beam_time <= Game_GetTime()) { |
| 5298 | float next_duration = LIFTER_LIFT_BEAM_UPDATE_TIME; |
| 5299 | |
| 5300 | memory->next_lift_beam_time = Game_GetTime() + next_duration; |
| 5301 | |
| 5302 | // See if we're carrying an object |
| 5303 | int attached_handle = Obj_GetAttachChildHandle(me, 0); |
| 5304 | if (attached_handle != OBJECT_HANDLE_NONE) { |
| 5305 | aLightningCreate(me, attached_handle, next_duration, 2.0f, 2, boss_heal_effect_id, next_duration, 1, 255, 255, |
| 5306 | 255, false); |
| 5307 | } |
| 5308 | } |
| 5309 | } |
| 5310 | |
| 5311 | // Processes incoming damage reports |
| 5312 | void Lifter::DoDamage(int me, tOSIRISEVTDAMAGED *damage_data) { |
nothing calls this directly
no test coverage detected