Ignore:
Timestamp:
09/06/13 17:14:04 (8 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Phase:
public
Message:

Moonlight tiles force wolf form.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/game_object.py

    r356 r357  
    511511        # low, they shouldn't impact gameplay
    512512        if self._ticks == 0:
    513             protagonist.lose_health(self.damage)
     513            self.apply_effect(protagonist)
    514514        self._ticks += 1
    515515        if self._ticks > self.rate:
    516516            self._ticks = 0
    517517
     518    def apply_effect(self, protagonist):
     519        protagonist.lose_health(self.damage)
     520
    518521    @classmethod
    519522    def requires(cls):
     
    525528    damage = 1
    526529    tile = 'acid.png'
     530
     531
     532class ForceWolfFloor(HostileTerrain):
     533    tile = 'moonlight.png'
     534    rate = 0
     535
     536    def apply_effect(self, protagonist):
     537        protagonist.force_wolf_form()
Note: See TracChangeset for help on using the changeset viewer.