Skip to content

Commit

Permalink
Implements unboostCreep. Fixes #60
Browse files Browse the repository at this point in the history
  • Loading branch information
ASalvail committed Sep 29, 2018
1 parent c84e80c commit 8254d50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions screeps-game-api/src/objects/impls/structure_lab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,8 @@ impl StructureLab {
pub fn run_reaction(&self, lab1: &StructureLab, lab2: &StructureLab) -> ReturnCode {
js_unwrap!{@{self.as_ref()}.runReaction(@{lab1.as_ref()}, @{lab2.as_ref()})}
}

pub fn unboost_creep(&self, creep: &Creep) -> ReturnCode {
js_unwrap!(@{self.as_ref()}.unboostCreep(@{creep.as_ref()}))
}
}

0 comments on commit 8254d50

Please sign in to comment.