Project

Profile

Help

Revision a5c338e8

Added by Vincent Le Goff almost 4 years ago

Put the macros and triggers in the world itself

View differences:

src/sharp/functions/trigger.py
38 38
    def run(self, reaction, action):
39 39
        """Say the text."""
40 40
        trigger = ObjTrigger(self.sharp_engine, reaction, action)
41
        if self.client:
42
            self.client.triggers.append(trigger)
41
        if self.world:
42
            self.world.triggers.append(trigger)

Also available in: Unified diff